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

Disassembly:
push 0xffffffffffffffff
push 0x478d20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov ecx, dword [esp + 0x68]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
je 0x4a4cfe
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004bfcd0
cmp eax, 1
jne 0x4a4cfe
mov edx, dword [esp + 0x60]
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
push edi
mov eax, dword [ebp]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 0xc]
sub ebx, eax
sub ecx, esi
sub edx, 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x74], ecx
mov edi, eax
je 0x4a4c67
dec edx
je 0x4a4b9a
dec edx
jne 0x4a4cf0
mov eax, dword [esp + 0x78]
mov ebp, dword [eax + 4]
mov eax, dword [eax + 8]
cmp ebp, ebx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
jg 0x4a4a7f
mov eax, ebx
mov ebx, ebp
sub eax, ebp
mov dword [esp + 0x10], ebx
cdq
sub eax, edx
sar eax, 1
add edi, eax
mov edx, dword [esp + 0x78]
cmp edx, ecx
jg 0x4a4a9c
mov eax, ecx
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x78]
sar eax, 1
add esi, eax
mov dword [esp + 0x74], edx
mov ecx, edx
cmp ebp, ebx
jg 0x4a4aa6
cmp dword [esp + 0x78], ecx
jle 0x4a4b0b
fild dword [esp + 0x70]
fild dword [esp + 0x10]
fdiv st(1)
fild dword [esp + 0x78]
fst qword [esp + 0x18]
fild dword [esp + 0x74]
fdiv st(1)
fstp qword [esp + 0x10]
fstp st(0)
fcom qword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x4a4ad5
fstp st(0)
fld qword [esp + 0x10]
fxch st(1)
fmul st(1)
call 0x4f2628
fld qword [esp + 0x18]
fmul st(1)
mov ebp, eax
call 0x4f2628
mov ecx, eax
mov eax, ebx
sub eax, ebp
mov dword [esp + 0x7c], ecx
cdq
fstp st(0)
sub eax, edx
sar eax, 1
add edi, eax
mov eax, dword [esp + 0x74]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov eax, dword [esp + 0x7c]
push 0xcc0020
push eax
push ebp
push esi
lea ecx, [esp + 0x58]
push edi
push ecx
call fcn.004bff30
mov ebx, dword [esp + 0x84]
test ebx, ebx
je 0x4a4cf0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x49ebb4
mov edx, dword [esp + 0x7c]
add ebp, edi
add edx, esi
mov dword [esp + 0x68], 2
push edx
push ebp
push esi
push edi
call dword [0x47d0bc]
push eax
lea ecx, [esp + 0x14]
call 0x5097d6
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x10]
push 4
neg eax
sbb eax, eax
and eax, ebp
push eax
push ecx
push ecx
call dword [fcn.0047d0b8]
mov dword [esp + 0x10], 0x49ddc0
mov dword [esp + 0x68], 3
lea ecx, [esp + 0x10]
jmp 0x4a4ceb
add ecx, esi
cmp esi, ecx
jge 0x4a4c53
mov ecx, dword [esp + 0x50]
mov edi, eax
lea edx, [eax + ebx]
cmp edi, edx
jge 0x4a4c3c
mov eax, dword [esp + 0x54]
add ecx, edi
add eax, esi
push eax
push ecx
push esi
lea ecx, [esp + 0x44]
push edi
push ecx
call dword [fcn.0047d4c8]
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [fcn.0047d4cc]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x28]
mov dword [esp + 0x30], ecx
push eax
mov dword [esp + 0x38], edx
call dword [fcn.0047d518]
test eax, eax
jne 0x4a4c28
push 0xcc0020
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x58]
push edi
push ecx
call fcn.004bff30
mov eax, dword [ebp]
mov ecx, dword [esp + 0x50]
add edi, ecx
lea edx, [eax + ebx]
cmp edi, edx
jl 0x4a4bb5
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x74]
add esi, edx
mov edx, dword [ebp + 4]
add edx, edi
cmp esi, edx
jl 0x4a4ba8
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x4a4cf0
jmp 0x4a4ceb
push 0xcc0020
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x58]
push edi
push eax
call fcn.004bff30
mov ebx, dword [esp + 0x84]
xor eax, eax
cmp ebx, eax
je 0x4a4cf0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x49ebb4
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x68], eax
lea eax, [ecx + esi]
lea ecx, [edx + edi]
push eax
push ecx
push esi
push edi
call dword [0x47d0bc]
push eax
lea ecx, [esp + 0x14]
call 0x5097d6
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x10]
push 4
neg eax
sbb eax, eax
and eax, ebp
push eax
push ecx
push ecx
call dword [fcn.0047d0b8]
mov dword [esp + 0x10], 0x49ddc0
mov dword [esp + 0x68], 1
lea ecx, [esp + 0x10]
call 0x50982d
lea eax, [esp + 0x48]
push eax
call fcn.004c0290
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret