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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6c7d80
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
test eax, 0x20000
je 0x5c7e75
mov ecx, dword [esi + 0xc4]
mov ebx, eax
call fcn.004f7270
mov ecx, ebx
shr ecx, 6
and cl, 1
cmp cl, al
jne 0x5c7e75
test bl, bl
mov ebx, dword [0x72d944]
jns 0x5c795f
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
mov edi, 2
lea ecx, [eax + 0x674]
mov edx, 5
fld dword [ecx + 0xc]
fld dword [esp + 0x28]
fmul dword [ecx + 8]
fld dword [esp + 0x24]
fmul dword [ecx + 4]
dec edx
faddp st(1)
fld dword [esp + 0x20]
fmul dword [ecx]
faddp st(1)
faddp st(1)
fcom dword [0x6d0348]
fnstsw ax
and eax, 0x4100
je 0x5c7e73
fcomp dword [0x6d197c]
fnstsw ax
and eax, 0x4100
jne 0x5c7950
mov edi, 1
sub ecx, 0x10
test edx, edx
jne 0x5c790b
test edi, edi
je 0x5c7e75
mov al, byte [esi + 0xc0]
test al, al
je 0x5c79dc
mov eax, dword [ebx + 0x88]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5c79dc
mov ebx, dword [eax + 0x2c]
mov edi, dword [ebx]
test edi, edi
je 0x5c79dc
mov edx, dword [edi]
push 0x1002
mov ecx, edi
call dword [edx + 4]
test al, al
je 0x5c79d2
mov ecx, dword [edi + 0xc]
and ecx, 0x10000
je 0x5c79b0
mov al, byte [edi + 0xc0]
test al, al
je 0x5c79b0
cmp al, byte [esi + 0xc0]
ja 0x5c7e75
test ecx, ecx
je 0x5c79d2
mov al, byte [edi + 0xc0]
test al, al
je 0x5c79d2
cmp al, byte [esi + 0xc0]
jae 0x5c79d2
mov eax, dword [esp + 0x44]
mov ecx, edi
push eax
call fcn.005c8030
mov edi, dword [ebx + 4]
add ebx, 4
test edi, edi
jne 0x5c797f
mov ebp, dword [esp + 0x44]
mov al, byte [esi + 0xc]
test al, 0x10
mov ecx, dword [ebp + 4]
mov dword [esi + 0xd8], ecx
je 0x5c7a29
mov ecx, dword [esi + 0xc4]
call fcn.004f77e0
test eax, eax
je 0x5c7a13
mov edx, dword [eax]
push 0x1002
mov ecx, eax
call dword [edx + 4]
test al, al
jne 0x5c7e75
mov ecx, dword [esi + 0xc4]
push 1
push esi
call fcn.004f7910
test al, al
je 0x5c7e75
mov ecx, dword [esi + 0xc]
or ebx, 0xffffffff
and ecx, 0xfdffffff
mov al, cl
mov dword [esi + 0xc], ecx
test al, 0x10
je 0x5c7e07
mov ecx, dword [esi + 0xc4]
push 1
call fcn.004f7b80
fld dword [esi + 0x88]
fcomp dword [0x6d035c]
mov dword [esi + 0xc8], ebx
fnstsw ax
test ah, 0x44
jnp 0x5c7af2
mov ecx, dword [esi + 0xc4]
call fcn.004f72c0
fld dword [eax]
fsub dword [esi + 0x20]
fld dword [eax + 8]
fsub dword [esi + 0x28]
fld dword [esi + 0x88]
fld st(1)
fmul st(2)
fld st(3)
fmul st(4)
faddp st(1)
fld st(1)
fmul st(2)
fcompp
fstp st(0)
fnstsw ax
fstp st(0)
test ah, 5
fstp st(0)
jnp 0x5c7af2
mov edi, dword [esi + 0xc]
push 0
or edi, 0x40000
mov dword [esi + 0xc], edi
mov ecx, dword [esi + 0xc4]
call fcn.004f8a40
mov ecx, dword [esi + 0xc4]
push 0
call fcn.004f8a80
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc8], 0
test ah, ah
jns 0x5c7e1c
mov ecx, dword [esi + 0xc4]
push 1
call fcn.004f7c70
jmp 0x5c7e1c
mov edi, dword [esi + 0xc]
and edi, 0xfffbffff
mov edx, edi
mov dword [esi + 0xc], edi
and edx, 0xff7fffff
mov eax, edx
mov dword [esi + 0xc], edx
test ah, 8
je 0x5c7d52
test ah, 0x20
je 0x5c7d52
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
cmp dword [ecx], 0
je 0x5c7d52
mov ecx, dword [esi + 0xc4]
push 1
call fcn.004f7c10
mov al, byte [esi + 0x78]
cmp al, 2
jne 0x5c7bdf
mov edx, dword [0x72d944]
mov edi, dword [edx + 0x68]
mov word [esp + 0x1c], bx
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], bx
mov ecx, dword [esi + 0xc4]
mov byte [esp + 0x3c], 1
call fcn.004f72c0
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 8]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x28]
push ecx
mov ecx, edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call fcn.00489360
lea edx, [esp + 0x20]
mov ecx, edi
push edx
call fcn.00489360
mov ecx, dword [esi + 0xc4]
call fcn.004f7310
push eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.00487e30
mov byte [esi + 0xe8], al
mov dword [esp + 0x3c], ebx
jmp 0x5c7d8f
cmp al, 1
jne 0x5c7c97
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0xc4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
call fcn.004f72c0
fld dword [esp + 0x10]
fsub dword [eax]
push ecx
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fsub dword [eax + 4]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fsub dword [eax + 8]
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fstp dword [esp]
call fcn.00404020
fcom dword [0x6d035c]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x5c7c80
fdivr dword [0x6d0348]
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
mov ecx, dword [esi + 0xc4]
lea edx, [esp + 0x10]
push edx
fstp st(0)
call fcn.004f8aa0
jmp 0x5c7d8f
cmp al, 3
jne 0x5c7d8f
mov ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x7c]
mov edx, dword [esi + 0x84]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0xc4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
call fcn.004f72c0
fld dword [esp + 0x20]
fsub dword [eax]
push ecx
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fsub dword [eax + 4]
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fsub dword [eax + 8]
fstp dword [esp + 0x2c]
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
faddp st(1)
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
faddp st(1)
fstp dword [esp]
call fcn.00404020
fcom dword [0x6d035c]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x5c7d3e
fdivr dword [0x6d0348]
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul st(1)
fstp dword [esp + 0x28]
mov ecx, dword [esi + 0xc4]
lea eax, [esp + 0x20]
push eax
fstp st(0)
call fcn.004f8aa0
jmp 0x5c7d8f
mov al, byte [esi + 0x54]
cmp al, 3
je 0x5c7d7c
cmp al, 2
sete cl
test al, al
sete dl
push ecx
push edx
lea eax, [esi + 0x2c]
push 0
lea ecx, [esi + 0x20]
push eax
push ecx
mov ecx, dword [esi + 0xc4]
call fcn.004f81d0
jmp 0x5c7d8f
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0xc4]
lea eax, [esi + 0x20]
push edx
push eax
call fcn.004f8710
mov eax, dword [esi + 0xc]
test ah, 8
je 0x5c7e1c
mov ecx, dword [esi + 0x68]
mov edi, dword [ecx + 4]
xor ecx, ecx
mov eax, dword [edi + 4]
cmp dword [eax], ecx
je 0x5c7db2
mov dword [esi + 0xd0], ecx
jmp 0x5c7dcf
cmp dword [eax + 4], ecx
je 0x5c7dc9
mov dword [esi + 0xd4], ecx
mov dword [esi + 0xd0], 1
jmp 0x5c7dcf
mov dword [esi + 0xd0], ebx
cmp dword [esi + 0xd0], ebx
je 0x5c7e1c
mov ecx, dword [esi + 0xc4]
push 1
call fcn.004f7ae0
mov edx, dword [esi + 0xd0]
mov eax, dword [edi + 4]
push 0
push 0x3e4ccccd
mov ecx, dword [eax + edx*4]
push 1
push ecx
mov ecx, dword [esi + 0xc4]
call fcn.004f7f60
jmp 0x5c7e1c
mov eax, dword [esi + 0xc]
or eax, 0x40000
mov dword [esi + 0xc], eax
mov dword [esi + 0xc8], 0
mov eax, dword [esi + 0xb4]
mov dword [esi + 0xcc], ebx
test eax, eax
je 0x5c7e30
or byte [eax + 0x2d], 2
mov eax, dword [esi + 0xc]
push esi
or eax, 0x10000
lea ecx, [esi + 0x8c]
mov dword [esi + 0xc], eax
call fcn.004b36f0
mov edi, dword [esi + 0xc]
push ebp
and edi, 0xffbfffff
mov edx, edi
mov dword [esi + 0xc], edi
and edx, 0xfeffffff
mov ecx, edx
mov dword [esi + 0xc], edx
and ecx, 0xefffffff
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.005c7e90
jmp 0x5c7e75
fstp st(0)
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4