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

Disassembly:
sub esp, 0x70
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edx, [esp + 0x24]
mov ecx, dword [esi + 0xc]
lea edi, [esi + 0x24]
and cl, 0x7f
mov dword [esi + 0xc], ecx
mov eax, dword [0x72d944]
lea ecx, [esp + 0x14]
mov ebp, dword [eax + 0x74]
push ecx
push edx
push edi
mov ecx, ebp
mov dword [esp + 0x3c], ebp
call fcn.00492850
cmp al, 1
jne 0x5f6db8
mov eax, dword [esp + 0x14]
xor ecx, ecx
xor edx, edx
push 8
mov cl, byte [eax + 0x11]
mov dx, word [edi + 6]
imul ecx, edx
xor edx, edx
mov dx, word [eax + 0x1a]
lea eax, [ecx + edx + 1]
mov edx, dword [esp + 0x28]
xor ecx, ecx
push eax
mov cl, byte [esi + 0x30]
push ecx
lea ecx, [edx + 0x28]
call fcn.0059f290
mov eax, dword [esi + 0x1c]
xor ebx, ebx
mov eax, dword [eax + 4]
add eax, 0x40
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x84]
add eax, 0x10
mov ecx, dword [eax]
or ecx, 4
mov dword [eax], ecx
mov eax, dword [esi + 0x88]
cmp eax, ebx
je 0x5f6e4b
mov ecx, dword [esi + 0x2c]
fld dword [ecx + 0xb4]
fmul dword [0x6d162c]
fstp dword [esp + 0x24]
call fcn.00404010
and eax, 0xffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
fild qword [esp + 0x14]
fmul dword [0x6d179c]
fcomp dword [esp + 0x24]
fnstsw ax
and eax, 0x100
jne 0x5f6e39
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
jmp 0x5f6e55
mov eax, dword [esi + 0x88]
mov byte [esp + 0x12], bl
add eax, 0x10
and dword [eax], 0xfffffffb
jmp 0x5f6e8f
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebp
push edi
call fcn.00492850
cmp al, 1
jne 0x5f6e8a
mov eax, dword [esp + 0x24]
xor ecx, ecx
xor edx, edx
push 1
mov cl, byte [eax + 0x11]
mov dx, word [edi + 6]
imul ecx, edx
xor edx, edx
mov dx, word [eax + 0x1a]
mov eax, dword [esp + 0x18]
add ecx, edx
push ecx
lea ecx, [eax + 0x28]
call fcn.005ec7f0
mov byte [esp + 0x12], 1
mov ecx, dword [esi + 0x8c]
push ebx
push 1
call fcn.004e22a0
mov ecx, eax
call fcn.004565d0
mov ecx, dword [esi + 0x2c]
mov edx, dword [0x72d944]
mov ebp, dword [ecx + 0x70]
mov edi, dword [edx + 0x5c]
mov ecx, ebp
mov eax, dword [ebp]
call dword [eax + 0x50]
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x14], eax
call dword [edx + 0x54]
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x13]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, edi
call fcn.00411f90
mov cl, byte [esp + 0x13]
mov byte [esp + 0x14], 0
test cl, cl
jbe 0x5f6fc8
mov ecx, dword [esp + 0x14]
mov edx, ecx
and edx, 0xff
mov edx, dword [eax + edx*4]
mov dl, byte [edx + 8]
mov bl, dl
and bl, 1
cmp bl, 1
jne 0x5f6f13
test dl, 2
je 0x5f6f2a
mov cl, byte [esp + 0x14]
mov dl, byte [esp + 0x13]
inc cl
cmp cl, dl
mov byte [esp + 0x14], cl
jb 0x5f6ef2
jmp 0x5f6fc8
and ecx, 0xff
push ebp
lea edi, [eax + ecx*4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov eax, dword [edi]
push esi
add eax, 8
mov cl, byte [eax]
or cl, 2
mov byte [eax], cl
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + pe_nt_image_headers32]
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov edi, dword [edi]
test edi, edi
je 0x5f6fc8
lea ecx, [esp + 0x34]
push esi
push ecx
mov ecx, edi
call fcn.004a2bc0
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x40]
mov eax, dword [edx + 4]
add eax, 0x50
push eax
call fcn.00480b10
mov ecx, dword [0x72c69c]
mov ebp, dword [esp + 0x4c]
mov edx, dword [0x72c6a0]
mov eax, dword [0x72c6a4]
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x40]
push 0
and ebp, 0xfffdffff
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x58], ebp
call fcn.004a2280
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0x4c]
mov eax, dword [esi + 0x2c]
xor ebx, ebx
mov ecx, dword [eax + 0x78]
mov edi, dword [ecx + 4]
cmp edi, ebx
je 0x5f70b9
fld dword [esp + 0x34]
fsub dword [esi + 0x68]
push ecx
fstp dword [esp + 0x18]
fld dword [esp + 0x3c]
fsub dword [esi + 0x6c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x40]
fsub dword [esi + 0x70]
fstp dword [esp + 0x20]
fld dword [esp + 0x1c]
fadd dword [eax + 0x84]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fstp dword [esp]
call fcn.00404020
fcom dword [0x6d035c]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x5f7063
fdivr dword [0x6d0348]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x1c]
mov ebp, dword [esi + 0x2c]
fstp st(0)
call fcn.00404010
and eax, 0xffff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x1c]
fild qword [esp + 0x24]
mov ecx, dword [eax + 4]
mov edx, dword [edi]
add ecx, 0x50
fmul dword [0x6d21a8]
push ecx
push ebx
push esi
lea ecx, [esp + 0x20]
fsubr dword [0x6d0348]
fmul dword [ebp + 0x80]
fadd dword [ebp + 0x7c]
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
push eax
lea eax, [esp + 0x44]
push ecx
push eax
mov ecx, edi
call dword [edx + 0x64]
mov ecx, dword [esi + 0x90]
mov edx, dword [0x72d944]
push ecx
mov ecx, dword [edx + 0x58]
call fcn.00465880
mov ecx, dword [esi + 0x94]
push ebx
call fcn.004634f0
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0xb0]
mov dword [esp + 0x24], ecx
call fcn.00404010
and eax, 0xffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x34]
fild qword [esp + 0x14]
sub esp, 0xc
mov eax, esp
fmul dword [0x6d179c]
fsubr dword [esp + 0x30]
mov dword [esp + 0x30], esp
fsubr dword [esp + 0x44]
fstp dword [esp + 0x44]
mov dword [eax], edx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x2c]
call fcn.005f5840
mov ecx, dword [esp + 0x30]
xor eax, eax
mov ax, word [esi + 0x24]
mov edx, dword [ecx + 0x18]
shl eax, 6
add eax, edx
mov eax, dword [eax]
cmp eax, ebx
je 0x5f7174
mov cx, word [esi + 0x28]
xor edx, edx
mov dx, word [esi + 0x26]
push ecx
mov eax, dword [eax + edx*4]
mov ecx, eax
call fcn.00547790
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0x10]
mov dx, word [esi + 0x2a]
imul ecx, edx
add ecx, dword [eax + 8]
jmp 0x5f7176
xor ecx, ecx
movsx eax, word [ecx]
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
movsx edx, word [ecx + 2]
fmul dword [0x6d0350]
mov dword [esp + 0x30], edx
movsx eax, word [ecx + 4]
fstp dword [esp + 0x24]
fild dword [esp + 0x30]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
fmul dword [0x6d0350]
fstp dword [esp + 0x2c]
fild dword [esp + 0x34]
fmul dword [0x6d0350]
fstp dword [esp + 0x30]
call fcn.0046ac40
mov edx, dword [esi + 0x2c]
push ebx
push ecx
lea eax, [esp + 0x1c]
fld dword [edx + 0xac]
fstp dword [esp]
push eax
mov word [esp + 0x2c], 0xffff
call fcn.005949d0
mov al, byte [esp + 0x1e]
add esp, 0xc
cmp al, bl
je 0x5f71f8
mov ecx, dword [esi + 0x2c]
push esi
call fcn.0059da00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret