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

Disassembly:
sub esp, 0x1a4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1b4]
push edi
cmp dword [esi + 0x58], 2
jl 0x4a1c93
mov eax, dword [esi + 4]
test eax, eax
jne 0x4a19c2
pop edi
pop esi
pop ebp
mov eax, 0xffffff76
pop ebx
add esp, 0x1a4
ret
mov edi, dword [esp + 0x1c0]
mov ebx, dword [esp + 0x1bc]
test edi, edi
jl 0x4a1c93
jg 0x4a19e2
test ebx, ebx
jb 0x4a1c93
cmp edi, dword [esi + 0x14]
jg 0x4a1c93
jl 0x4a19f6
cmp ebx, dword [esi + 0x10]
ja 0x4a1c93
or eax, 0xffffffff
lea ebp, [esi + 0x78]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x5c]
push eax
push ebp
call fcn.0048fc80
lea ecx, [esi + 0x1e0]
push ecx
call fcn.00491b40
push edi
push ebx
push esi
call fcn.004a13b0
mov edx, dword [esi + 0x5c]
lea eax, [esp + 0x64]
xor edi, edi
push edx
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.0048f100
lea ecx, [esp + 0x6c]
push ecx
call fcn.0048fc30
add esp, 0x24
mov eax, dword [esi + 0x58]
mov ebx, 3
cmp eax, ebx
jl 0x4a1afa
lea edx, [esp + 0x2c]
lea eax, [esp + 0x4c]
push edx
push eax
call fcn.0048fca0
add esp, 8
test eax, eax
jle 0x4a1afa
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 0x4a1aef
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.00493500
mov ebx, eax
add esp, 8
test ebx, ebx
jge 0x4a1aa6
push 0
push ebp
call fcn.0048fca0
add esp, 8
xor ebx, ebx
jmp 0x4a1acf
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a1abb
push 0
push ebp
call fcn.0048fca0
add esp, 8
jmp 0x4a1acf
test edi, edi
je 0x4a1acf
mov eax, dword [esp + 0x14]
lea edx, [ebx + edi]
sar edx, 2
add eax, edx
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, edi
and eax, ecx
cmp eax, 0xffffffff
jne 0x4a1bde
mov dword [esp + 0x10], ebx
mov edi, ebx
jmp 0x4a1a45
push 0
push ebp
call fcn.0048fca0
add esp, 8
test edi, edi
jne 0x4a1c64
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
push ecx
push esi
call fcn.004a1010
add esp, 0x10
test edx, edx
jl 0x4a1c25
jg 0x4a1b26
test eax, eax
jb 0x4a1c25
cmp dword [esi + 0x58], ebx
jl 0x4a1b57
lea edx, [esp + 0x1c]
push edx
call fcn.0048f0a0
mov ecx, dword [esi + 0x5c]
add esp, 4
cmp ecx, eax
je 0x4a1b52
push esi
call fcn.004a18f0
lea eax, [esp + 0x50]
push eax
call fcn.0048f170
add esp, 8
cmp dword [esi + 0x58], ebx
jge 0x4a1bae
lea ecx, [esp + 0x1c]
push ecx
call fcn.0048f0a0
mov edx, dword [esi + 0x34]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x5c], eax
test edx, edx
jle 0x4a1b88
mov edi, dword [esi + 0x40]
cmp dword [edi], eax
je 0x4a1b7f
inc ecx
add edi, 4
cmp ecx, edx
jl 0x4a1b73
mov edi, dword [esp + 0x10]
mov ebx, 3
cmp ecx, edx
je 0x4a1c38
push eax
push ebp
mov dword [esi + 0x60], ecx
call fcn.0048fc80
mov edx, dword [esi + 0x5c]
lea eax, [esp + 0x54]
push edx
push eax
call fcn.0048fc80
add esp, 0x10
mov dword [esi + 0x58], ebx
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.0048f920
lea edx, [esp + 0x24]
lea eax, [esp + 0x54]
push edx
push eax
call fcn.0048f920
lea ecx, [esp + 0x2c]
push ecx
call fcn.0048efb0
add esp, 0x14
mov dword [esp + 0x18], eax
jmp 0x4a1a45
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 0x4a1bfe
jl 0x4a1bfa
test edi, edi
jae 0x4a1bfe
xor edi, edi
xor ecx, ecx
test edx, edx
jle 0x4a1c14
add eax, 8
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
add edi, ebx
adc ecx, ebp
add eax, 0x10
dec edx
jne 0x4a1c05
mov eax, dword [esp + 0x14]
cdq
sub edi, eax
sbb ecx, edx
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], ecx
jmp 0x4a1c6d
push 0xffffffffffffffff
push esi
call fcn.004a1920
mov dword [esi + 0x50], eax
add esp, 8
mov dword [esi + 0x54], edx
jmp 0x4a1c6d
or eax, 0xffffffff
lea edx, [esp + 0x4c]
mov dword [esi + 0x50], eax
push edx
mov dword [esi + 0x54], eax
call fcn.0048f170
push esi
call fcn.004a18f0
add esp, 8
mov eax, 0xffffff77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
or eax, 0xffffffff
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
lea eax, [esp + 0x4c]
push eax
call fcn.0048f170
add esp, 4
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x74], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffff7d
pop ebx
add esp, 0x1a4
ret