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

Disassembly:
push 0xffffffffffffffff
push 0x10070698
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007bf74]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x30], edi
mov ebp, dword [esp + 0xc4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], eax
mov eax, dword [edi + 8]
mov esi, dword [eax + 0x3f4]
mov eax, dword [edx + 4]
call eax
mov ebx, eax
add ebx, dword [esp + 0xc8]
add ebx, dword [ebp]
cmp dword [0x1007a11c], 0
mov ebp, dword [esp + 0xc0]
mov dword [esp + 0xc8], ebp
je 0x1001deaa
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0x58]
mov edx, dword [esp + 0xd8]
mov ecx, dword [edx + 8]
mov byte [esp + 0x9c], 1
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xa4], eax
mov ecx, dword [edi + 8]
mov edx, esi
imul edx, edx, 0x4b0
push 1
push edx
add ecx, 0x564
call fcn.1000b210
mov ecx, dword [edi + 8]
push 1
push 0x960
add ecx, 0x55c
mov dword [esp + 0x30], eax
call fcn.1000b210
test eax, eax
mov dword [esp + 0x34], eax
je 0x1001e1fc
cmp dword [esp + 0x28], 0
je 0x1001e1fc
mov eax, dword [esp + 0xd8]
push eax
push 6
mov ecx, edi
call fcn.10018c80
test ebp, ebp
mov edi, eax
jbe 0x1001e1f6
mov edi, edi
mov edx, dword [esp + 0x80]
mov eax, dword [edx + 8]
lea ecx, [esp + 0x80]
call eax
test ax, 0xfff
jne 0x1001df63
cmp byte [esp + 0x9c], 0
je 0x1001df85
mov edx, dword [esp + 0x80]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x80]
call eax
test ax, 0xfff0
jne 0x1001df85
mov edx, dword [esp + 0x80]
mov eax, dword [edx + 0x14]
lea ecx, [esp + 0x80]
call eax
test eax, eax
je 0x1001df85
mov edx, dword [esp + 0x80]
mov eax, dword [edx + 0xc]
push 0
lea ecx, [esp + 0x84]
call eax
sub dword [esp + 0xc8], 1
jmp 0x1001e1e8
mov edx, dword [esp + 0x80]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x80]
call eax
mov eax, dword [esp + 0x98]
mov dx, word [eax + 2]
or dx, word [eax]
mov ebp, dword [esp + 0x28]
or dx, word [esp + 0xb0]
mov cl, 1
movzx eax, dx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, 0x4b0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
xor eax, eax
cmp dword [esp + 0xc8], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0x18], eax
jbe 0x1001e190
cmp cl, 1
je 0x1001e03e
mov eax, dword [esp + 0x80]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x80]
call edx
mov edx, dword [esp + 0x80]
movzx eax, ax
mov dword [esp + 0x14], eax
mov eax, dword [edx + 8]
lea ecx, [esp + 0x80]
call eax
and ax, 0xfff
test dword [esp + 0x14], 0xfff0
movzx eax, ax
je 0x1001e190
test ax, ax
jne 0x1001e190
mov eax, 0x19
cmp dword [esp + 0x20], eax
jb 0x1001e190
cmp dword [esp + 0x24], eax
jb 0x1001e190
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx + 0xc]
cmp dword [edx + 0x24], 1
mov ecx, dword [esp + 0x84]
sete al
mov byte [esp + 0x3c], al
xor edx, edx
mov eax, ecx
sub eax, ebx
div esi
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x50], eax
lea eax, [edx + ecx]
mov dword [esp + 0x64], eax
sub eax, ebx
xor edx, edx
div esi
xor edx, edx
mov ecx, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x6c], eax
sub eax, ebx
div esi
mov edx, dword [esp + 0x40]
push edx
push esi
lea edx, [esp + 0x6c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xe4]
push eax
push ebp
push ecx
mov ecx, dword [esp + 0x48]
push 3
push edx
lea eax, [esp + 0x70]
push eax
call fcn.100186d0
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 0
push ebp
mov ecx, edi
call eax
movzx ecx, word [esp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 8]
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov ecx, edi
call edx
test eax, eax
je 0x1001e16b
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x48]
movzx eax, ax
movzx eax, ax
add dword [esp + 0x2c], eax
sub dword [esp + 0x20], eax
mov edx, eax
imul edx, esi
add ebp, edx
mov edx, dword [esp + 0x1c]
sub dword [esp + 0x24], ecx
lea edx, [edx + ecx*2]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x80]
mov edx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x84]
call edx
sub dword [esp + 0xc8], 1
mov cl, 0
jne 0x1001dfee
cmp dword [0x1007a130], 0
je 0x1001e1e8
cmp dword [esp + 0xc0], 0
jbe 0x1001e1e8
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push eax
push esi
push 0
call fcn.10005910
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x2c]
push 0
push edx
mov edx, dword [esp + 0x54]
push 2
push eax
mov eax, dword [ebp + 8]
push 0
push ecx
mov ecx, dword [eax]
push 0
push 0
push edx
call fcn.10005ad0
mov dword [esp + 0x38], eax
cmp dword [esp + 0xc8], 0
ja 0x1001df10
mov eax, dword [esp + 0x38]
jmp 0x1001e201
mov eax, 0x8007000e
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x60