Function at 0xa38610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x10
mov dword [edx], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov dword [ebx + 0xc], 0
mov dword [ebx + 4], edx
mov edx, eax
mov eax, dword [eax + 0x4888]
mov dword [esp], eax
dec eax
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x18], eax
mov eax, dword [edx + 0xa0]
mov edx, dword [edx + 0x218]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x28], eax
xor eax, eax
cmp edx, 3
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
je 0xa38ac5
mov esi, dword [esp + 4]
mov edi, dword [esi + 0x70a8]
mov dword [esi + 0x70ac], eax
test edi, edi
jne 0xa386c0
cmp dword [ebx + 8], 1
je 0xa38b00
mov edx, dword [esi + 0x3bec]
mov eax, dword [esi + 0x3be8]
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 1
mov dword [ebx + 0x54], edx
mov edx, esi
add edx, 0x3b48
test eax, eax
mov dword [ebx + 0x4c], 1
lea esi, [ebx + 0x58]
mov dword [ebx + 0x50], eax
mov dword [esp], 0
mov dword [esp + 8], ebx
je 0xa389f1
mov eax, dword [esp + 4]
mov ebx, dword [esp]
mov eax, dword [eax + ebx*4 + 0x3b40]
test eax, eax
jle 0xa389f1
mov ecx, dword [edx]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [ecx + 0x78]
xor ecx, ecx
mov edi, ebp
sub edi, ebx
mov ebx, dword [esp + 0xc]
test edi, edi
setg cl
mov dword [esi], ecx
mov ecx, dword [ebx + 0x1c]
mov ebx, 1
shl ebx, cl
mov ecx, edi
sar ecx, 0x1f
dec ebx
xor edi, ecx
sub edi, ecx
dec edi
and edi, ebx
cmp eax, 1
mov dword [esi + 4], edi
je 0xa389f1
mov ecx, dword [edx + 4]
mov edi, dword [ecx + 0x78]
mov ecx, edi
sub ecx, ebp
mov ebp, ecx
xor ecx, ecx
test ebp, ebp
setg cl
mov dword [esi + 8], ecx
mov ecx, ebp
sar ecx, 0x1f
xor ebp, ecx
sub ebp, ecx
dec ebp
and ebp, ebx
cmp eax, 2
mov dword [esi + 0xc], ebp
je 0xa389f1
mov ecx, dword [edx + 8]
mov ebp, dword [ecx + 0x78]
mov ecx, ebp
sub ecx, edi
mov edi, ecx
xor ecx, ecx
test edi, edi
setg cl
mov dword [esi + 0x10], ecx
mov ecx, edi
sar ecx, 0x1f
xor edi, ecx
sub edi, ecx
dec edi
and edi, ebx
cmp eax, 3
mov dword [esi + 0x14], edi
je 0xa389f1
mov ecx, dword [edx + 0xc]
mov edi, dword [ecx + 0x78]
mov ecx, edi
sub ecx, ebp
mov ebp, ecx
xor ecx, ecx
test ebp, ebp
setg cl
mov dword [esi + 0x18], ecx
mov ecx, ebp
sar ecx, 0x1f
xor ebp, ecx
sub ebp, ecx
dec ebp
and ebp, ebx
cmp eax, 4
mov dword [esi + 0x1c], ebp
je 0xa389f1
mov ecx, dword [edx + 0x10]
mov ebp, dword [ecx + 0x78]
mov ecx, ebp
sub ecx, edi
mov edi, ecx
xor ecx, ecx
test edi, edi
setg cl
mov dword [esi + 0x20], ecx
mov ecx, edi
sar ecx, 0x1f
xor edi, ecx
sub edi, ecx
dec edi
and edi, ebx
cmp eax, 5
mov dword [esi + 0x24], edi
je 0xa389f1
mov ecx, dword [edx + 0x14]
mov edi, dword [ecx + 0x78]
mov ecx, edi
sub ecx, ebp
mov ebp, ecx
xor ecx, ecx
test ebp, ebp
setg cl
mov dword [esi + 0x28], ecx
mov ecx, ebp
sar ecx, 0x1f
xor ebp, ecx
sub ebp, ecx
dec ebp
and ebp, ebx
cmp eax, 6
mov dword [esi + 0x2c], ebp
je 0xa389f1
mov ecx, dword [edx + 0x18]
mov ebp, dword [ecx + 0x78]
mov ecx, ebp
sub ecx, edi
mov edi, ecx
xor ecx, ecx
test edi, edi
setg cl
mov dword [esi + 0x30], ecx
mov ecx, edi
sar ecx, 0x1f
xor edi, ecx
sub edi, ecx
dec edi
and edi, ebx
cmp eax, 7
mov dword [esi + 0x34], edi
je 0xa389f1
mov ecx, dword [edx + 0x1c]
mov edi, dword [ecx + 0x78]
mov ecx, edi
sub ecx, ebp
mov ebp, ecx
xor ecx, ecx
test ebp, ebp
setg cl
mov dword [esi + 0x38], ecx
mov ecx, ebp
sar ecx, 0x1f
xor ebp, ecx
sub ebp, ecx
dec ebp
and ebp, ebx
cmp eax, 8
mov dword [esi + 0x3c], ebp
je 0xa389f1
mov ecx, dword [edx + 0x20]
mov ebp, dword [ecx + 0x78]
mov ecx, ebp
sub ecx, edi
mov edi, ecx
xor ecx, ecx
test edi, edi
setg cl
mov dword [esi + 0x40], ecx
mov ecx, edi
sar ecx, 0x1f
xor edi, ecx
sub edi, ecx
dec edi
and edi, ebx
cmp eax, 9
mov dword [esi + 0x44], edi
je 0xa389f1
mov ecx, dword [edx + 0x24]
mov edi, dword [ecx + 0x78]
mov ecx, edi
sub ecx, ebp
mov ebp, ecx
xor ecx, ecx
test ebp, ebp
setg cl
mov dword [esi + 0x48], ecx
mov ecx, ebp
sar ecx, 0x1f
xor ebp, ecx
sub ebp, ecx
dec ebp
and ebp, ebx
cmp eax, 0xa
mov dword [esi + 0x4c], ebp
je 0xa389f1
mov ecx, dword [edx + 0x28]
mov ebp, dword [ecx + 0x78]
mov ecx, ebp
sub ecx, edi
mov edi, ecx
xor ecx, ecx
test edi, edi
setg cl
mov dword [esi + 0x50], ecx
mov ecx, edi
sar ecx, 0x1f
xor edi, ecx
sub edi, ecx
dec edi
and edi, ebx
cmp eax, 0xb
mov dword [esi + 0x54], edi
je 0xa389f1
mov ecx, dword [edx + 0x2c]
mov edi, dword [ecx + 0x78]
mov ecx, edi
sub ecx, ebp
mov ebp, ecx
xor ecx, ecx
test ebp, ebp
setg cl
mov dword [esi + 0x58], ecx
mov ecx, ebp
sar ecx, 0x1f
xor ebp, ecx
sub ebp, ecx
dec ebp
and ebp, ebx
cmp eax, 0xc
mov dword [esi + 0x5c], ebp
je 0xa389f1
mov ecx, dword [edx + 0x30]
mov ebp, dword [ecx + 0x78]
mov ecx, ebp
sub ecx, edi
mov edi, ecx
xor ecx, ecx
test edi, edi
setg cl
mov dword [esi + 0x60], ecx
mov ecx, edi
sar ecx, 0x1f
xor edi, ecx
sub edi, ecx
dec edi
and edi, ebx
cmp eax, 0xd
mov dword [esi + 0x64], edi
je 0xa389f1
mov ecx, dword [edx + 0x34]
mov edi, dword [ecx + 0x78]
mov ecx, edi
sub ecx, ebp
mov ebp, ecx
xor ecx, ecx
test ebp, ebp
setg cl
mov dword [esi + 0x68], ecx
mov ecx, ebp
sar ecx, 0x1f
xor ebp, ecx
sub ebp, ecx
dec ebp
and ebp, ebx
cmp eax, 0xe
mov dword [esi + 0x6c], ebp
je 0xa389f1
mov ecx, dword [edx + 0x38]
mov ebp, dword [ecx + 0x78]
mov ecx, ebp
sub ecx, edi
mov edi, ecx
xor ecx, ecx
test edi, edi
setg cl
mov dword [esi + 0x70], ecx
mov ecx, edi
sar ecx, 0x1f
xor edi, ecx
sub edi, ecx
dec edi
and edi, ebx
cmp eax, 0xf
mov dword [esi + 0x74], edi
je 0xa389f1
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax + 0x78]
xor eax, eax
sub ecx, ebp
test ecx, ecx
setg al
mov dword [esi + 0x78], eax
mov eax, ecx
sar eax, 0x1f
xor ecx, eax
sub ecx, eax
dec ecx
and ebx, ecx
mov dword [esi + 0x7c], ebx
inc dword [esp]
add edx, 0x4c
sub esi, 0xffffff80
mov eax, dword [esp]
cmp eax, 2
je 0xa38a12
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x54]
test eax, eax
je 0xa389f1
jmp 0xa38705
mov esi, dword [esp + 4]
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x30], 0x33
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x8c]
mov ebp, dword [edx + 0x24]
mov edx, dword [esi + 0x90]
mov dword [ebx + 0x13e8], eax
mov eax, 0x33
cmovle eax, dword [esp + 0x30]
mov dword [ebx + 0x13ec], eax
sub eax, ebp
mov dword [ebx + 0x13f0], eax
xor eax, eax
mov dword [ebx + 0x13f4], eax
xor eax, eax
test ecx, ecx
mov dword [ebx + 0x13f8], eax
mov eax, dword [esi + 0x94]
je 0xa38a8d
mov edi, dword [esp + 0x30]
cmp eax, edx
mov ecx, edx
cmovle ecx, eax
lea ecx, [edi + ecx*2]
cmp ecx, 0xf
jg 0xa38ab0
mov edi, dword [esi + 0x70a0]
test edi, edi
jne 0xa38ab0
mov ecx, 1
mov dword [ebx + 0x13fc], ecx
add edx, edx
add eax, eax
mov dword [ebx + 0x1400], edx
mov dword [ebx + 0x1404], eax
add esp, 0x10
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esi + 0xc]
mov esi, 2
test ecx, ecx
cmovne ecx, esi
mov dword [ebx + 0x13fc], ecx
jmp 0xa38a98
mov esi, dword [esp + 4]
mov eax, dword [esi + 0x70]
test eax, eax
je 0xa386a2
mov ecx, dword [esi + 0x2bc]
mov eax, 1
test ecx, ecx
jne 0xa386a2
mov ebp, dword [esi + 0x2c4]
xor eax, eax
test ebp, ebp
sete al
jmp 0xa386a2
mov edi, esi
mov esi, dword [esi + 0x3b94]
mov ecx, dword [edi + 0x3b48]
mov edi, dword [ecx + 4]
cmp dword [esi + 0x98], edi
je 0xa38b33
mov eax, dword [esp + 4]
xor esi, esi
mov dword [eax + 0x70ac], esi
mov esi, eax
mov dword [ebx + 0x40], 1
jmp 0xa386c0
test eax, eax
je 0xa38b60
mov eax, dword [esp + 4]
mov esi, dword [esp + 4]
mov edx, dword [eax + 0x8128]
cmp dword [eax + 0x812c], edx
setg al
movzx eax, al
mov dword [ebx + 0x40], eax
jmp 0xa386c0
xor eax, eax
dec edx
mov esi, dword [esp + 4]
sete al
mov dword [ebx + 0x40], eax
jmp 0xa386c0