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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51b161
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebx + 8]
lea ecx, [esp + 0x160]
push eax
call fcn.00491bb0
mov ecx, dword [ebp + 0x10]
xor edi, edi
add ecx, 8
mov dword [esp + 0x3a0], edi
push ecx
lea ecx, [esp + 0xac]
call fcn.00491bb0
lea ecx, [esp + 0x68]
mov byte [esp + 0x3a0], 1
call fcn.004b7e80
lea ecx, [esp + 0x218]
mov byte [esp + 0x3a0], 2
call fcn.004d22b0
mov dword [esp + 0x20], 0x522d70
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x2a8]
mov byte [esp + 0x3a0], 4
call fcn.004d5600
lea edx, [esp + 0x68]
lea ecx, [esp + 0x160]
push edx
push edi
mov byte [esp + 0x3a8], 5
call fcn.00498340
lea eax, [esp + 0x160]
lea ecx, [esp + 0x2a8]
push eax
call fcn.004d58b0
lea ecx, [esp + 0x68]
lea edx, [esp + 0x1a8]
push ecx
push edx
call fcn.004c18c0
add esp, 8
lea eax, [esp + 0x1a8]
mov ecx, 0x598e88
push eax
call fcn.0047dd40
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0047e1c0
fstp qword [0x598f70]
lea ecx, [esp + 0xa8]
call fcn.00491d90
fstp qword [esp + 0x3c]
lea ecx, [esp + 0x160]
call fcn.00491d90
fadd qword [esp + 0x3c]
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x3c], esp
push esi
fstp qword [0x598f78]
call fcn.0047dc60
lea ecx, [esp + 0xc8]
lea edx, [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x240]
call fcn.004d23d0
push edi
push edi
push 0x4c38f0
push edi
push edi
push 0x3ff00000
lea eax, [esp + 0x2c0]
push edi
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0xc8]
push ecx
push edx
lea ecx, [esp + 0x240]
call fcn.004d5050
test al, al
je 0x4c7068
lea eax, [esp + 0x68]
lea ecx, [esp + 0xa8]
push eax
push edi
call fcn.00498340
lea ecx, [esp + 0xa8]
mov dword [esp + 0xc], edi
push ecx
lea ecx, [esp + 0x2ac]
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.004d58b0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
cmp eax, edi
jle 0x4c6f8c
mov eax, dword [esp + 0x24]
fld qword [esp + 0xc]
fld qword [esp + 0x34]
lea edi, [eax + 0x20]
lea esi, [eax + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
fld qword [edi]
fsub st(1)
sub esp, 8
lea ecx, [esp + 0xb0]
sub esp, 8
fstp qword [esp + 8]
fstp st(0)
fld qword [esi]
fsub st(1)
fstp qword [esp]
fstp st(0)
call fcn.00491ea0
lea edx, [esp + 0x1a8]
lea ecx, [esp + 0x68]
push edx
call fcn.0047dd40
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x68]
push eax
call fcn.0047dd80
lea ecx, [esp + 0x68]
call fcn.0047e030
fcomp qword [ebp + 0x1c]
fnstsw ax
test ah, 0x41
je 0x4c6f5f
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x160]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004c7d80
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
mov dword [esp + 0x34], 0
jle 0x4c6f5f
mov edi, dword [ebp + 0x14]
jmp 0x4c6d18
mov ebx, dword [ebp + 0xc]
mov eax, dword [edi]
lea ecx, [eax + 8]
call fcn.00491d90
fstp qword [esp + 0xc]
lea ecx, [esp + 0xa8]
call fcn.00491d90
fadd qword [esp + 0xc]
lea ecx, [esp + 0x160]
fstp qword [esp + 0xc]
call fcn.00491d90
fadd qword [esp + 0xc]
mov edx, dword [ebp + 0x10]
fstp qword [0x598f78]
mov ecx, dword [edi]
push ecx
push edx
push ebx
call fcn.004c6750
fstp qword [0x598f70]
mov eax, dword [edi]
add esp, 0xc
mov ecx, dword [eax + 0x78]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x68]
mov edx, dword [eax + 0x7c]
mov dword [esp + 0x50], edx
call fcn.0047e030
fld qword [esp + 0x4c]
fcompp
fnstsw ax
test ah, 1
je 0x4c6d97
lea ecx, [esp + 0x68]
call fcn.0047e030
jmp 0x4c6d9c
mov eax, dword [edi]
fld qword [eax + 0x78]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x70]
fstp qword [esp + 0xc]
mov eax, dword [ecx + 0x74]
lea ecx, [esp + 0x68]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call fcn.0047e010
fld qword [esp + 0x44]
fcompp
fnstsw ax
test ah, 1
je 0x4c6dd1
lea ecx, [esp + 0x68]
call fcn.0047e010
jmp 0x4c6dd6
mov ecx, dword [edi]
fld qword [ecx + 0x70]
fmul qword [esp + 0xc]
fcomp qword [0x598f70]
fnstsw ax
test ah, 1
je 0x4c6f3d
mov eax, dword [edi]
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x58]
push edx
mov edx, dword [ebp + 0x1c]
push eax
push ecx
lea eax, [esp + 0x2b4]
push edx
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x78]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
call fcn.004c7110
fcomp qword [0x598f70]
add esp, 0x20
fnstsw ax
test ah, 1
je 0x4c6f3d
push 0xc0
call fcn.0050b264
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x3a0], 6
je 0x4c6e53
mov ecx, eax
call fcn.004c1630
mov esi, eax
jmp 0x4c6e55
xor esi, esi
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ecx
mov edx, dword [edi]
mov dword [esi + 0x24], edx
mov ecx, dword [esp + 0x58]
lea eax, [esi + 0x90]
mov byte [esp + 0x3a0], 5
mov dword [eax], ecx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x140]
lea eax, [esi + 0x80]
mov dword [esi + 0x80], ecx
mov edx, dword [esp + 0x144]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x148]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x14c]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x1f8]
lea eax, [esi + 0x70]
mov dword [esi + 0x70], ecx
mov edx, dword [esp + 0x1fc]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x200]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x204]
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.004c6390
cmp eax, 1
jne 0x4c6f31
mov ecx, dword [ebp + 0x24]
push 0xffffffffffffffff
mov ebx, dword [ecx + 8]
lea eax, [ebx + 1]
push eax
call fcn.004de680
mov ecx, dword [ebp + 0x24]
mov eax, 6
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov dword [edx + ebx*4], esi
mov edx, dword [ecx + 0xf0]
cmp edx, eax
jl 0x4c6f3d
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0xf0], eax
jge 0x4c7033
jmp 0x4c6f3d
test esi, esi
je 0x4c6f3d
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x18]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x4c6d15
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [ebp + 0xc]
fld qword [esi]
fld qword [edi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
add esi, 0x40
add edi, 0x40
inc eax
mov dword [esp + 0x18], esi
cmp eax, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], eax
jl 0x4c6c82
fstp st(0)
fstp st(0)
xor edi, edi
lea ecx, [esp + 0x2a8]
mov byte [esp + 0x3a0], 4
call fcn.004d5690
mov dword [esp + 0x20], 0x522d70
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3a0], 8
cmp eax, edi
je 0x4c6fc1
push eax
call fcn.0050b204
add esp, 4
lea ecx, [esp + 0x218]
mov dword [esp + 0x20], 0x520384
mov byte [esp + 0x3a0], 2
call fcn.004d2340
lea ecx, [esp + 0x68]
mov byte [esp + 0x3a0], 1
call fcn.004b7420
lea ecx, [esp + 0xa8]
mov byte [esp + 0x3a0], 0
call fcn.00491c60
lea ecx, [esp + 0x160]
mov dword [esp + 0x3a0], 0xffffffff
call fcn.00491c60
mov eax, 1
mov ecx, dword [esp + 0x398]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x2a8]
mov byte [esp + 0x3a0], 4
call fcn.004d5690
mov dword [esp + 0x20], 0x522d70
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3a0], 7
test eax, eax
je 0x4c6fc1
jmp 0x4c6fb8
lea ecx, [esp + 0x2a8]
mov byte [esp + 0x3a0], 4
call fcn.004d5690
mov dword [esp + 0x20], 0x522d70
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3a0], 9
cmp eax, edi
je 0x4c709d
push eax
call fcn.0050b204
add esp, 4
lea ecx, [esp + 0x218]
mov dword [esp + 0x20], 0x520384
mov byte [esp + 0x3a0], 2
call fcn.004d2340
lea ecx, [esp + 0x68]
mov byte [esp + 0x3a0], 1
call fcn.004b7420
lea ecx, [esp + 0xa8]
mov byte [esp + 0x3a0], 0
call fcn.00491c60
lea ecx, [esp + 0x160]
mov dword [esp + 0x3a0], 0xffffffff
call fcn.00491c60
mov ecx, dword [esp + 0x398]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret