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

Disassembly:
sub esp, 0x1a4
push esi
mov esi, dword [esp + 0x1ac]
cmp dword [esi + 0x58], 2
jge 0x4a6fb1
mov eax, 0xffffff7d
pop esi
add esp, 0x1a4
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x4a6fc5
mov eax, 0xffffff76
pop esi
add esp, 0x1a4
ret
push ebx
mov ebx, dword [esp + 0x1b8]
test ebx, ebx
push edi
jl 0x4a72b8
mov edi, dword [esp + 0x1b8]
jg 0x4a6fe7
test edi, edi
jb 0x4a72b8
cmp ebx, dword [esi + 0x14]
jg 0x4a72b8
jl 0x4a6ffb
cmp edi, dword [esi + 0x10]
ja 0x4a72b8
or eax, 0xffffffff
push ebp
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x5c]
push eax
lea ebp, [esi + 0x78]
push ebp
call fcn.004ceb10
lea ecx, [esi + 0x1e0]
push ecx
call fcn.004a9820
push ebx
push edi
mov eax, esi
call fcn.004a5cd0
add esp, 0x14
test eax, eax
je 0x4a7059
or eax, 0xffffffff
lea edx, [esp + 0x4c]
push edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
call fcn.004ce3f0
add esp, 4
call fcn.004a6a30
pop ebp
pop edi
pop ebx
mov eax, 0xffffff77
pop esi
add esp, 0x1a4
ret
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x5c]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.004ce380
lea edx, [esp + 0x54]
push edx
call fcn.004ceac0
add esp, 0xc
mov eax, dword [esi + 0x58]
mov edi, 3
cmp eax, edi
jl 0x4a7138
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.004cecb0
add esp, 8
test eax, eax
jle 0x4a7138
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x48]
shl edx, 5
mov ecx, dword [eax + edx + 0x1c]
add eax, edx
test ecx, ecx
je 0x4a712d
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.004a8fa0
mov ebx, eax
add esp, 8
test ebx, ebx
jge 0x4a70e2
push 0
push ebp
call fcn.004cecb0
add esp, 8
xor ebx, ebx
jmp 0x4a710f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a70f7
push 0
push ebp
call fcn.004cecb0
add esp, 8
jmp 0x4a710f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a710f
lea edx, [ebx + eax]
mov eax, dword [esp + 0x14]
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 0x4a722c
mov dword [esp + 0x10], ebx
jmp 0x4a7082
push 0
push ebp
call fcn.004cecb0
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4a7283
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
push ecx
call fcn.004a5d30
add esp, 0xc
test edx, edx
jl 0x4a7273
jg 0x4a7167
test eax, eax
jb 0x4a7273
cmp dword [esi + 0x58], edi
jl 0x4a71a8
lea edx, [esp + 0x1c]
push edx
call fcn.004ce350
mov ecx, dword [esi + 0x5c]
add esp, 4
cmp ecx, eax
je 0x4a71a3
lea eax, [esp + 0x1c]
push eax
call fcn.004ce2a0
add esp, 4
test eax, eax
je 0x4a71a3
call fcn.004a6a30
lea ecx, [esp + 0x4c]
push ecx
call fcn.004ce3f0
add esp, 4
cmp dword [esi + 0x58], edi
jge 0x4a71fc
lea edx, [esp + 0x1c]
push edx
call fcn.004ce350
mov edx, dword [esi + 0x34]
mov edi, eax
add esp, 4
xor eax, eax
test edx, edx
jle 0x4a71d2
mov ecx, dword [esi + 0x40]
cmp dword [ecx], edi
je 0x4a71d2
mov ebx, dword [esi + 0x34]
inc eax
add ecx, 4
cmp eax, ebx
jl 0x4a71c3
cmp eax, edx
je 0x4a7082
push edi
push ebp
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], edi
call fcn.004ceb10
lea eax, [esp + 0x54]
push edi
push eax
call fcn.004ceb10
add esp, 0x10
mov dword [esi + 0x58], 3
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004ce780
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.004ce780
lea ecx, [esp + 0x2c]
push ecx
call fcn.004ce2b0
add esp, 0x14
mov dword [esp + 0x18], eax
jmp 0x4a7082
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 0x4a724c
jl 0x4a7248
test edi, edi
jae 0x4a724c
xor edi, edi
xor ecx, ecx
test edx, edx
jle 0x4a7262
add eax, 8
mov ebx, dword [eax]
add edi, ebx
mov ebx, dword [eax + 4]
adc ecx, ebx
add eax, 0x10
dec edx
jne 0x4a7253
mov eax, dword [esp + 0x14]
cdq
sub edi, eax
sbb ecx, edx
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], ecx
jmp 0x4a728c
push 0xffffffffffffffff
push esi
call fcn.004a6e90
add esp, 8
mov dword [esi + 0x54], edx
jmp 0x4a7289
or eax, 0xffffffff
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], eax
lea edx, [esp + 0x4c]
push edx
call fcn.004ce3f0
fld qword [0x4ee850]
add esp, 4
fstp qword [esi + 0x68]
fld qword [0x4ee850]
pop ebp
pop edi
fstp qword [esi + 0x70]
pop ebx
xor eax, eax
pop esi
add esp, 0x1a4
ret
pop edi
pop ebx
mov eax, 0xffffff7d
pop esi
add esp, 0x1a4
ret