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

Disassembly:
sub esp, 0x744
lea eax, [esp + 0x83]
push ebx
and al, 0xc0
push ebp
mov ebp, dword [esp + 0x750]
mov dword [esp + 0x2c], eax
push esi
lea eax, [esp + 0x40f]
push edi
mov edi, dword [ebp + 0x44]
and al, 0xc0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0xa4]
mov edx, dword [edi + 0x10]
add eax, 0x38
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xa0]
add eax, 0x38
mov ebx, dword [ebp + 4]
mov dword [esp + 0x44], eax
mov eax, ecx
imul eax, edx
mov esi, dword [ebp + 0x3c]
mov dword [esp + 0x28], edx
mov edx, dword [edi + 0x250]
mov dword [esp + 0x48], ebx
test ecx, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], edx
jle 0x1005f837
inc eax
push eax
push ebx
push edi
push esi
call fcn.10061750
add esp, 0x10
mov ecx, dword [ebp + 0x14]
mov eax, ecx
imul eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, ecx
imul eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov ebp, dword [ebp + 0x18]
mov dword [esp + 0x1c], ecx
lea edx, [ebp + 1]
mov ebp, dword [esp + 0x50]
cmp edx, ebp
jl 0x1005f864
mov edx, ebp
cmp ecx, edx
jge 0x1005fbb6
cdq
idiv ebp
mov dword [esp + 0x20], 1
imul eax, ebp
mov ebp, dword [esp + 0x2c]
lea eax, [eax + ebp - 1]
cdq
idiv ebp
mov edx, dword [esp + 0x28]
imul eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x758]
cmp ecx, dword [eax + 0x18]
je 0x1005f8a0
mov dword [esp + 0x20], edx
cmp ecx, dword [eax + 0x14]
jne 0x1005f8b0
test ecx, ecx
jle 0x1005f8b0
mov edx, 1
jmp 0x1005f8b2
xor edx, edx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], edx
cmp edx, eax
jge 0x1005fb89
mov eax, dword [edi + 0x10]
imul eax, ecx
add eax, edx
lea ebp, [eax + eax*2]
lea ebp, [ebp + ebp*4]
lea eax, [eax + ebp*4]
mov ebp, dword [ebx + 0x44]
lea ebp, [ebp + eax*8]
cmp dword [ebp + 0xec], 0x10
jne 0x1005f927
test byte [edi + 0x18], 1
je 0x1005fb78
mov eax, dword [esp + 0x758]
mov eax, dword [eax + 8]
push eax
mov eax, dword [edi + 8]
push 0
push 0
push eax
push 0
push 0
lea eax, [ebx + 0x38]
push 0
push eax
mov eax, dword [esp + 0x50]
push 0
push 0
push eax
push 0
push eax
push ecx
push edx
push ebp
call fcn.10068280
add esp, 0x40
jmp 0x1005fb70
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x38]
jle 0x1005fa60
test edx, edx
jle 0x1005fa60
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x38], eax
and ecx, 7
mov eax, 8
sub eax, ecx
mov ecx, 0x20
sub ecx, dword [esi + 0xc]
mov edx, dword [eax*4 + 0x100cc3ec]
sub ecx, eax
mov dword [esp + 0x4c], edx
cmp ecx, 0x20
ja 0x1005f998
shl edx, cl
mov ecx, dword [esi + 8]
or ecx, edx
mov edx, dword [esi + 0xc]
add edx, eax
mov dword [esi + 8], ecx
mov eax, edx
mov dword [esi + 0xc], edx
cmp eax, 0x20
jb 0x1005fa42
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
bswap eax
mov dword [esp + 0x14], eax
jmp 0x1005fa20
mov ecx, dword [esi + 0xc]
lea ecx, [ecx + eax - 0x20]
shr edx, cl
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 8]
or ecx, edx
mov edx, dword [esp + 0x14]
sub eax, edx
mov dword [esi + 8], ecx
add dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
cmp eax, 0x20
jb 0x1005f9ee
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
bswap eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
add ecx, 4
add eax, 0xffffffe0
mov dword [esi + 0x10], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x4c]
mov ecx, 0x20
sub ecx, edx
shl eax, cl
mov ecx, dword [esi + 8]
or ecx, eax
mov dword [esi + 8], ecx
mov eax, ecx
mov ecx, dword [esi + 0xc]
add ecx, edx
cmp ecx, 0x20
mov dword [esi + 0xc], ecx
jb 0x1005fa42
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
bswap eax
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x14]
mov dword [edx], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
add ecx, 4
add eax, 0xffffffe0
mov dword [esi + 0x10], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add ecx, edx
push ecx
push ebx
push edi
push esi
call fcn.10061750
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add esp, 0x10
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xf0], eax
mov eax, dword [ebp + 0x178]
test eax, eax
jne 0x1005fa7d
test byte [edi + 0x18], 1
je 0x1005faff
mov eax, dword [esp + 0x758]
mov eax, dword [eax + 8]
push eax
mov eax, dword [esp + 0x38]
push eax
lea eax, [edi + 0xe4]
push eax
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0xc0]
push eax
mov eax, dword [esp + 0x58]
push eax
lea eax, [edi + 0x140]
push eax
lea eax, [edi + 0x134]
push eax
lea eax, [edi + 0x128]
push eax
mov eax, dword [esp + 0x54]
push eax
lea eax, [ebx + 0x38]
push eax
push ecx
push edx
push ebp
push edi
call fcn.10068cc0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
push ecx
push ebp
push ebx
push edi
call fcn.10054840
mov ebx, dword [esp + 0xa0]
add esp, 0x58
and eax, 0xff
mov dword [ebp + 0x178], eax
cmp dword [ebp + 0xec], 5
jne 0x1005fb12
mov dword [ebp + 0xec], 0
mov eax, dword [ebp + 0xec]
test eax, eax
jne 0x1005fb40
mov edx, dword [ebp + 0x120]
mov ecx, dword [ebp + 0x11c]
mov eax, dword [ebp + 0x178]
or edx, ecx
or edx, eax
jne 0x1005fb40
mov dword [ebp + 0xec], 4
jmp 0x1005fb4d
test byte [ebx + 0xc], 0x40
je 0x1005fb4d
and dword [ebp + 0x178], 0x3c
mov eax, dword [esp + 0x758]
mov edx, dword [ebx + 0x24]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebx + 0x20]
push ecx
mov ecx, dword [esp + 0x40]
push esi
push edx
push eax
push ecx
push ebp
push ebx
call fcn.100589d0
add esp, 0x1c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
inc edx
cmp edx, eax
mov dword [esp + 0x18], edx
jl 0x1005f8c2
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x758]
add eax, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
inc ecx
add edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], edx
jmp 0x1005f850
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 0xc]
and ecx, 7
mov eax, 8
mov ebx, 0x20
sub eax, ecx
mov ecx, ebx
mov edx, dword [eax*4 + 0x100cc3ec]
sub ecx, edi
sub ecx, eax
cmp ecx, ebx
ja 0x1005fc0d
mov edi, dword [esi + 8]
shl edx, cl
or edi, edx
mov edx, dword [esi + 0xc]
add edx, eax
mov dword [esi + 8], edi
mov eax, edx
mov ecx, edi
cmp eax, ebx
mov dword [esi + 0xc], edx
jb 0x1005fcb0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
bswap eax
mov dword [esp + 0x10], eax
jmp 0x1005fc8e
mov ecx, dword [esi + 0xc]
mov ebp, edx
lea edi, [ecx + eax - 0x20]
mov ecx, edi
sub eax, edi
shr ebp, cl
mov ecx, dword [esi + 8]
or ecx, ebp
mov ebp, dword [esi + 0xc]
add ebp, eax
mov dword [esi + 8], ecx
mov eax, ebp
mov dword [esi + 0xc], ebp
cmp eax, ebx
jb 0x1005fc62
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
bswap eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
add ecx, 4
add eax, 0xffffffe0
mov dword [esi + 0x10], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov ebp, dword [esi + 8]
mov ecx, ebx
sub ecx, edi
shl edx, cl
or ebp, edx
mov edx, dword [esi + 0xc]
add edx, edi
mov dword [esi + 8], ebp
mov ecx, edx
mov eax, ebp
cmp ecx, ebx
mov dword [esi + 0xc], edx
jb 0x1005fcb0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
bswap eax
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
add ecx, 4
add eax, 0xffffffe0
mov dword [esi + 0x10], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x744
jmp dword [0x10146fc8]