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

Disassembly:
push 0xffffffffffffffff
push 0x10070608
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 0x1001cfbe
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 0x1001d3b3
cmp dword [esp + 0x2c], 0
je 0x1001d3b3
mov eax, dword [esp + 0xcc]
push eax
push 3
mov ecx, esi
call fcn.10018c80
test ebx, ebx
mov dword [esp + 0x3c], eax
jbe 0x1001d3ad
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 8]
lea ecx, [esp + 0x88]
call eax
test ax, 0xfff
jne 0x1001d077
cmp byte [esp + 0xa4], 0
je 0x1001d09b
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x88]
call eax
test ax, 0xfff0
jne 0x1001d09b
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 0x14]
lea ecx, [esp + 0x88]
call eax
test eax, eax
je 0x1001d09b
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 0x1001d3a5
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 0x1001d0d5
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 0x1001d175
cmp ebp, ebx
jbe 0x1001d124
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 0x1001d124
mov eax, dword [esp + 0x88]
mov edx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x8c]
add ebx, 1
call edx
jmp 0x1001d0e8
test ebx, ebx
je 0x1001d175
cmp byte [esp + 0x17], 0
je 0x1001d144
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 3
call fcn.10005a70
sub ebp, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0xb4], ebp
cmp byte [esp + 0x16], 0
je 0x1001d3a5
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 0x1001d34b
cmp byte [esp + 0x16], 1
je 0x1001d202
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 0x1001d34b
test ax, ax
jne 0x1001d34b
mov eax, 0x19
cmp dword [esp + 0x24], eax
jb 0x1001d34b
cmp dword [esp + 0x28], eax
jb 0x1001d34b
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 0x1001d268
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 0x1001d31f
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 0x1001d1b0
cmp dword [0x1007a130], 0
je 0x1001d39e
cmp dword [esp + 0x1c], 0
jbe 0x1001d39e
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 0x1001d024
mov eax, dword [esp + 0x34]
jmp 0x1001d3b8
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