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

Disassembly:
sub esp, 0x1a0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1b0]
push edi
cmp dword [esi + 0x58], 2
jl 0x4a095b
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, ebp
jne 0x4a06f4
pop edi
pop esi
pop ebp
mov eax, 0xffffff76
pop ebx
add esp, 0x1a0
ret
mov edi, dword [esp + 0x1b8]
cmp edi, ebp
jl 0x4a095b
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
mov ebx, dword [ecx + eax*8 + 4]
lea ecx, [ecx + eax*8]
mov eax, edi
cdq
cmp edx, ebx
jg 0x4a095b
jl 0x4a0725
cmp eax, dword [ecx]
ja 0x4a095b
or eax, 0xffffffff
push esi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
call fcn.004a0970
push edi
push esi
call fcn.004a0290
mov ebx, dword [esp + 0x20]
add esp, 0xc
mov ecx, 0x5a
xor eax, eax
lea edi, [esp + 0x48]
mov dword [esp + 0x10], ebp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x58]
mov edi, 3
cmp eax, edi
jne 0x4a07e8
lea edx, [esp + 0x28]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.004a30c0
add esp, 8
test eax, eax
jle 0x4a07e8
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x48]
shl ecx, 5
lea eax, [ecx + edx]
mov ecx, dword [ecx + edx + 0x1c]
test ecx, ecx
je 0x4a079f
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.004a46f0
add esp, 8
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x4a07b3
lea edx, [esi + 0x78]
push 0
push edx
call fcn.004a30c0
add esp, 8
jmp 0x4a07ca
test ebp, ebp
je 0x4a07ca
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add eax, ebp
sar eax, 2
add ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov edx, ecx
and edx, edi
cmp edx, 0xffffffff
jne 0x4a08cf
mov ebp, dword [esp + 0x14]
jmp 0x4a0753
test ebp, ebp
jne 0x4a0938
lea eax, [esp + 0x18]
push 0xffffffffffffffff
push eax
push esi
call fcn.0049ff70
add esp, 0xc
test eax, eax
jl 0x4a08f9
cmp dword [esi + 0x58], edi
jne 0x4a0837
lea ecx, [esp + 0x18]
push ecx
call fcn.004a28d0
mov ecx, dword [esi + 0x5c]
add esp, 4
cmp ecx, eax
je 0x4a0834
push esi
call fcn.004a0970
lea edx, [esp + 0x4c]
push edx
call fcn.004a29a0
add esp, 8
cmp dword [esi + 0x58], edi
jge 0x4a089e
lea eax, [esp + 0x18]
push eax
call fcn.004a28d0
mov edx, dword [esi + 0x34]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x5c], eax
test edx, edx
jle 0x4a0861
mov edi, dword [esi + 0x40]
cmp dword [edi], eax
je 0x4a0861
inc ecx
add edi, 4
cmp ecx, edx
jl 0x4a0855
cmp ecx, edx
je 0x4a090c
lea edi, [esi + 0x78]
push eax
push edi
mov dword [esi + 0x60], ecx
call fcn.004a2930
push edi
call fcn.004a3070
mov ecx, dword [esi + 0x5c]
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.004a2930
lea eax, [esp + 0x5c]
push eax
call fcn.004a3070
add esp, 0x18
mov dword [esi + 0x58], 3
lea ecx, [esp + 0x18]
lea edx, [esi + 0x78]
push ecx
push edx
call fcn.004a2d60
lea eax, [esp + 0x20]
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.004a2d60
lea edx, [esp + 0x28]
push edx
call fcn.004a27e0
add esp, 0x14
mov ebx, eax
jmp 0x4a0753
mov edx, dword [esi + 0x60]
test edx, edx
jle 0x4a08e8
mov eax, dword [esi + 0x44]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
add ecx, ebx
adc edi, ebp
add eax, 8
dec edx
jne 0x4a08d9
mov eax, dword [esp + 0x10]
cdq
sub ecx, eax
sbb edi, edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edi
jmp 0x4a0941
push 0xffffffffffffffff
push esi
call fcn.004a05c0
mov dword [esi + 0x50], eax
add esp, 8
mov dword [esi + 0x54], edx
jmp 0x4a0941
or eax, 0xffffffff
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
lea eax, [esp + 0x48]
push eax
call fcn.004a29a0
push esi
call fcn.004a0970
add esp, 8
mov eax, 0xffffff77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret
or eax, 0xffffffff
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
lea ecx, [esp + 0x48]
push ecx
call fcn.004a29a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffff7d
pop ebx
add esp, 0x1a0
ret