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

Disassembly:
push 0xffffffffffffffff
push 0x10101a85
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov eax, dword [0x10132750]
push ebx
push ebp
push esi
push edi
push 0x10132740
push eax
mov ecx, 0x10132748
call fcn.10064cc0
push 3
push 1
xor ebp, ebp
push ebp
lea ecx, [esp + 0x190]
push ecx
mov ecx, 0x101326c8
call fcn.1005da00
mov edx, dword [eax + 8]
mov esi, dword [eax]
mov al, byte [esp + 0x12]
add edx, esi
push ebp
lea ecx, [esp + 0xa8]
mov dword [0x10132740], edx
mov byte [esp + 0xa8], al
call fcn.10002047
mov cl, byte [esp + 0x12]
mov byte [esp + 0xd8], cl
push ebp
lea ecx, [esp + 0xdc]
mov dword [esp + 0x248], ebp
call fcn.10002047
lea ecx, [esp + 0x18]
mov byte [esp + 0x244], 1
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
call fcn.10079690
mov eax, 0xffff
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov edx, ebp
mov eax, ebp
mov ecx, ebp
mov byte [esp + 0x244], 2
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov ebx, 4
mov edx, dword [0x10132740]
push 3
push ebp
push edx
lea eax, [esp + 0x230]
push eax
mov ecx, 0x101326c8
call fcn.1005da00
mov edx, dword [0x10132750]
mov ecx, dword [0x10132740]
cmp ecx, dword [edx - 4]
je 0x1005d676
mov edx, dword [0x101326c8]
push 2
lea eax, [esp + 0xcc]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
mov edx, dword [0x101326c8]
push ebx
lea eax, [esp + 0xc4]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
push 3
push 1
push ebp
lea eax, [esp + 0x218]
push eax
mov ecx, 0x101326c8
call fcn.1005da00
mov edx, dword [eax]
mov ecx, dword [eax + 8]
mov esi, dword [esp + 0xc8]
add ecx, edx
and esi, 0xffff
mov edx, dword [esp + 0xc0]
lea eax, [ecx + edx - 6]
mov dword [0x10132740], eax
je 0x1005d676
lea eax, [esi - 0xb010]
cmp eax, 0x20
ja case.0x1005cfe4.45078
xor ecx, ecx
mov cl, byte [eax + 0x1005d8b8]
jmp dword [ecx*4 + 0x1005d89c]
mov eax, dword [0x101326c8]
push 2
lea edx, [esp + 0x7c]
push edx
mov ecx, 0x101326c8
call dword [eax + 0x18]
jmp case.0x1005cfe4.45078
lea ecx, [esp + 0x110]
push ecx
call fcn.1005bcb0
mov edx, dword [0x10105430]
push edx
push ebp
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x250], 3
call fcn.10001ecb
push 1
lea ecx, [esp + 0x114]
mov byte [esp + 0x248], 2
call fcn.10002047
mov edx, dword [0x101326c8]
push 2
lea eax, [esp + 0xbe]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
mov edx, dword [0x101326c8]
push 2
lea eax, [esp + 0xd6]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
mov edx, dword [0x101326c8]
push 2
lea eax, [esp + 0x80]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
jmp case.0x1005cfe4.45078
lea eax, [esp + 0x120]
push eax
call fcn.1005bcb0
mov ecx, dword [0x10105430]
push ecx
push ebp
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x250], bl
call fcn.10001ecb
push 1
lea ecx, [esp + 0x124]
mov byte [esp + 0x248], 2
call fcn.10002047
jmp case.0x1005cfe4.45078
mov eax, dword [0x101326c8]
push 0xc
lea edx, [esp + 0x48]
push edx
mov ecx, 0x101326c8
call dword [eax + 0x18]
mov al, byte [0x10132770]
test al, al
je case.0x1005cfe4.45078
push 0x1013279c
lea ecx, [esp + 0xf8]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x154]
push eax
mov ecx, 0x10132778
call fcn.10010920
mov ecx, eax
call fcn.10010d60
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0xf8]
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
jmp case.0x1005cfe4.45078
mov edx, dword [0x101326c8]
push 0xc
lea ecx, [esp + 0x90]
push ecx
mov ecx, 0x101326c8
call dword [edx + 0x18]
mov edx, dword [0x101326c8]
push 0xc
lea eax, [esp + 0x9c]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
fld dword [esp + 0x94]
fadd dword [esp + 0xa0]
push ecx
fmul dword [0x101054a0]
fstp dword [esp]
push ecx
fld dword [esp + 0x98]
fadd dword [esp + 0xa4]
fmul dword [0x101054a0]
fstp dword [esp]
push ecx
fld dword [esp + 0xa4]
lea ecx, [esp + 0xf4]
fadd dword [esp + 0x98]
fmul dword [0x101054a0]
fstp dword [esp]
call fcn.1000d3e0
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x60], eax
mov al, byte [0x10132770]
test al, al
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
je case.0x1005cfe4.45078
push 0x1013279c
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x184]
push edx
mov ecx, 0x10132778
call fcn.10010920
mov ecx, eax
call fcn.10010d60
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
jmp case.0x1005cfe4.45078
mov al, byte [0x101326a8]
test al, al
jne case.0x1005cfe4.45078
mov edx, dword [0x101326c8]
push 2
lea eax, [esp + 0xbc]
push eax
mov ecx, 0x101326c8
mov dword [esp + 0x40], ebp
call dword [edx + 0x18]
push 3
push 1
push 8
lea eax, [esp + 0x1e8]
push eax
mov ecx, 0x101326c8
call fcn.1005da00
mov edx, dword [0x101326c8]
push 2
lea ecx, [esp + 0x3c]
push ecx
mov ecx, 0x101326c8
call dword [edx + 0x18]
push 3
push 1
push 2
lea eax, [esp + 0x1b8]
push eax
mov ecx, 0x101326c8
call fcn.1005da00
lea ecx, [esp + 0x1c]
call fcn.1000c460
lea ecx, [esp + 0x80]
call fcn.1000c460
lea ecx, [esp + 0x28]
call fcn.1000c460
lea ecx, [esp + 0x54]
mov dword [esp + 0x50], 0x3f800000
call fcn.1000c460
mov eax, dword [esp + 0x38]
xor edi, edi
cmp eax, ebp
jle case.0x1005cfe4.45078
mov edx, dword [0x101326c8]
push ebx
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x101326c8
call dword [edx + 0x18]
mov edx, dword [0x101326c8]
push 2
lea eax, [esp + 0x16]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
test byte [esp + 0x12], 1
mov dword [esp + 0xd4], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xb4], 0
je 0x1005d367
mov edx, dword [0x101326c8]
push ebx
lea eax, [esp + 0xd8]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
test byte [esp + 0x12], 2
je 0x1005d385
mov edx, dword [0x101326c8]
push ebx
lea eax, [esp + 0xc0]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
test byte [esp + 0x12], bl
je 0x1005d3a2
mov edx, dword [0x101326c8]
push ebx
lea eax, [esp + 0xd0]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
test byte [esp + 0x12], 8
je 0x1005d3c0
mov edx, dword [0x101326c8]
push ebx
lea eax, [esp + 0xc8]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
test byte [esp + 0x12], 0x10
je 0x1005d3de
mov edx, dword [0x101326c8]
push ebx
lea eax, [esp + 0xb8]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
mov eax, esi
sub eax, 0xb020
je 0x1005d5fb
dec eax
je 0x1005d467
dec eax
jne 0x1005d664
mov edx, dword [0x101326c8]
push 0xc
lea eax, [esp + 0x2c]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
mov al, byte [0x10132770]
test al, al
je 0x1005d43e
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x164]
push ecx
mov ecx, 0x10132778
call fcn.10010920
mov edx, dword [eax]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov cx, word [0x1013276e]
cmp eax, ecx
jg 0x1005d664
lea edx, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.1007a090
jmp 0x1005d664
mov edx, dword [0x101326c8]
push ebx
lea eax, [esp + 0x44]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
mov edx, dword [0x101326c8]
push 0xc
lea eax, [esp + 0x84]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
lea ecx, [esp + 0x80]
call fcn.1001a130
fcomp dword [0x10105658]
fnstsw ax
test ah, 0x41
jne 0x1005d5d9
mov al, byte [0x1013276c]
test al, al
je 0x1005d4c3
fld dword [esp + 0x40]
fchs
fstp dword [esp + 0x40]
mov al, byte [0x10132770]
test al, al
je 0x1005d503
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x140]
push ecx
mov ecx, 0x10132778
call fcn.10010920
mov edx, dword [eax]
mov dword [esp + 0x80], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x88], edx
fld dword [esp + 0x40]
push ecx
fmul dword [0x101054a0]
lea eax, [esp + 0x170]
lea ecx, [esp + 0x134]
fst dword [esp + 0x40]
fstp dword [esp + 0x18]
fld dword [esp + 0x40]
fsin
fstp dword [esp]
push eax
push ecx
lea ecx, [esp + 0x8c]
call fcn.1005d940
mov ecx, eax
call fcn.100192d0
fld dword [esp + 0x14]
fcos
fstp dword [esp + 0x100]
mov edx, dword [eax]
mov dword [esp + 0x104], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x108], ecx
mov edx, dword [eax + 8]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1a0]
push ecx
lea ecx, [esp + 0x108]
mov dword [esp + 0x114], edx
call fcn.10019360
mov edx, dword [eax]
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x50]
mov dword [esp + 0x5c], eax
call fcn.1005d990
push ecx
lea ecx, [esp + 0x188]
fstp dword [esp]
push ecx
lea ecx, [esp + 0x58]
call fcn.10058a70
mov edx, dword [eax]
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov cx, word [0x1013276e]
cmp eax, ecx
jg 0x1005d664
lea edx, [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.1007a390
jmp 0x1005d664
mov edx, dword [0x101326c8]
push 0xc
lea eax, [esp + 0x20]
push eax
mov ecx, 0x101326c8
call dword [edx + 0x18]
mov al, byte [0x10132770]
test al, al
je 0x1005d644
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x158]
push ecx
mov ecx, 0x10132778
call fcn.10010d90
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov cx, word [0x1013276e]
cmp eax, ecx
jg 0x1005d664
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.1007a210
mov eax, dword [esp + 0x38]
inc edi
cmp edi, eax
jl 0x1005d2e9
jmp case.0x1005cfe4.45078
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 eax, dword [esp + 0x7c]
cmp ax, 0xffff
mov ebx, dword [esp + 0x24c]
je 0x1005d6d3
and eax, 0xffff
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, 0x101326b0
call fcn.1005e4d0
mov eax, dword [esp + 0x3c]
cmp eax, dword [0x101326b4]
je 0x1005d841
mov ebx, dword [eax + 0x10]
push str.___DUMMY
lea ecx, [esp + 0xa8]
call fcn.100600a0
test eax, eax
jne 0x1005d732
push 0x2b0
call fcn.1009e195
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x244], 5
je 0x1005d70e
mov ecx, eax
call fcn.1006c9e0
mov ebp, eax
lea ecx, [esp + 0xd8]
push ecx
mov ecx, ebp
mov byte [esp + 0x248], 2
call fcn.1006b100
push ebx
mov ecx, ebp
call fcn.1006b070
jmp 0x1005d80d
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, 0x10132758
call fcn.10059fe0
mov eax, dword [esp + 0x14]
cmp eax, dword [0x1013275c]
je 0x1005d841
mov ebp, dword [eax + 0x1c]
lea ecx, [esp + 0xa4]
push ecx
mov ecx, 0x10132758
call fcn.1005e2c0
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call fcn.1005d8e0
test al, al
je 0x1005d7df
fld dword [esp + 0x4c]
push ecx
fchs
fstp dword [esp]
push ecx
fld dword [esp + 0x50]
fchs
fstp dword [esp]
push ecx
fld dword [esp + 0x50]
lea ecx, [esp + 0x78]
fchs
fstp dword [esp]
call fcn.1000d3e0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x1b0]
call fcn.1005d9c0
lea ecx, [esp + 0x1ac]
push ecx
mov ecx, ebp
call fcn.1006def0
mov ecx, ebp
call fcn.1006ae30
mov esi, eax
mov ecx, 0xc
lea edi, [esp + 0x1dc]
rep movsd dword es:[edi], dword [esi]
push ebx
mov ecx, ebp
call fcn.1006b070
lea edx, [esp + 0x1dc]
push edx
mov ecx, ebp
call fcn.1006bfb0
lea eax, [esp + 0x18]
push eax
lea ecx, [ebp + 0x238]
call fcn.10079e30
mov eax, dword [esp + 0x78]
cmp ax, 0xffff
je 0x1005d841
lea ecx, [esp + 0x14]
and eax, 0xffff
push ecx
mov ecx, 0x101326b0
mov dword [esp + 0x18], eax
call fcn.1005dd20
mov dword [eax], ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x244], 1
call fcn.10079c40
push 1
lea ecx, [esp + 0xdc]
mov byte [esp + 0x248], 0
call fcn.10002047
push 1
lea ecx, [esp + 0xa8]
mov dword [esp + 0x248], 0xffffffff
call fcn.10002047
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x238
ret 8