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

Disassembly:
sub esp, 0x1b0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c0]
mov eax, dword [esi + 0x58]
cmp eax, 2
push edi
jl 0x4a0d1c
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4a09a4
pop edi
pop esi
pop ebp
mov eax, 0xffffff76
pop ebx
add esp, 0x1b0
ret
mov edi, dword [esp + 0x1cc]
test edi, edi
mov ebx, dword [esp + 0x1c8]
jl 0x4a0d1c
jg 0x4a09c4
test ebx, ebx
jb 0x4a0d1c
cmp edi, dword [esi + 0x14]
jg 0x4a0d1c
jl 0x4a09d8
cmp ebx, dword [esi + 0x10]
ja 0x4a0d1c
cmp eax, 3
jl 0x4a0a08
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x38]
cmp edi, dword [ecx + eax*8 + 4]
jl 0x4a09ff
jg 0x4a09f0
cmp ebx, dword [ecx + eax*8]
jb 0x4a09ff
lea eax, [ecx + eax*8 + 8]
cmp edi, dword [eax + 4]
jl 0x4a0a08
jg 0x4a09ff
cmp ebx, dword [eax]
jb 0x4a0a08
push esi
call fcn.004a0d30
add esp, 4
mov ecx, dword [esi + 0x5c]
or ebp, 0xffffffff
lea eax, [esi + 0x78]
push ecx
mov dword [esi + 0x50], ebp
push eax
mov dword [esi + 0x54], ebp
call fcn.0048e2b0
lea edx, [esi + 0x1e0]
push edx
call fcn.004906d0
push edi
push ebx
push esi
call fcn.004a01d0
add esp, 0x18
test eax, eax
je 0x4a0a62
lea eax, [esp + 0x58]
mov dword [esi + 0x50], ebp
push eax
mov dword [esi + 0x54], ebp
call fcn.0048da00
push esi
call fcn.004a0d30
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0xffffff77
pop ebx
add esp, 0x1b0
ret
mov ecx, dword [esi + 0x5c]
xor eax, eax
push ecx
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
call fcn.0048d960
lea eax, [esp + 0x60]
push eax
call fcn.0048e250
add esp, 0xc
jmp 0x4a0a94
or ebp, 0xffffffff
cmp dword [esi + 0x58], 3
jl 0x4a0b52
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.0048e2e0
add esp, 8
test eax, eax
jle 0x4a0b52
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x48]
shl eax, 5
add eax, ecx
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4a0b44
lea edx, [esp + 0x38]
push edx
push eax
call fcn.00491340
mov ebx, eax
add esp, 8
test ebx, ebx
jge 0x4a0af0
lea eax, [esi + 0x78]
push 0
push eax
call fcn.0048e2e0
add esp, 8
xor ebx, ebx
jmp 0x4a0b27
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4a0b10
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4a0b10
lea eax, [esi + 0x78]
push 0
push eax
call fcn.0048e2e0
add esp, 8
jmp 0x4a0b27
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a0b27
mov ecx, dword [esp + 0x18]
add eax, ebx
sar eax, 2
add ecx, eax
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, edi
and edx, ecx
cmp edx, ebp
jne 0x4a0c7f
mov dword [esp + 0x14], ebx
jmp 0x4a0a94
lea eax, [esi + 0x78]
push 0
push eax
call fcn.0048e2e0
add esp, 8
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4a0cf0
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0049fc10
mov ebp, edx
add esp, 0x10
test ebp, ebp
mov dword [esp + 0x30], eax
jl 0x4a0cdd
jg 0x4a0b86
test eax, eax
jb 0x4a0cdd
mov eax, dword [esi + 0x58]
mov edi, 3
cmp eax, edi
jl 0x4a0bcf
lea ecx, [esp + 0x20]
push ecx
call fcn.0048d900
mov ecx, dword [esi + 0x5c]
add esp, 4
cmp ecx, eax
je 0x4a0bca
lea edx, [esp + 0x20]
push edx
call fcn.0048d800
add esp, 4
test eax, eax
je 0x4a0bca
push esi
call fcn.004a0d30
lea eax, [esp + 0x5c]
push eax
call fcn.0048da00
add esp, 8
cmp dword [esi + 0x58], edi
jge 0x4a0c4c
lea ecx, [esp + 0x20]
push ecx
call fcn.0048d900
mov ebx, eax
mov eax, dword [esi + 0x34]
add esp, 4
xor edi, edi
test eax, eax
jle 0x4a0bf6
mov ecx, dword [esi + 0x40]
cmp dword [ecx], ebx
je 0x4a0bf6
inc edi
add ecx, 4
cmp edi, eax
jl 0x4a0bea
cmp edi, eax
je 0x4a0a91
lea eax, [esi + 0x78]
push ebx
push eax
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], ebx
call fcn.0048e2b0
lea edx, [esp + 0x60]
push ebx
push edx
call fcn.0048e2b0
mov eax, dword [esi + 0x3c]
lea eax, [eax + edi*8]
mov dword [esi + 0x58], 3
mov ecx, dword [eax + 4]
add esp, 0x10
cmp ebp, ecx
jg 0x4a0c44
jl 0x4a0c3a
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax]
ja 0x4a0c44
mov dword [esp + 0x10], 1
jmp 0x4a0c4c
mov dword [esp + 0x10], 0
lea edx, [esp + 0x20]
push edx
lea eax, [esi + 0x78]
push eax
call fcn.0048def0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.0048def0
lea edx, [esp + 0x30]
push edx
call fcn.0048d810
add esp, 0x14
mov dword [esp + 0x1c], eax
jmp 0x4a0a91
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x44]
mov ebx, edx
shl ebx, 4
sub edi, dword [ebx + eax]
sbb ecx, dword [ebx + eax + 4]
test ecx, ecx
jg 0x4a0c9f
jl 0x4a0c9b
test edi, edi
jae 0x4a0c9f
xor edi, edi
xor ecx, ecx
test edx, edx
jle 0x4a0cb5
add eax, 8
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
add edi, ebx
adc ecx, ebp
add eax, 0x10
dec edx
jne 0x4a0ca6
mov eax, dword [esp + 0x18]
cdq
sub edi, eax
sbb ecx, edx
mov eax, ecx
test eax, eax
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], ecx
jg 0x4a0cf6
jl 0x4a0cd3
mov eax, dword [esi + 0x50]
test eax, eax
jae 0x4a0cf6
xor eax, eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
jmp 0x4a0cf6
push 0xffffffffffffffff
push esi
call fcn.004a0870
mov dword [esi + 0x50], eax
add esp, 8
mov dword [esi + 0x54], edx
jmp 0x4a0cf6
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebp
lea eax, [esp + 0x58]
push eax
call fcn.0048da00
add esp, 4
xor eax, eax
pop edi
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x74], eax
pop esi
pop ebp
pop ebx
add esp, 0x1b0
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffff7d
pop ebx
add esp, 0x1b0
ret