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

Disassembly:
push 0xffffffffffffffff
push 0x100705d8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007bf74]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x40], esi
mov ebx, dword [esp + 0xb8]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
xor eax, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
mov edi, dword [eax + 0x3f4]
mov eax, dword [edx + 4]
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
call eax
add eax, dword [esp + 0xbc]
add eax, dword [ebx]
cmp dword [0x1007a11c], 0
mov ebx, dword [esp + 0xb4]
mov ebp, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0xb4], ebp
je 0x1001cafe
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x58]
mov edx, dword [esp + 0xcc]
mov ecx, dword [edx + 8]
mov byte [esp + 0xa4], 1
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xac], eax
mov ecx, dword [esi + 8]
mov edx, edi
imul edx, edx, 0x4b0
push 1
push edx
add ecx, 0x564
call fcn.1000b210
mov ecx, dword [esi + 8]
push 1
push 0x960
add ecx, 0x55c
mov dword [esp + 0x34], eax
call fcn.1000b210
test eax, eax
mov dword [esp + 0x44], eax
je 0x1001cef3
cmp dword [esp + 0x2c], 0
je 0x1001cef3
mov eax, dword [esp + 0xcc]
push eax
push 2
mov ecx, esi
call fcn.10018c80
test ebx, ebx
mov dword [esp + 0x3c], eax
jbe 0x1001ceed
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 8]
lea ecx, [esp + 0x88]
call eax
test ax, 0xfff
jne 0x1001cbb7
cmp byte [esp + 0xa4], 0
je 0x1001cbdb
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x88]
call eax
test ax, 0xfff0
jne 0x1001cbdb
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 0x14]
lea ecx, [esp + 0x88]
call eax
test eax, eax
je 0x1001cbdb
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 0xc]
push 0
lea ecx, [esp + 0x8c]
call eax
sub ebp, 1
mov dword [esp + 0xb4], ebp
jmp 0x1001cee5
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x88]
xor ebx, ebx
call eax
test ax, 0xfff0
sete al
test al, al
jne 0x1001cc15
mov ecx, dword [esp + 0xa0]
mov dx, word [ecx + 2]
or dx, word [ecx]
mov byte [esp + 0x16], 1
movzx ecx, dx
mov dword [esp + 0x18], ecx
test al, al
mov edx, dword [esp + 0x90]
mov dword [esp + 0x30], edx
je 0x1001ccb5
cmp ebp, ebx
jbe 0x1001cc64
mov eax, dword [esp + 0x88]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x88]
call edx
test ax, 0xfff0
sete al
test al, al
je 0x1001cc64
mov eax, dword [esp + 0x88]
mov edx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x8c]
add ebx, 1
call edx
jmp 0x1001cc28
test ebx, ebx
je 0x1001ccb5
cmp byte [esp + 0x17], 0
je 0x1001cc84
mov eax, dword [esp + 0xb8]
mov ecx, dword [esi + 0xc]
push eax
call fcn.100156d0
mov byte [esp + 0x17], 0
mov ecx, dword [esp + 0xb8]
mov eax, dword [ecx]
mov edx, dword [esp + 0x30]
add eax, edx
add eax, dword [esp + 0xbc]
push ebx
push eax
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push 2
call fcn.10005a70
sub ebp, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0xb4], ebp
cmp byte [esp + 0x16], 0
je 0x1001cee5
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
mov eax, 0x4b0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
xor eax, eax
cmp dword [esp + 0xb4], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jbe 0x1001ce8b
cmp byte [esp + 0x16], 1
je 0x1001cd42
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x88]
call eax
mov edx, dword [esp + 0x88]
movzx ecx, ax
mov eax, dword [edx + 8]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x88]
call eax
and ax, 0xfff
test dword [esp + 0x18], 0xfff0
movzx eax, ax
je 0x1001ce8b
test ax, ax
jne 0x1001ce8b
mov eax, 0x19
cmp dword [esp + 0x24], eax
jb 0x1001ce8b
cmp dword [esp + 0x28], eax
jb 0x1001ce8b
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx + 0xc]
cmp dword [edx + 0x24], 1
mov ecx, dword [esp + 0x8c]
sete al
mov byte [esp + 0x48], al
mov eax, ecx
sub eax, dword [esp + 0x38]
xor edx, edx
div edi
mov edx, dword [esp + 0x94]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x68], eax
lea eax, [edx + ecx]
mov dword [esp + 0x5c], eax
sub eax, dword [esp + 0x38]
xor edx, edx
div edi
mov dword [esp + 0x6c], eax
mov eax, 8
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x68]
mov dword [esp + eax + 0x58], ecx
mov dword [esp + eax + 0x68], edx
add eax, 4
cmp eax, 0x10
jb 0x1001cda8
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0xcc]
push eax
mov eax, dword [esp + 0xcc]
push ecx
push edi
push edx
push ebp
push eax
push 2
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x88]
push edx
mov ecx, esi
call fcn.100186d0
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0
push ebp
call edx
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
movzx esi, word [esp + 0x20]
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x28]
push ebx
push edx
call eax
test eax, eax
je 0x1001ce5f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x4c]
add dword [esp + 0x1c], edx
sub ecx, esi
movzx eax, cx
movzx eax, ax
add dword [esp + 0x30], eax
sub dword [esp + 0x24], eax
mov ecx, eax
imul ecx, edi
add ebp, ecx
mov ecx, dword [esp + 0x50]
sub dword [esp + 0x28], ecx
lea ebx, [ebx + ecx*2]
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 0xc]
push 0
lea ecx, [esp + 0x8c]
call eax
sub dword [esp + 0xb4], 1
mov esi, dword [esp + 0x40]
mov byte [esp + 0x16], 0
jne 0x1001ccf0
cmp dword [0x1007a130], 0
je 0x1001cede
cmp dword [esp + 0x1c], 0
jbe 0x1001cede
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 8]
push ecx
mov ecx, dword [edx]
push edi
push 0
call fcn.10005910
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
push 0
push eax
mov eax, dword [esp + 0x5c]
push 2
push ecx
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
push 0
push edx
push 0
push 0
push eax
call fcn.10005ad0
mov dword [esp + 0x34], eax
mov byte [esp + 0x17], 1
mov ebp, dword [esp + 0xb4]
test ebp, ebp
ja 0x1001cb64
mov eax, dword [esp + 0x34]
jmp 0x1001cef8
mov eax, 0x8007000e
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 0x4c