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

Disassembly:
push 0xffffffffffffffff
push 0x10101a28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
lea ecx, [esp + 0xc]
call fcn.100683c0
mov al, byte [esp + 0xb]
push 0
lea ecx, [esp + 0x54]
mov dword [esp + 0x118], 0
mov byte [esp + 0x54], al
call fcn.10002047
mov cl, byte [esp + 0xb]
mov byte [esp + 0x40], cl
push 0
lea ecx, [esp + 0x44]
mov byte [esp + 0x118], 1
call fcn.10002047
mov edx, dword [0x10132750]
push 0x10132740
push edx
mov ecx, 0x10132748
mov byte [esp + 0x11c], 2
call fcn.10064cc0
push 3
push 1
push 0
lea eax, [esp + 0x6c]
push eax
mov ecx, 0x101326c8
call fcn.1005da00
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov dword [0x10132740], ecx
mov ecx, dword [0x10132740]
push 3
push 0
push ecx
lea edx, [esp + 0xa0]
push edx
mov ecx, 0x101326c8
call fcn.1005da00
mov ecx, dword [0x10132750]
mov eax, dword [0x10132740]
cmp eax, dword [ecx - 4]
je 0x1005ccc1
mov eax, dword [0x101326c8]
push 2
lea edx, [esp + 0x40]
push edx
mov ecx, 0x101326c8
call dword [eax + 0x18]
mov edx, dword [0x101326c8]
push 4
lea ecx, [esp + 0x34]
push ecx
mov ecx, 0x101326c8
call dword [edx + 0x18]
push 3
push 1
push 0
lea eax, [esp + 0xe8]
push eax
mov ecx, 0x101326c8
call fcn.1005da00
mov edx, dword [eax]
mov ecx, dword [eax + 8]
add ecx, edx
mov edx, dword [esp + 0x30]
lea eax, [ecx + edx - 6]
mov dword [0x10132740], eax
mov eax, dword [esp + 0x3c]
and eax, 0xffff
je 0x1005ccc1
sub eax, 0xa000
je 0x1005cc84
sub eax, 0x20
je 0x1005cb67
sub eax, 0x1e0
jne 0x1005c97c
mov ecx, dword [0x10132750]
push 0x10132740
push ecx
mov ecx, 0x10132748
call fcn.10064cc0
push 3
push 1
push 0
lea edx, [esp + 0xb8]
push edx
mov ecx, 0x101326c8
call fcn.1005da00
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov dword [0x10132740], ecx
push 3
push 0
push ecx
lea eax, [esp + 0xd0]
push eax
mov ecx, 0x101326c8
call fcn.1005da00
mov edx, dword [0x10132750]
mov ecx, dword [0x10132740]
cmp ecx, dword [edx - 4]
je 0x1005cb45
mov edx, dword [0x101326c8]
push 2
lea eax, [esp + 0x3c]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
mov edx, dword [0x101326c8]
push 4
lea eax, [esp + 0x38]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
push 3
push 1
push 0
lea eax, [esp + 0x100]
push eax
mov ecx, 0x101326c8
call fcn.1005da00
mov ecx, dword [eax + 8]
mov esi, dword [eax]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add ecx, esi
and eax, 0xffff
lea ecx, [ecx + edx - 6]
mov dword [0x10132740], ecx
je 0x1005cb45
cmp eax, 0xa300
jne 0x1005ca69
lea eax, [esp + 0x78]
push eax
call fcn.1005bcb0
mov ecx, dword [0x10105430]
push ecx
push 0
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x120], 4
call fcn.10001ecb
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x118], 2
call fcn.10002047
mov ecx, dword [0x10132740]
jmp 0x1005ca69
mov edx, dword [0x10132750]
mov ecx, dword [edx - 4]
lea eax, [edx - 4]
mov dword [0x10132740], ecx
push eax
mov ecx, 0x10132748
call fcn.1003ac90
jmp 0x1005c97c
lea ecx, [esp + 0x1c]
call fcn.1000c460
call fcn.1005c3c0
call fcn.1005bc10
test eax, eax
je 0x1005cc3d
sub eax, 0x10
je 0x1005cc1b
dec eax
jne 0x1005cc30
mov eax, dword [0x101326c8]
push 3
lea edx, [esp + 0x2c]
push edx
mov ecx, 0x101326c8
call dword [eax + 0x18]
mov ecx, dword [esp + 0x2a]
mov edx, dword [esp + 0x29]
mov eax, dword [esp + 0x28]
and ecx, 0xff
mov dword [esp + 4], ecx
fild dword [esp + 4]
push ecx
and edx, 0xff
fmul dword [0x101054bc]
mov dword [esp + 8], edx
and eax, 0xff
fstp dword [esp]
push ecx
fild dword [esp + 0xc]
mov dword [esp + 0xc], eax
fmul dword [0x101054bc]
fstp dword [esp]
push ecx
fild dword [esp + 0x10]
lea ecx, [esp + 0x94]
fmul dword [0x101054bc]
fstp dword [esp]
call fcn.1000d3e0
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
jmp 0x1005cc30
mov edx, dword [0x101326c8]
push 0xc
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x101326c8
call dword [edx + 0x18]
call fcn.1005bc10
test eax, eax
jne 0x1005cb82
mov eax, dword [0x10132750]
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
mov dword [0x10132740], ecx
push eax
mov ecx, 0x10132748
call fcn.1003ac90
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
call fcn.100689a0
jmp 0x1005c97c
lea eax, [esp + 0x60]
push eax
call fcn.1005bcb0
mov ecx, dword [0x10105430]
push ecx
push 0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x120], 3
call fcn.10001ecb
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x118], 2
call fcn.10002047
jmp 0x1005c97c
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1005cd26
push 0
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0xc]
call fcn.100652f0
push 0
push eax
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x120], 5
call fcn.10068a70
lea ecx, [esp + 4]
mov byte [esp + 0x114], 2
call fcn.100658c0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0x3f800000
mov dword [esp + 0x18], 0x3f800000
mov dword [esp + 0x1c], 0x3f800000
call fcn.100689a0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x1005cd97
lea ecx, [esp + 4]
call fcn.100683c0
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0x11c], 6
call fcn.1005e090
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, 0x10132720
mov byte [esp + 0x11c], 7
call fcn.1005deb0
mov esi, dword [eax]
lea ecx, [esp + 0x60]
mov byte [esp + 0x114], 6
call fcn.1005de40
lea ecx, [esp + 4]
mov byte [esp + 0x114], 2
call fcn.100687a0
lea eax, [esp + 0xc]
push eax
lea ecx, [esi + 0x1c]
call fcn.100687d0
mov ecx, dword [0x10132750]
mov edx, dword [ecx - 4]
lea eax, [ecx - 4]
push eax
mov ecx, 0x10132748
mov dword [0x10132740], edx
call fcn.1003ac90
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x118], 1
call fcn.10002047
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x118], 0
call fcn.10002047
lea ecx, [esp + 0xc]
mov dword [esp + 0x114], 0xffffffff
call fcn.100687a0
mov ecx, dword [esp + 0x10c]
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret