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

Disassembly:
sub esp, 0x50
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x58]
push esi
js 0x5e8197
mov eax, ebx
and eax, 0x78000000
cmp eax, 0x20000000
jne 0x5e8197
mov eax, ebx
and eax, 0xffff
cmp eax, 0x28
jge 0x5e8197
mov eax, dword [eax*4 + 0xb04cd0]
test eax, eax
je 0x5e8197
mov ecx, dword [eax]
mov edx, ebx
shl ecx, 0x10
and edx, 0x7ff0000
cmp ecx, edx
mov dword [esp + 8], eax
je 0x5e819f
mov dword [esp + 8], 0
mov esi, dword [esp + 0x6c]
fld1
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x10]
push eax
push esi
push 0xffffffffffffffff
push 0
push ebx
push 0
push 0
push 0
push 0
push ecx
sub esp, 0x10
fst qword [esp + 8]
fstp qword [esp]
push 0
push 0
push 0
push 0
call fcn.0057bc84
mov eax, dword [0xb160b4]
add esp, 0x48
test eax, eax
jne 0x5e81ed
mov edx, dword [esp + 8]
test byte [edx + 0x89f6c], 2
je 0x5e820d
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 0x89f6c]
and ecx, 2
jne 0x5e8251
cmp eax, 1
jne 0x5e8251
cmp dword [0xb160b8], 0xff
jne 0x5e8251
mov edx, dword [esp + 0x68]
fld1
mov eax, dword [0xa95938]
mov ecx, dword [esp + 0x64]
push 0
push esi
push 0xffffffffffffffff
push edx
mov edx, dword [esp + 0x70]
push ebx
push 1
push 0xb15f84
push eax
push ecx
push edx
sub esp, 0x10
fst qword [esp + 8]
fstp qword [esp]
push 0
push edi
push ebp
push 1
call fcn.0057bc84
add esp, 0x48
pop esi
xor eax, eax
pop ebp
add esp, 0x50
ret
test ecx, ecx
mov esi, 0xa95920
jne 0x5e825f
mov esi, 0xa95908
mov ecx, dword [0xb15f88]
mov edx, dword [0xb15f8c]
mov eax, dword [0xb15f84]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0xb160d4]
mov dword [esp + 0x40], edx
mov edx, dword [0x90d9ac]
mov dword [esp + 0x38], eax
mov eax, dword [0xb15f90]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x90d9b0]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], eax
call fcn.0057d7aa
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [0xb15f84], eax
mov eax, dword [esp + 0x2c]
mov dword [0xb15f88], ecx
mov ecx, dword [esp + 0x10]
add esp, 8
mov dword [0xb15f8c], edx
mov dword [0xb15f90], eax
test byte [ecx + 0x89f6c], 2
je 0x5e8421
mov edx, dword [esi + 0x14]
mov dword [edx + 0x18], 0
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x18]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.0057f00f
fld1
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
add esp, 0xc
push 0
push eax
mov eax, dword [esp + 0x6c]
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x70]
push ebx
push 1
lea edx, [esp + 0x30]
push edx
push esi
push eax
push ecx
sub esp, 0x10
fst qword [esp + 8]
fstp qword [esp]
push 0
push 0
push 0
push 1
call fcn.0057bc84
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
add edx, ebp
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], edx
push ecx
lea edx, [esp + 0x74]
add eax, edi
push edx
mov dword [0xb160d4], 0xffffff
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], eax
call fcn.0057d7aa
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x78]
add esp, 0x50
mov dword [0xb15f88], ecx
mov ecx, dword [0xa9593c]
push ecx
push 1
push edi
push ebp
mov dword [0xb15f8c], edx
mov edx, dword [0xa95938]
mov dword [0xb15f84], eax
mov eax, dword [esp + 0x44]
push esi
push edx
mov dword [0xb15f90], eax
call fcn.0057d9bc
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
add esp, 0x18
mov dword [0xb15f84], eax
mov eax, dword [esp + 0x44]
mov dword [0xb15f88], ecx
mov ecx, dword [esp + 0xc]
pop esi
mov dword [0xb15f90], eax
mov dword [0xb15f8c], edx
mov dword [0xb160d4], ecx
xor eax, eax
pop ebp
add esp, 0x50
ret
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x18]
cmp dword [esp + 0x64], ecx
je 0x5e8437
cmp dword [esp + 0x68], ecx
jne 0x5e8318
add dword [eax + 0x18], 1
jmp 0x5e8421