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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov edx, dword [edi]
mov ecx, dword [edx + 4]
and al, 2
push ebx
mov byte [esp + 0xb], al
push esi
movsx esi, byte [edi + 0x44]
mov ebx, dword [edi + esi*4 + 0x78]
movzx eax, word [edi + esi*2 + 0x50]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0x20], eax
mov ax, word [ecx + eax*2]
mov ch, al
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov cl, ah
movzx eax, cx
movzx ecx, word [ebx + 0x14]
and eax, ecx
add eax, dword [ebx + 0x38]
cmp byte [ebx + 4], 0
mov dword [esp + 0x18], eax
jne 0x1001fa1f
and byte [edi + 0x40], 0xf1
xor eax, eax
cmp byte [edi + 0x42], 1
mov dword [esp + 0x10], 0
mov word [edi + 0x22], ax
jne 0x1001fa04
cmp word [edi + esi*2 + 0x50], ax
je 0x1001fa04
mov ecx, dword [edi + esi*4 + 0x78]
cmp byte [ecx + 4], al
je 0x1001fa04
mov eax, 0xffff
add word [edi + esi*2 + 0x50], ax
jmp 0x1001fa1f
lea ecx, [esp + 0x10]
push ecx
mov eax, edi
call fcn.1001c040
add esp, 4
test eax, eax
jne 0x1001fcce
mov edx, dword [esp + 0x14]
test byte [edi + 0x40], 0x20
je 0x1001fa6b
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov ecx, dword [edi + 0x34]
test eax, eax
je 0x1001fa47
cmp eax, edi
je 0x1001fa40
test ecx, ecx
je 0x1001fa51
cmp dword [eax + 0x34], ecx
je 0x1001fa51
mov eax, dword [eax + 8]
test eax, eax
jne 0x1001fa33
mov al, byte [edi + 0x40]
and al, 0xdf
mov byte [edi + 0x40], al
jmp 0x1001fa6b
test eax, eax
je 0x1001fa47
push edi
push ecx
call fcn.10017190
add esp, 8
test eax, eax
jne 0x1001fcce
mov edx, dword [esp + 0x14]
cmp dword [edi + 0x48], 0
jne 0x1001faba
cmp byte [edx + 0xb], 0
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
je 0x1001faba
mov ecx, dword [edx + 4]
mov byte [edx + 0xb], 0
mov eax, dword [ecx + 8]
test eax, eax
je 0x1001faba
test byte [eax + 0x40], 0x10
je 0x1001fab3
mov byte [edx + 0xb], 1
mov ecx, dword [eax + 0x10]
cmp ecx, dword [esp + 0x30]
jne 0x1001fab3
mov ecx, dword [eax + 0x14]
cmp ecx, dword [esp + 0x34]
jne 0x1001fab3
mov byte [eax + 0x42], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x1001fa93
cmp byte [esp + 0xf], 0
je 0x1001fb0f
cmp byte [ebx + 4], 0
je 0x1001fb00
mov edx, dword [esp + 0x18]
push edx
push ebx
call fcn.10017950
movzx ecx, word [ebx + 0x10]
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 0x28]
movzx eax, ax
lea ecx, [eax + ecx + 2]
add edx, edx
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
add esp, 8
cmp ecx, edx
jg 0x1001fb00
mov dword [esp + 0x2c], 1
jmp 0x1001fb0f
mov esi, edi
call fcn.100170e0
test eax, eax
jne 0x1001fcce
mov esi, dword [ebx + 0x48]
call fcn.10013160
test eax, eax
jne 0x1001fcce
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, ebx
call fcn.1001cb60
movzx edx, word [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
push edx
push eax
mov esi, ebx
call fcn.1001d090
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x1001fcce
cmp byte [ebx + 4], al
jne 0x1001fc2d
movsx ecx, byte [edi + 0x44]
mov ebx, dword [edi + ecx*4 + 0x78]
mov edx, dword [esp + 0x28]
mov eax, dword [edi + edx*4 + 0x7c]
mov ecx, dword [eax + 0x54]
movzx edx, word [ebx + 0x12]
mov eax, dword [ebx + 0x40]
mov esi, dword [ebx + 0x38]
mov dword [esp + 0x10], ecx
mov cx, word [eax + edx*2 - 2]
mov dh, cl
mov dl, ch
movzx ecx, word [ebx + 0x14]
movzx eax, dx
and eax, ecx
add eax, esi
add esi, 4
mov dword [esp + 0x18], eax
cmp eax, esi
jae 0x1001fbb5
mov eax, 0xfa0d
call fcn.1007c2f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x4c]
push eax
push ebx
call edx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x54]
mov esi, dword [ebx + 0x48]
movzx eax, ax
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], edx
call fcn.10013160
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esi + 4]
push edx
mov edx, dword [esp + 0x38]
add eax, 0xfffffffc
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
call fcn.1001d1e0
movzx ecx, word [ebx + 0x12]
lea eax, [esp + 0x34]
push eax
push esi
dec ecx
push ecx
mov esi, ebx
call fcn.1001d090
mov eax, dword [esp + 0x40]
add esp, 0x2c
test eax, eax
jne 0x1001fcce
mov ebx, dword [esp + 0x24]
mov ecx, edi
call fcn.1001f4d0
test eax, eax
jne 0x1001fcce
movsx edx, byte [edi + 0x44]
mov esi, dword [esp + 0x28]
cmp edx, esi
jle 0x1001fc82
jmp 0x1001fc50
mov al, byte [edi + 0x44]
movsx ecx, al
mov ecx, dword [edi + ecx*4 + 0x78]
dec al
mov byte [edi + 0x44], al
test ecx, ecx
je 0x1001fc6f
mov edx, dword [ecx + 0x48]
push edx
call fcn.10012b00
add esp, 4
movsx eax, byte [edi + 0x44]
cmp eax, esi
jg 0x1001fc50
mov ecx, edi
call fcn.1001f4d0
test eax, eax
jne 0x1001fcce
cmp dword [esp + 0x2c], 0
je 0x1001fcbc
mov byte [edi + 0x42], 2
movzx ecx, word [ebx + 0x12]
cmp dword [esp + 0x20], ecx
jl 0x1001fcaf
mov dword [edi + 0x3c], 0xffffffff
mov dx, word [ebx + 0x12]
dec dx
mov word [edi + esi*2 + 0x50], dx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x3c], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, edi
call fcn.1001b5b0
cmp byte [esp + 0xf], 0
je 0x1001fcce
mov byte [edi + 0x42], 3
pop esi
pop ebx
mov esp, ebp
pop ebp
ret