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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x550bfc]
push ebx
push esi
xor esi, esi
fld qword [eax]
mov eax, dword [ebp + 0x28]
push edi
fmul qword [0x550f68]
and eax, 0x2000
mov dword [esp + 0x10], eax
mov eax, dword [0x583520]
cmp eax, esi
fstp qword [esp + 0x30]
je 0x4a5f14
push esi
call fcn.004a7540
fstp qword [ebp + 0x20]
add esp, 4
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 0xc]
mov ebx, eax
shl ebx, 5
add ebx, eax
shl ebx, 3
mov dword [esp + 0x14], ebx
mov ecx, dword [ebx + 0x5835c0]
lea eax, [ebx + 0x5835c0]
test ch, 1
mov dword [0x583ae8], eax
je 0x4a5f3f
mov dword [esp + 0x10], esi
cmp dword [0x584fb8], esi
jne 0x4a5f50
mov eax, dword [ebp + 0x28]
and ah, 0xfd
mov dword [ebp + 0x28], eax
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x4a62a4
mov al, byte [edi]
mov esi, dword [edi + 0x38]
test al, 0x10
jne 0x4a628f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a5f85
push 0
push 0
push edi
call fcn.0048eb80
add esp, 0xc
test eax, eax
je 0x4a628f
mov eax, dword [edi]
mov ecx, eax
and ecx, 0x40
je 0x4a5f9a
mov edx, dword [ebp + 0x28]
test dh, 8
jne 0x4a628f
test ecx, ecx
jne 0x4a5fab
test dword [ebp + 0x28], 0x20000
jne 0x4a628f
test eax, 0x2000000
je 0x4a5fbe
mov edx, dword [ebp + 0x28]
test dh, 0x80
jne 0x4a628f
test ah, 2
mov eax, dword [ebp + 0x28]
jne 0x4a5fd1
test eax, 0x80000
jne 0x4a628f
cmp esi, 8
jne 0x4a5fe0
test al, 4
je 0x4a628f
jmp 0x4a5fe9
test ah, 0x10
jne 0x4a628f
mov eax, dword [0x584ce8]
test eax, eax
je 0x4a6006
cmp dword [ebp + 0xc], 3
jne 0x4a6023
cmp dword [edi + 0xa4], eax
jne 0x4a628f
jmp 0x4a6023
cmp dword [ebp + 0xc], 3
je 0x4a6023
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x4a6023
test byte [eax + 0xcc], 1
jne 0x4a628f
mov eax, dword [0x580b98]
test eax, eax
je 0x4a604a
mov eax, dword [edi + 0xa4]
xor edx, edx
test eax, eax
sete dl
xor eax, eax
cmp dword [ebp + 0xc], 3
sete al
xor edx, eax
jne 0x4a628f
test ecx, ecx
je 0x4a6060
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jmp 0x4a6076
cmp esi, 2
je 0x4a606f
cmp esi, 4
je 0x4a606f
fld dword [edi + 0x64]
jmp 0x4a6072
fld dword [edi + 0x68]
fstp qword [esp + 0x28]
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x4a6089
push eax
call fcn.00457cd0
add esp, 4
mov esi, dword [ebx + 0x5836bc]
xor eax, eax
test esi, esi
setne al
inc eax
cmp eax, 2
mov dword [esp + 0x18], eax
jne 0x4a60b4
mov ecx, dword [ebx + 0x5836c0]
mov edx, dword [ebx + 0x5836c4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov ebx, 1
cmp eax, ebx
jl 0x4a628b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x68]
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebp + 0x1c]
lea eax, [eax + 0x5835c0]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
call fcn.004ace00
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4a61a1
cmp dword [esp + 0x18], 2
jne 0x4a61a1
fld qword [esp + 0x38]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
jne 0x4a61a1
fld qword [esp + 0x68]
fdiv qword [esp + 0x38]
fst qword [esp + 0x40]
fabs
fcomp qword [0x550f30]
fnstsw ax
test ah, 0x41
jne 0x4a6165
mov esi, 1
jmp 0x4a61a1
fld qword [esp + 0x40]
call fcn.00547db0
cmp ebx, 1
je 0x4a6179
fsubr qword [0x55b480]
fmul qword [esp + 0x38]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x6c], eax
fstp qword [esp + 0x70]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
cmp ebx, 1
jne 0x4a61b5
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x4a61b5
call fcn.00457f30
test esi, esi
jne 0x4a627e
test byte [edi], 0x40
jne 0x4a61dd
fld qword [esp + 0x78]
fsub qword [esp + 0x28]
fabs
fcomp qword [0x584ab0]
fnstsw ax
test ah, 0x41
je 0x4a627e
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x28]
lea edx, [esp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push eax
push ecx
push edx
lea eax, [esp + 0x80]
push edi
push eax
call fcn.0049ea10
add esp, 0x20
test eax, eax
jne 0x4a627e
fld qword [esp + 0x30]
fmul qword [0x55b408]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 1
jne 0x4a627e
mov ecx, dword [esp + 0x20]
mov esi, dword [ebp + 0x34]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x30]
mov dword [esi], edi
mov dword [esp + 0x34], edx
mov dword [ecx], eax
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x4a6254
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x60]
test eax, 0x100000
mov dword [esp + 0x50], edx
jne 0x4a62aa
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, eax
jle 0x4a60c1
mov ebx, dword [esp + 0x14]
mov edi, dword [edi + 0x34]
test edi, edi
jne 0x4a5f5b
xor eax, eax
test eax, eax
jne 0x4a63a9
mov esi, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x38]
fld qword [esp + 0x30]
fcomp qword [ebp + 0x20]
fnstsw ax
test ah, 1
je 0x4a63ac
cmp dword [0x571920], 0x57
jne 0x4a6371
mov ecx, dword [esi]
push ecx
call fcn.004deb50
add esp, 4
cmp eax, 1
jle 0x4a636e
mov edx, dword [ebp + 8]
push edx
push esi
call fcn.004deb70
add esp, 8
test eax, eax
je 0x4a6309
mov eax, dword [ebp + 0x30]
mov dword [esi], 0
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x30]
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebp + 0x24]
push edi
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [esi]
push ecx
push edx
lea ecx, [esp + 0x80]
push eax
push ecx
call fcn.0049ea10
add esp, 0x20
test eax, eax
je 0x4a6351
mov dword [esi], 0
mov dword [edi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x4a6365
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [eax], edx
mov dword [eax + 4], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x2c]
mov eax, dword [esp + 0x48]
test ecx, ecx
mov dword [edx], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x50]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x54]
mov dword [edx + 0xc], eax
je 0x4a63a0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [ecx], edx
mov dword [ecx + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x30]
mov dword [esi], 0
pop edi
pop esi
mov dword [ecx], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret