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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x3f4
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x3f0], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [esi + 8]
mov dword [esp + 0x9c], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x88], edx
mov edx, dword [esi + 0x44]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x58], edx
mov edx, dword [edi + 8]
mov dword [esp + 0xa4], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0xc]
push ebx
mov dword [esp + 0x68], edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x74], eax
call fcn.1005a7d0
xor ecx, ecx
and edx, 0x100
neg edx
sbb edx, edx
neg edx
mov dword [esp + 0x6c], eax
inc edx
lea eax, [edx + edx*2]
add eax, eax
push 0x18c
mov dword [esp + 0xa0], eax
push ecx
lea eax, [esp + 0xbc]
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x98], ecx
call fcn.100113d0
mov eax, dword [edi + 0x64]
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x154], eax
mov eax, dword [edi + 0x6c]
mov dword [esp + 0x194], edx
not eax
lea edx, [esp + 0x250]
and eax, 1
mov dword [esp + 0x190], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x214], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x21c], eax
mov eax, dword [edx + 4]
and ecx, 0x1000
shr ebx, 2
mov dword [esp + 0x184], eax
mov eax, dword [0x10104ba8]
and ebx, 1
mov dword [esp + 0x1a0], ecx
mov ecx, dword [edi + 0x78]
add esp, 0x10
mov dword [esp + 0x188], ebx
mov dword [esp + 0x21c], ecx
test eax, eax
je 0x1005aab0
call eax
cmp dword [esp + 0x74], 0
mov dword [esp + 0x40], 0
jbe 0x1005b217
xor ebx, ebx
cmp dword [esp + 0x70], ebx
jbe 0x1005b204
mov eax, dword [esp + 0x40]
imul eax, dword [esp + 0x60]
mov dword [esp + 0x94], eax
nop
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 0x10]
imul eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
add eax, ebx
imul eax, eax, 0x1b4
lea edi, [eax + ecx]
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx + 0x44]
add ecx, eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x90], ecx
lea ecx, [edi + 0x144]
push ecx
mov ecx, dword [edx + 8]
push ecx
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x38]
add ecx, 0x38
mov ecx, dword [esi + 0x38]
add eax, ebx
shl eax, 4
add edx, eax
push edx
add ecx, eax
push ecx
mov dword [esp + 0xac], eax
call dword [0x10104ba4]
mov ecx, dword [edi + 0x148]
mov dword [edi + 0x154], eax
mov eax, dword [edi + 0x144]
add esp, 0x10
cmp eax, ecx
mov dword [esp + 0x4c], eax
jg 0x1005ab63
mov dword [esp + 0x4c], ecx
mov ecx, dword [edi + 0x14c]
mov edx, dword [edi + 0x150]
cmp ecx, edx
jg 0x1005ab75
mov ecx, edx
cmp dword [esp + 0x4c], ecx
jle 0x1005ab83
mov ecx, dword [edi + 0x148]
jmp 0x1005ab8f
mov eax, dword [edi + 0x14c]
mov ecx, dword [edi + 0x150]
cmp eax, ecx
jg 0x1005ab95
mov eax, ecx
cmp dword [esp + 0x190], 0
lea edx, [eax*4]
mov dword [esp + 0x54], edx
je 0x1005ac39
mov eax, dword [esp + 0x60]
shr eax, 1
mov esi, eax
imul esi, dword [esp + 0x40]
push eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x4c]
add esi, ebx
add eax, 0x38
mov eax, dword [eax + 8]
add esi, esi
add esi, esi
add esi, esi
add eax, esi
push eax
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x40]
add eax, 0x38
add ecx, esi
push ecx
call dword [0x10104bb4]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x54]
add eax, 0x38
mov eax, dword [eax + 4]
add eax, esi
push edx
push eax
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x3c]
add eax, 0x38
add ecx, esi
push ecx
call dword [0x10104bb4]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x68]
add ecx, eax
mov dword [esp + 0x158], ecx
add dword [edi + 0x154], ecx
mov edx, dword [esp + 0x158]
add esp, 0x18
add dword [esp + 0x54], edx
cmp dword [esi + 0x14], 3
je 0x1005acac
cmp dword [edi + 0x158], 0
jne 0x1005acac
mov eax, dword [edi + 0xf0]
mov ecx, eax
imul ecx, dword [esp + 0x98]
cmp dword [esp + 0x54], ecx
jge 0x1005acac
cmp dword [esp + 0x190], 0
jne 0x1005ac8e
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x44]
shr edx, 1
push edx
push eax
mov eax, dword [esp + 0x54]
add eax, 0x38
push ebx
push eax
lea eax, [esi + 0x38]
push eax
call fcn.100592e0
add esp, 0x18
test eax, eax
je 0x1005acac
mov esi, dword [esp + 0x54]
mov eax, edi
call fcn.10058f60
mov esi, dword [esp + 0x50]
mov dword [edi + 0xec], 0x10
jmp 0x1005b1f9
test dword [esp + 0x68], 0x1000000
je 0x1005ae90
xor eax, eax
cmp dword [esi + 0x14], 3
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
lea edx, [edi + 0x1a0]
je 0x1005acdd
lea edx, [esp + 0xa8]
cmp ebx, eax
jbe 0x1005ae90
cmp dword [esp + 0x40], eax
jbe 0x1005ae90
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x44], eax
cmp ebx, eax
jae 0x1005ae90
imul eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
add eax, ebx
imul eax, eax, 0x1b4
add eax, ecx
mov ecx, dword [edx]
mov dword [esp + 0x6c], eax
cmp dword [eax - 0x1b4], ecx
jne 0x1005ae05
mov edx, dword [edx + 4]
mov dword [esp + 0x4c], edx
cmp dword [eax - 0x1b0], edx
jne 0x1005ae05
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x58]
dec edx
imul edx, dword [esp + 0x44]
add edx, ebx
imul edx, edx, 0x1b4
add eax, edx
cmp dword [eax], ecx
jne 0x1005ae05
mov edx, dword [esp + 0x4c]
cmp dword [eax + 4], edx
jne 0x1005ae05
cmp dword [eax + 0x1b4], ecx
jne 0x1005ae05
cmp dword [eax + 0x1b8], edx
jne 0x1005ae05
mov edx, dword [esp + 0x90]
cmp dword [edx], ecx
jne 0x1005ae05
mov ecx, dword [esp + 0x4c]
cmp dword [edx + 4], ecx
jne 0x1005ae05
mov edx, dword [edx + 0x154]
mov ecx, dword [eax + 0x308]
cmp ecx, edx
mov dword [esp + 0x3c], edx
jle 0x1005ada9
mov edx, ecx
mov eax, dword [eax + 0x154]
cmp eax, edx
mov dword [esp + 0x44], eax
jg 0x1005adc1
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jle 0x1005adc1
mov eax, ecx
mov edx, dword [esp + 0x6c]
mov edx, dword [edx - 0x60]
cmp edx, eax
jle 0x1005add5
mov dword [esp + 0x3c], edx
jmp 0x1005ae90
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jle 0x1005addf
mov eax, ecx
mov edx, dword [esp + 0x44]
cmp edx, eax
jle 0x1005adf0
mov dword [esp + 0x3c], edx
jmp 0x1005ae90
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jg 0x1005ae8c
mov dword [esp + 0x3c], eax
jmp 0x1005ae90
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
dec eax
imul eax, dword [esp + 0x44]
add eax, ebx
imul eax, eax, 0x1b4
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x90]
mov ecx, dword [ecx + 0x154]
mov eax, dword [edx + 0x308]
cmp eax, ecx
mov dword [esp + 0x3c], ecx
jge 0x1005ae3b
mov ecx, eax
mov edx, dword [edx + 0x154]
cmp edx, ecx
mov dword [esp + 0x44], edx
jge 0x1005ae4d
mov ecx, edx
jmp 0x1005ae57
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jge 0x1005ae57
mov ecx, eax
mov edx, dword [esp + 0x6c]
mov edx, dword [edx - 0x60]
cmp edx, ecx
jge 0x1005ae68
mov dword [esp + 0x3c], edx
jmp 0x1005ae90
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jge 0x1005ae72
mov ecx, eax
mov edx, dword [esp + 0x44]
cmp edx, ecx
jge 0x1005ae80
mov dword [esp + 0x3c], edx
jmp 0x1005ae90
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x1005ae90
mov dword [esp + 0x3c], ecx
test byte [esi + 0xc], 0x20
je 0x1005b0ab
cmp dword [esi + 0x14], 3
jne 0x1005b02f
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov ecx, dword [esi + 0x38]
push 0x10000
push eax
mov eax, dword [esp + 0xa4]
add edx, eax
push edx
add ecx, eax
push ecx
call dword [0x10104bb8]
add esp, 0x10
cmp dword [esp + 0x190], 0
mov dword [esp + 0x44], eax
je 0x1005af47
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
shr eax, 1
mov esi, eax
imul esi, dword [esp + 0x40]
add esi, ebx
push eax
mov dword [esp + 0x50], eax
mov eax, dword [edx + 4]
add esi, esi
add esi, esi
add esi, esi
add eax, esi
push eax
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x3c]
add eax, 0x38
add ecx, esi
push ecx
call dword [0x10104bb4]
add dword [esp + 0x50], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
push edx
mov edx, dword [eax + 0x40]
add eax, 0x38
add ecx, esi
push ecx
add edx, esi
push edx
call dword [0x10104bb4]
mov esi, dword [esp + 0x68]
add esp, 0x18
add dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x3c]
jg 0x1005b0ab
mov edx, dword [edi + 0x1a0]
mov dword [edi + 0xec], 0
mov dword [edi + 0x150], eax
mov dword [edi + 0x14c], eax
mov dword [edi + 0x148], eax
mov dword [edi + 0x144], eax
mov dword [edi + 0x154], eax
mov dword [edi + 0x1a8], 1
cmp dword [esp + 0x188], 0
je 0x1005affd
mov ecx, dword [edi + 0x1a4]
mov eax, edx
mov dword [edi + 0x13c], eax
mov eax, ecx
mov dword [edi + 0x138], eax
mov dword [edi + 0x140], ecx
mov ecx, edx
mov dword [edi + 0x134], edx
mov edx, eax
mov eax, ecx
mov dword [edi + 0x124], eax
mov dword [edi + 0x12c], ecx
mov ecx, edx
mov dword [edi + 0x130], edx
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x18], eax
mov dword [edi + 0x10], eax
mov dword [edi + 8], eax
mov dword [edi], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x128], ecx
mov dword [edi + 0x1c], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0xc], eax
mov dword [edi + 4], eax
jmp 0x1005b1f9
mov eax, dword [edi + 0x1a4]
mov ecx, dword [edi + 0x1a0]
mov dword [edi + 0x18], edx
mov edx, eax
mov dword [edi + 0x1c], eax
mov eax, ecx
mov dword [edi + 0x10], ecx
mov ecx, edx
mov dword [edi + 0x14], edx
mov edx, eax
mov dword [edi + 8], eax
mov eax, ecx
mov dword [edi + 0xc], ecx
mov dword [edi], edx
mov dword [edi + 4], eax
jmp 0x1005b1f9
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x54], ecx
jge 0x1005b0ab
test byte [esi + 8], 4
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x70]
mov ecx, dword [esi + 0x44]
push 0
push edx
push ebx
push 0
push eax
push ecx
je 0x1005b059
call fcn.10053b20
jmp 0x1005b05e
call fcn.100538c0
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x98], eax
add esp, 0x18
mov eax, edi
mov dword [esp + 0x84], edx
call fcn.10058f60
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x50]
neg eax
mov dword [edi + 0x104], eax
mov eax, dword [esp + 0x84]
neg eax
mov dword [edi + 0x15c], 0x3f
mov dword [edi + 0x108], eax
jmp 0x1005b1f9
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0x44]
mov ecx, dword [esp + 0x58]
push edi
push edx
mov edx, dword [esp + 0x6c]
push ecx
push edx
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0xc0]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x58]
push ecx
push edx
push ebx
lea ecx, [esi + 0x38]
push ecx
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx]
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0xcc]
push edx
mov edx, dword [ecx]
push edx
add eax, 0x38
push eax
call fcn.10059f20
mov eax, dword [esi + 0xc]
add esp, 0x38
test eax, 0x100
je 0x1005b152
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x70]
add ecx, 0x38
push ecx
lea ecx, [esi + 0x38]
push ecx
mov ecx, dword [esi + 8]
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x74]
push eax
push ecx
push ebx
push edx
lea eax, [esp + 0xdc]
push edi
push eax
call fcn.10061cf0
add esp, 0x34
jmp 0x1005b1d0
test eax, 0x1000
je 0x1005b19b
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x70]
add ecx, 0x38
push ecx
lea ecx, [esi + 0x38]
push ecx
mov ecx, dword [esi + 8]
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x74]
push eax
push ecx
push ebx
push edx
lea eax, [esp + 0xdc]
push edi
push eax
call fcn.100620e0
add esp, 0x34
jmp 0x1005b1d0
mov ecx, dword [esp + 0x54]
mov edx, dword [esi + 0x14]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x54]
add ecx, 0x38
push ecx
lea ecx, [esi + 0x38]
push ecx
push eax
mov eax, dword [esp + 0x58]
push edx
push eax
push ebx
lea ecx, [esp + 0xd4]
call fcn.10059630
add esp, 0x24
mov ecx, dword [esp + 0x188]
push ecx
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x80]
push eax
mov edx, edi
lea eax, [esp + 0x88]
call fcn.1005a870
add esp, 0xc
inc ebx
cmp ebx, dword [esp + 0x70]
jb 0x1005aae0
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x74]
jb 0x1005aac3
mov ecx, dword [esp + 0x78]
push ecx
call fcn.10055310
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x400]
add esp, 4
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x88]
pop edi
mov dword [esi + 0x124], eax
mov dword [esi + 0x120], edx
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1000c146
mov esp, ebp
pop ebp
ret