Function at 0x1006fac0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1d0]
mov dword [esp + 0xc8], eax
mov eax, dword [esi + 0x1d4]
push edi
mov edi, dword [esi]
mov dword [esi + 0x1d0], eax
add eax, 1
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esi + 0x1d4], eax
mov dword [esp + 0x34], edi
je 0x10071503
cmp byte [edi + 0x40], 0
jne 0x10071503
cmp dword [esi + 0x40], 0
jne 0x10071503
push 0
push 0
push 0
push 0x15
mov eax, esi
call fcn.10039af0
add esp, 0x10
test eax, eax
jne 0x10071503
push 0x30
push eax
lea ecx, [esp + 0xa4]
push ecx
call fcn.10003bb0
mov edx, dword [ebp + 0x10]
add esp, 0xc
cmp byte [edx], 8
ja 0x1006fb70
mov eax, dword [ebx + 0x30]
push eax
push edi
call fcn.1002f840
add esp, 8
and word [ebx + 6], 0xfffe
mov dword [ebx + 0x30], 0
push 0
push ebx
push esi
call fcn.1005a4f0
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx + 0x20]
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov eax, dword [ebx]
add esp, 0xc
cmp dword [esi + 0x40], 0
mov dword [esp + 0x68], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x44], eax
jne 0x100714aa
mov ecx, edi
cmp byte [ecx + 0x40], 0
jne 0x100714aa
movzx edx, byte [ebx + 6]
shr edx, 2
and edx, 1
mov eax, esi
mov dword [esp + 0x40], edx
call fcn.100389a0
test eax, eax
mov dword [esp + 0xc], eax
je 0x100714aa
mov ecx, dword [esp + 0x44]
cmp dword [ecx], 1
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
jle 0x1006fc0f
mov edi, esi
call fcn.100330d0
test eax, eax
jne 0x100714aa
cmp dword [ebx + 0x34], 0
mov dword [esp + 0x18], 0
jne 0x1006fed3
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
cmp eax, dword [edx]
jge 0x1006fed3
lea ecx, [eax + eax*4]
shl ecx, 4
mov eax, dword [ecx + edx + 0x1c]
test eax, eax
lea edi, [ecx + edx + 8]
mov dword [esp + 0x14], eax
je 0x1006fec4
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1006fc77
test byte [edi + 0x28], 4
jne 0x1006fec4
mov esi, dword [esp + 0xc]
push eax
mov eax, dword [edi + 0x1c]
push eax
push 0x11
call fcn.10035eb0
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x1006fec4
mov ecx, ebx
call fcn.10024340
add dword [esi + 0x1cc], eax
mov ecx, dword [esp + 0x14]
movzx eax, byte [ecx + 6]
mov edx, dword [esp + 0x40]
shr eax, 2
and eax, 1
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push esi
mov eax, ebx
call fcn.10042de0
add esp, 0x10
test eax, eax
je 0x1006fcd1
cmp dword [esp + 0x20], 0
je 0x1006fcc4
or word [ebx + 6], 4
mov dword [esp + 0x40], 1
mov dword [esp + 0x18], 0xffffffff
jmp 0x1006fe93
mov ecx, dword [esp + 0x38]
cmp dword [ecx], 1
jne 0x1006fdad
mov edx, dword [esp + 0x34]
test word [edx + 0x3c], 0x100
jne 0x1006fdad
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x20]
add dword [esi + 0x48], 1
mov esi, dword [esi + 0x48]
add eax, 1
push eax
push 0
push esi
mov dword [edi + 0x1c], esi
push 0x14
mov esi, ecx
mov dword [esp + 0x4c], eax
call fcn.10030400
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x24]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0xe4], eax
xor eax, eax
lea edx, [esp + 0xe0]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x1d4]
push edx
push esi
mov byte [esp + 0xe8], 0xd
mov byte [esp + 0xe9], 0
push eax
mov byte [edi + 0x2c], cl
call fcn.1006fac0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
add esp, 0x1c
push eax
push ecx
call fcn.10015450
mov edx, dword [edi + 0x10]
mov esi, dword [esp + 0x14]
mov word [edx + 0x1c], ax
mov ecx, dword [edi + 0x1c]
or dword [edi + 0x28], 4
mov eax, dword [esp + 0xe0]
push ecx
push 0x15
mov dword [edi + 0x20], eax
call fcn.10035f10
mov eax, dword [esp + 0x4c]
add esp, 0x10
add eax, 0xffffffff
mov edx, esi
call fcn.1001b350
jmp 0x1006fe83
add dword [esi + 0x48], 1
mov esi, dword [esi + 0x48]
push esi
mov dword [edi + 0x1c], esi
mov esi, dword [esp + 0x10]
push 0
push 0x19
mov dword [esp + 0x48], 0
call fcn.10035eb0
mov dword [esp + 0x30], eax
add eax, 1
add esp, 0xc
test byte [edi + 0x28], 2
mov dword [edi + 0x18], eax
jne 0x1006fdec
mov eax, dword [ebp + 8]
call fcn.1003a3e0
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x30]
mov esi, dword [esp + 0x14]
mov dword [esp + 0xd4], eax
xor eax, eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov eax, dword [ebp + 8]
mov dl, byte [eax + 0x1d4]
push ecx
push esi
mov byte [esp + 0xd8], 0xc
mov byte [esp + 0xd9], 0
push eax
mov byte [edi + 0x2c], dl
call fcn.1006fac0
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
add esp, 0xc
push edx
push eax
call fcn.10015450
mov ecx, dword [edi + 0x10]
mov esi, dword [esp + 0x14]
mov word [ecx + 0x1c], ax
mov eax, dword [esp + 0x44]
add esp, 8
test eax, eax
je 0x1006fe62
mov edx, esi
call fcn.1001b350
mov edx, dword [edi + 0x1c]
push edx
push 0x12
call fcn.10035f10
mov ecx, dword [esp + 0x2c]
add esp, 8
cmp dword [esi + 0x20], ecx
jbe 0x1006fe83
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + 4]
mov dword [ecx + edx*4 + 4], eax
mov eax, dword [ebp + 8]
mov esi, eax
mov dword [eax + 0x38], 0
mov byte [eax + 0x13], 0
mov edx, dword [esp + 0x34]
cmp byte [edx + 0x40], 0
jne 0x100714aa
mov ecx, ebx
call fcn.10024340
sub dword [esi + 0x1cc], eax
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 8
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x38], eax
jbe 0x1006fec4
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x68], edx
add dword [esp + 0x18], 1
cmp dword [ebx + 0x34], 0
je 0x1006fc21
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x24]
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x3c], eax
mov al, byte [ebx + 6]
and al, 1
cmp dword [ebx + 0x34], 0
mov dword [esp + 0x50], ecx
mov dword [esp + 0x10], edx
mov byte [esp + 0x88], al
je 0x1006ff23
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
mov eax, esi
call fcn.10057180
mov edx, dword [esp + 0xd4]
add esp, 8
mov dword [esi + 0x1d0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 6]
and al, 5
cmp al, 1
jne 0x1007005c
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x68]
push 0xffffffffffffffff
push ecx
call fcn.10012920
add esp, 8
test eax, eax
jne 0x1007005c
mov edx, dword [ebx]
and word [ebx + 6], 0xfffe
push eax
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.1002c840
add esp, 0xc
mov dword [ebx + 0x28], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x68], 0
xor edi, edi
mov dword [esp + 0x7c], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0xc
jne 0x1006ff9f
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
mov esi, dword [esp + 0xc]
push edx
push eax
push 0x37
call fcn.10035eb0
mov esi, dword [ebp + 8]
add esp, 0xc
mov eax, dword [esp + 0xc]
call fcn.100303a0
push eax
mov dword [esp + 0x108], eax
push ebx
mov eax, esi
mov dword [ebx + 0x18], 0xffffffff
mov dword [ebx + 0x1c], 0x7fffffff
call fcn.1003c640
add esp, 8
cmp dword [ebx + 8], edi
jne 0x1006ffec
cmp dword [esp + 0x7c], edi
jl 0x1006ffec
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0xc]
call fcn.10013840
or byte [esp + 0x80], 1
mov byte [eax], 0x38
test byte [ebx + 6], 1
je 0x100700b1
mov eax, dword [esi + 0x44]
push 0xfffffffffffffffa
mov edi, eax
push ecx
mov ecx, dword [ebp + 0xc]
add eax, 1
mov dword [esi + 0x44], eax
mov eax, dword [ecx]
push 0
push esi
xor ebx, ebx
mov dword [esp + 0x9c], edi
call fcn.1004f7c0
mov esi, dword [esp + 0x1c]
add esp, 0xc
push eax
push ebx
push ebx
push edi
push 0x37
call fcn.10035e40
mov ecx, esi
mov dword [esp + 0xa8], eax
mov eax, dword [ecx + 4]
add esp, 0x18
test eax, eax
je 0x1007004a
mov ecx, dword [ecx + 0x20]
lea edx, [ecx + ecx*4]
mov byte [eax + edx*4 - 0x11], 8
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [esp + 0x89], 3
xor edi, edi
jmp 0x100700b9
xor edi, edi
cmp dword [esp + 0x68], edi
je 0x1006ff73
push edi
mov edi, dword [esp + 0x6c]
push esi
xor ebx, ebx
mov eax, edi
call fcn.1004f7c0
mov ecx, dword [esi + 0x44]
push 0xfffffffffffffffa
push eax
lea edx, [ecx + 1]
mov dword [esi + 0x44], edx
mov eax, dword [edi]
mov esi, dword [esp + 0x1c]
push ebx
add eax, 2
push eax
push ecx
push 0x37
mov dword [esp + 0x90], ecx
call fcn.10035e40
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add esp, 0x20
mov dword [esp + 0x7c], eax
xor edi, edi
jmp 0x1006ff7b
mov byte [esp + 0x89], 0
cmp dword [esp + 0x40], edi
mov edx, dword [esp + 0x10]
jne 0x100701b1
cmp edx, edi
jne 0x100701b1
mov al, byte [esp + 0x88]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x68]
neg al
push 0
sbb eax, eax
and eax, 0x400
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
push esi
call fcn.1006eda0
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x100714aa
mov ax, word [edi + 0x20]
call fcn.100153d0
cmp edx, dword [ebx + 0x1c]
ja 0x10070122
jb 0x1007011c
cmp eax, dword [ebx + 0x18]
jae 0x10070122
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
cmp byte [esp + 0x88], 0
je 0x1007013a
mov al, byte [edi + 0x28]
test al, al
je 0x1007013a
mov byte [esp + 0x89], al
mov eax, dword [esp + 0x68]
test eax, eax
je 0x1007015a
movsx ecx, byte [edi + 0x24]
cmp ecx, dword [eax]
mov dword [esp + 0x6c], ecx
jne 0x1007015a
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x7c], 0
jl 0x10070179
test eax, eax
jne 0x10070179
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x7c]
push edx
call fcn.10035c00
mov ebx, dword [ebp + 0xc]
add esp, 4
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x30]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0xffffffffffffffff
push edx
push ebx
mov ebx, esi
call fcn.10051aa0
push edi
call fcn.10037100
add esp, 0x24
xor ebx, ebx
jmp 0x10070fb8
cmp edx, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x64], edi
je 0x10070211
mov ecx, dword [ebx]
mov eax, dword [ecx]
cmp eax, edi
mov ecx, dword [ecx + 4]
jle 0x100701dd
add ecx, 0x16
nop
mov word [ecx], di
sub eax, 1
add ecx, 0x18
cmp eax, edi
jg 0x100701d0
mov eax, dword [edx]
cmp eax, edi
mov ecx, dword [edx + 4]
jle 0x100701fd
add ecx, 0x16
lea esp, [esp]
mov word [ecx], di
sub eax, 1
add ecx, 0x18
cmp eax, edi
jg 0x100701f0
cmp dword [ebx + 0x1c], edi
mov eax, 0x64
ja 0x1007020c
cmp dword [ebx + 0x18], eax
jbe 0x1007021b
mov dword [ebx + 0x18], eax
jmp 0x10070218
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x1c], edi
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call fcn.10012920
add esp, 8
test eax, eax
jne 0x1007023a
mov dword [esp + 0x64], 1
mov eax, dword [esp + 0xc]
call fcn.100303a0
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xe8], ecx
mov ecx, dword [esi + 0x48]
add ecx, 1
cmp edi, eax
lea edx, [esp + 0x9c]
mov dword [esp + 0xe4], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0xe4], esi
mov dword [esp + 0xf0], edx
mov dword [esp + 0xac], ecx
je 0x100702c0
mov edx, dword [edi]
add edx, 1
mov dword [esp + 0xa8], edx
jmp 0x100702c7
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x44]
lea ecx, [esp + 0xe4]
push ecx
mov dword [esp + 0xb8], eax
call fcn.1003a290
mov ebx, dword [esp + 0x6c]
lea edx, [esp + 0xe8]
add esp, 4
push edx
call fcn.1003a290
mov ecx, dword [esp + 0x40]
xor edi, edi
add esp, 4
cmp ecx, edi
je 0x10070314
lea eax, [esp + 0xe4]
push eax
call fcn.10035080
add esp, 4
cmp dword [esp + 0xc8], edi
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0xc0], ecx
jle 0x10070371
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0xc4]
or byte [esp + 0x100], 8
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax]
mov ebx, dword [ecx + 0x14]
lea edx, [esp + 0xe4]
push edx
call fcn.1003a290
and byte [esp + 0x104], 0xf7
add dword [esp + 0x18], 0x10
add edi, 1
add esp, 4
cmp edi, dword [esp + 0xc8]
jl 0x1007032f
mov eax, dword [esi + 0x48]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xb0], eax
cmp byte [ecx + 0x40], 0
jne 0x100714aa
cmp dword [esp + 0x10], 0
je 0x10071025
mov eax, dword [esi + 0x44]
mov dword [esp + 0xa0], eax
add eax, 1
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x10]
push 0
push esi
xor ebx, ebx
call fcn.1004f7c0
mov edx, dword [esp + 0xb0]
mov esi, dword [esp + 0x14]
push 0xfffffffffffffffa
push eax
push ebx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb4]
push edx
push eax
push 0x38
call fcn.10035e40
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x48]
add eax, 1
lea esi, [eax + 1]
mov dword [esp + 0x78], eax
lea eax, [esi + 1]
mov dword [esp + 0x80], eax
mov dword [edi + 0x48], eax
mov eax, ebx
mov dword [esp + 0x40], esi
call fcn.100303a0
add dword [edi + 0x48], 1
mov ecx, dword [edi + 0x48]
mov dword [esp + 0xb8], eax
mov eax, ebx
mov dword [esp + 0x44], ecx
call fcn.100303a0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x68], eax
mov eax, dword [edi + 0x48]
lea edx, [eax + 1]
mov dword [esp + 0xa4], edx
mov edx, dword [ecx]
add eax, edx
mov dword [edi + 0x48], eax
mov ecx, dword [ecx]
push esi
lea edx, [eax + 1]
add ecx, eax
push 0
push 0x19
mov esi, ebx
mov dword [esp + 0x6c], edx
mov dword [edi + 0x48], ecx
call fcn.10035eb0
mov edx, dword [esp + 0x84]
add esp, 0x2c
push edx
push 0
push 0x19
call fcn.10035eb0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x90]
add esp, 0xc
lea edx, [eax + ecx - 1]
push edx
push eax
push 0
push 0x1c
call fcn.10030400
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x34]
push eax
push ecx
push 0x11
call fcn.10035eb0
add esp, 0x1c
push 0
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
neg edx
sbb edx, edx
and edx, 0x800
or edx, 0x100
push edx
mov edx, dword [esp + 0x40]
push 0
push eax
push ecx
push edx
push edi
call fcn.1006eda0
add esp, 0x1c
test eax, eax
mov dword [esp + 0x50], eax
je 0x100714a8
movsx ecx, byte [eax + 0x24]
mov edx, dword [esp + 0x10]
cmp ecx, dword [edx]
jne 0x100704f2
xor esi, esi
mov dword [esp + 0x14], esi
jmp 0x1007088a
cmp byte [esp + 0x88], 0
je 0x1007050a
mov eax, dword [ebp + 0xc]
test byte [eax + 6], 1
mov eax, str.DISTINCT
je 0x1007050f
mov eax, str.GROUP_BY
call fcn.10038a80
cmp dword [esp + 0xbc], 0
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx]
lea eax, [esi + 1]
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], eax
mov ecx, eax
mov dword [esp + 0x54], eax
jle 0x10070570
mov edx, dword [esp + 0xb8]
add edx, 0xc
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x28]
cmp dword [edx], eax
jl 0x10070560
add ecx, 1
add eax, 1
add dword [esp + 0x28], 0x18
sub dword [esp + 0x30], 1
jne 0x10070552
mov dword [esp + 0x54], ecx
mov eax, dword [edi + 0x38]
cmp ecx, eax
mov edx, dword [edi + 0x3c]
mov dword [esp + 0x4c], edx
jg 0x1007058a
add edx, ecx
sub eax, ecx
mov dword [edi + 0x3c], edx
mov dword [edi + 0x38], eax
jmp 0x10070599
mov eax, dword [edi + 0x48]
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x4c], edx
mov dword [edi + 0x48], eax
mov edx, edi
call fcn.1001a910
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
push eax
push edi
xor cl, cl
call fcn.1003ea10
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xa8]
add ecx, esi
push ecx
push edx
push 0x44
mov esi, ebx
call fcn.10035eb0
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp dword [esp + 0xbc], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 0
jle 0x10070677
mov ecx, dword [esp + 0x4c]
mov edx, eax
mov eax, dword [esp + 0xb8]
add ecx, edx
xor esi, esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x28]
cmp dword [eax + esi + 0xc], ecx
jl 0x1007065c
mov edx, dword [esp + 0x30]
mov ecx, dword [eax + esi + 4]
push 0
push edx
mov edx, dword [eax + esi + 8]
mov eax, dword [eax + esi]
push ecx
push edx
push eax
mov eax, edi
call fcn.10058ae0
add esp, 0x14
cmp dword [esp + 0x30], eax
je 0x10070648
mov ecx, dword [esp + 0x30]
push ecx
push eax
push 0x22
mov esi, ebx
call fcn.10035eb0
mov esi, dword [esp + 0x28]
add esp, 0xc
mov eax, 1
add dword [esp + 0x28], eax
add dword [esp + 0x30], eax
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x18]
add ecx, 1
add esi, 0x18
cmp ecx, dword [esp + 0xbc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
jl 0x10070603
mov al, byte [edi + 0x13]
test al, al
jne 0x1007068b
add dword [edi + 0x48], 1
mov edx, dword [edi + 0x48]
mov dword [esp + 0x18], edx
jmp 0x1007069d
sub al, 1
movzx edx, al
mov byte [edi + 0x13], al
mov eax, dword [edi + edx*4 + 0x18]
mov dword [esp + 0x18], eax
mov edx, eax
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x54], esi
jg 0x100706b9
push ebx
call fcn.1002cfc0
mov edx, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x100706e9
mov ecx, dword [ebx + 4]
add dword [ebx + 0x20], 1
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x54], esi
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x1c], eax
jg 0x10070710
push ebx
call fcn.1002cfc0
mov edx, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x10070739
mov ecx, dword [ebx + 4]
add dword [ebx + 0x20], 1
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x6a
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
test edx, edx
je 0x10070764
cmp byte [edi + 0x13], 8
jae 0x10070764
xor eax, eax
lea ecx, [edi + 0x74]
cmp dword [ecx + 0xc], edx
je 0x100707c1
add eax, 1
add ecx, 0x14
cmp eax, 0xa
jl 0x10070748
movzx eax, byte [edi + 0x13]
mov dword [edi + eax*4 + 0x18], edx
add byte [edi + 0x13], 1
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
push ecx
mov esi, edi
call fcn.1001a9b0
mov edx, dword [esp + 0x58]
add esp, 4
cmp edx, dword [edi + 0x38]
jle 0x1007078c
mov ecx, dword [esp + 0x4c]
mov eax, edx
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
mov edx, dword [esp + 0x50]
push edx
call fcn.10037100
mov eax, dword [edi + 0x44]
mov dword [esp + 0x34], eax
mov dword [esp + 0xa8], eax
add eax, 1
mov dword [edi + 0x44], eax
mov al, byte [edi + 0x13]
add esp, 4
test al, al
jne 0x100707c7
add dword [edi + 0x48], 1
mov eax, dword [edi + 0x48]
mov dword [esp + 0x28], eax
jmp 0x100707d7
mov byte [ecx + 6], 1
jmp 0x10070764
sub al, 1
movzx ecx, al
mov byte [edi + 0x13], al
mov edx, dword [edi + ecx*4 + 0x18]
mov dword [esp + 0x28], edx
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x54], esi
jg 0x100707ef
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070823
mov edx, dword [ebx + 4]
add dword [ebx + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov byte [eax], 0x39
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x54], esi
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x1c], edx
jg 0x10070846
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070873
mov edx, dword [ebx + 4]
add dword [ebx + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x67
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edx, edi
mov byte [esp + 0x9d], 1
call fcn.1001a910
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x64], 0
je 0x100708c1
mov ecx, dword [esp + 0x34]
test byte [ecx + 0x3c], 4
jne 0x100708c1
test esi, esi
jne 0x100708a5
cmp byte [eax + 0x25], 0
je 0x100708c1
push ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x6c], 0
call fcn.10035c00
mov ebx, dword [esp + 0x10]
add esp, 4
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x64], edx
mov edx, dword [ebp + 8]
call fcn.1001a910
test esi, esi
je 0x100708ed
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xa0]
push eax
push ecx
push 0x5f
mov esi, ebx
call fcn.10035eb0
add esp, 0xc
mov edx, dword [esp + 0x10]
xor esi, esi
cmp dword [edx], esi
jle 0x100709a3
jmp 0x10070900
cmp dword [esp + 0x14], 0
je 0x1007096a
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x54], edi
jg 0x1007091f
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070952
mov edx, dword [ebx + 4]
add dword [ebx + 0x20], 1
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov dword [eax + 4], ecx
lea ecx, [esi + edx]
mov byte [eax], 0x2e
mov byte [eax + 3], 0
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
test esi, esi
jne 0x10070994
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x10070994
mov eax, dword [ebx + 0x20]
lea edx, [eax + eax*4]
mov byte [ecx + edx*4 - 0x11], 0x20
jmp 0x10070994
mov eax, dword [esp + 0x40]
lea ecx, [esi + eax]
mov eax, dword [esp + 0x10]
push ecx
mov byte [esp + 0xa0], 1
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
lea edx, [esi + esi*2]
mov edx, dword [ecx + edx*8]
push edx
push eax
call fcn.1007f6d0
add esp, 0xc
mov ecx, dword [esp + 0x10]
add esi, 1
cmp esi, dword [ecx]
jl 0x10070900
mov eax, dword [esp + 0x94]
test eax, eax
je 0x100709b1
add dword [eax], 1
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x54], esi
mov edx, dword [esp + 0x10]
mov edi, dword [edx]
jg 0x100709d6
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x100709d6
mov eax, 1
jmp 0x10070a0b
mov edx, dword [ebx + 4]
add dword [ebx + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x40]
mov byte [eax], 0x29
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, esi
mov ecx, dword [ebx + 4]
test ecx, ecx
mov edi, dword [ebx]
je 0x10070a57
cmp byte [edi + 0x40], 0
jne 0x10070a57
test eax, eax
jge 0x10070a24
mov eax, dword [ebx + 0x20]
sub eax, 1
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.10030230
mov eax, dword [esp + 0x94]
xor edx, edx
cmp eax, edx
mov dword [esi + 0x10], edx
jne 0x10070a4e
mov dword [esi + 0x10], edx
mov byte [esi + 1], dl
jmp 0x10070a6a
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x10070a6a
mov ecx, dword [esp + 0x94]
mov eax, 0xfffffffa
call fcn.10030230
xor edx, edx
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x54], esi
mov dword [esp + 0x1c], esi
jg 0x10070a88
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070aaf
xor edx, edx
mov ecx, dword [ebx + 4]
add dword [ebx + 0x20], 1
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
lea ecx, [esi + 1]
mov byte [eax], 0x2a
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x40]
mov edi, dword [ebp + 8]
push eax
push ecx
call fcn.100350d0
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
add esp, 8
cmp dword [edx + 0x54], esi
jg 0x10070ae5
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070b15
mov ecx, dword [ebx + 4]
add dword [ebx + 0x20], 1
mov edx, dword [esp + 0x60]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x98]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x11
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
xor edi, edi
cmp dword [edx + 0x54], esi
jg 0x10070b2f
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070b5b
mov ecx, dword [ebx + 4]
add dword [ebx + 0x20], 1
mov edx, dword [esp + 0x20]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x5c]
mov byte [eax], 0x86
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x54], esi
jg 0x10070b73
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070b9f
mov ecx, dword [ebx + 4]
add dword [ebx + 0x20], 1
mov edx, dword [esp + 0x24]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x48]
mov byte [eax], 0x11
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebx + 0x20]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x10070bb4
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
sub edx, 1
lea ecx, [esp + 0x9c]
mov dword [eax + 0x58], edx
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.1004f170
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add esp, 8
cmp dword [eax + 0x54], esi
jg 0x10070bec
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070c18
mov eax, dword [ebx + 4]
mov ecx, 1
add dword [ebx + 0x20], ecx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov byte [eax], 0x19
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
cmp dword [esp + 0x14], edi
je 0x10070c6f
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x54], esi
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x2c], edx
jg 0x10070c41
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070cc0
mov edx, dword [ebx + 4]
add dword [ebx + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x64]
mov byte [eax], 5
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
jmp 0x10070cc0
mov eax, dword [esp + 0x50]
push eax
call fcn.10037100
mov esi, dword [ebx + 4]
add esp, 4
cmp esi, edi
je 0x10070cc0
mov eax, dword [esp + 0x2c]
mov edi, dword [ebx]
lea ecx, [eax + eax*4]
movsx eax, byte [esi + ecx*4 + 1]
lea esi, [esi + ecx*4]
mov ecx, dword [esi + 0x10]
call fcn.10030230
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov byte [esi], 0x9c
mov eax, dword [ebx + 0x20]
add eax, 0xffffffff
xor edi, edi
cmp dword [esp + 0x2c], eax
jne 0x10070cc0
mov dword [ebx + 0x20], eax
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x54], esi
jg 0x10070cd8
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070d07
mov ecx, dword [ebx + 4]
add dword [ebx + 0x20], 1
mov edx, dword [esp + 0x60]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x98]
mov byte [eax], 0x11
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x54], esi
jg 0x10070d1f
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070d47
mov ecx, dword [ebx + 4]
add dword [ebx + 0x20], 1
mov edx, dword [esp + 0x5c]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x10
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x54], esi
mov dword [esp + 0x2c], esi
jg 0x10070d63
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070d8f
mov eax, dword [ebx + 4]
mov ecx, 1
add dword [ebx + 0x20], ecx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov byte [eax], 0x19
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x54], esi
jg 0x10070da7
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070dcf
mov ecx, dword [ebx + 4]
add dword [ebx + 0x20], 1
mov edx, dword [esp + 0x60]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x12
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov ecx, dword [ebx + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x98]
js 0x10070deb
mov edx, dword [ecx + 0x70]
cmp edx, edi
je 0x10070deb
mov esi, dword [ebx + 0x20]
mov dword [edx + eax*4], esi
mov eax, dword [ebx + 0x20]
sub eax, 1
mov dword [ecx + 0x58], eax
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x54], esi
jg 0x10070e0c
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070e37
mov eax, dword [ebx + 4]
add dword [ebx + 0x20], 1
mov ecx, dword [esp + 0x58]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
lea edx, [esi + 2]
mov byte [eax], 0x86
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x54], eax
mov dword [esp + 0x20], eax
jg 0x10070e57
push ebx
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070e7f
mov eax, dword [esp + 0x20]
add dword [ebx + 0x20], 1
mov ecx, dword [esp + 0x60]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0x12
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov ebx, dword [ebp + 8]
lea edx, [esp + 0x9c]
push edx
mov eax, ebx
call fcn.10038310
mov eax, dword [esp + 0x40]
add esp, 4
push 8
add esi, 1
push esi
push eax
push ebx
call fcn.1007db30
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebp + 0x10]
push ecx
push esi
push edx
lea eax, [esp + 0xa4]
push eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
lea ecx, [esp + 0x88]
push ecx
push 0xffffffffffffffff
push edx
push eax
call fcn.10051aa0
mov esi, dword [esp + 0x3c]
mov edi, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
add esp, 0x30
cmp dword [eax + 0x54], edi
jg 0x10070eec
push esi
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070f16
mov edx, dword [esi + 4]
add dword [esi + 0x20], 1
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x60]
xor ebx, ebx
mov byte [eax], 0x12
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x10070f18
xor ebx, ebx
mov ecx, dword [esi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x48]
js 0x10070f31
mov edx, dword [ecx + 0x70]
cmp edx, ebx
je 0x10070f31
mov edi, dword [esi + 0x20]
mov dword [edx + eax*4], edi
mov edx, dword [esi + 0x20]
lea eax, [esp + 0x9c]
sub edx, 1
push eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x58], edx
call fcn.10051780
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
add esp, 4
cmp dword [ecx + 0x54], edi
jg 0x10070f65
push esi
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10070f8b
mov eax, dword [esi + 4]
add dword [esi + 0x20], 1
mov ecx, dword [esp + 0x24]
lea edx, [edi + edi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x12
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0xc]
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x5c]
js 0x10070fab
mov edx, dword [ecx + 0x70]
cmp edx, ebx
je 0x10070fab
mov edi, dword [edi + 0x20]
mov dword [edx + eax*4], edi
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x20]
sub eax, 1
mov dword [ecx + 0x58], eax
cmp byte [esp + 0x89], 3
jne 0x1007136c
cmp byte [esi + 0x1c2], 2
jne 0x1007136c
mov edi, dword [esi + 8]
mov esi, dword [esi]
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
call fcn.10030b20
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0x20]
mov edx, dword [ecx + 0x1d0]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x18]
add esp, 8
cmp dword [eax + 0x54], esi
mov dword [esp + 0x2c], edx
jg 0x100712eb
push edi
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x100712eb
mov esi, 1
jmp 0x10071311
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x9c]
mov dword [esp + 0x48], 0
call fcn.10011ed0
mov edi, eax
test edi, edi
mov dword [esp + 0x58], edi
je 0x100711a0
mov ebx, dword [ebp + 8]
mov esi, dword [edi + 0x44]
mov ecx, dword [ebx]
call fcn.100121a0
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x2c], ecx
add ecx, 1
mov dword [ebx + 0x44], ecx
mov edx, dword [edi + 0x20]
xor esi, esi
mov dword [esp + 0x1c], edx
mov ecx, eax
mov edx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
call fcn.1006ccc0
mov eax, dword [edi]
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0x20]
push eax
push esi
push ecx
push edx
mov eax, ebx
call fcn.1002f210
add esp, 0x10
test byte [edi + 0x2c], 0x20
je 0x100710ac
mov eax, edi
call fcn.100125d0
mov esi, eax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x100710e0
test byte [eax + 0x38], 4
jne 0x100710d5
movzx ecx, word [eax + 0x30]
cmp cx, word [edi + 0x2a]
jge 0x100710d5
cmp dword [eax + 0x24], 0
jne 0x100710d5
test esi, esi
je 0x100710d3
cmp cx, word [esi + 0x30]
jge 0x100710d5
mov esi, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x100710b3
mov dword [esp + 0x24], esi
test esi, esi
je 0x100710f7
mov edi, dword [esi + 0x2c]
push esi
push ebx
call fcn.1004e110
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x100710fb
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0xc]
push 1
push eax
push edi
push ecx
push 0x34
mov eax, ebx
call fcn.10035ca0
add esp, 0x14
cmp dword [esp + 0x14], 0
je 0x10071162
mov ecx, dword [ebx + 4]
test ecx, ecx
mov edi, dword [ebx]
je 0x10071154
cmp byte [edi + 0x40], 0
jne 0x10071154
mov eax, dword [ebx + 0x20]
sub eax, 1
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.10030230
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x10071162
mov ecx, dword [esp + 0x14]
mov eax, 0xfffffffa
call fcn.10030230
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx + 8]
mov edi, dword [esp + 0x2c]
push edx
push edi
push 0x31
mov esi, ebx
call fcn.10035eb0
add esp, 0xc
push edi
push 0x3a
call fcn.10035f10
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x60]
mov edi, dword [ebp + 8]
add esp, 8
call fcn.100382b0
mov esi, edi
jmp 0x1007129e
mov eax, dword [ebp + 0xc]
xor edi, edi
xor bl, bl
cmp dword [eax + 0x2c], 0
mov dword [esp + 0x24], edi
jne 0x10071209
lea edi, [esp + 0x24]
lea eax, [esp + 0x9c]
call fcn.10019b30
mov bl, al
test bl, bl
je 0x10071205
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
push 0
push ecx
push edx
call fcn.1002c840
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x48], edi
je 0x10071209
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x40], 0
jne 0x10071209
mov edx, dword [edi + 4]
cmp bl, 1
setne cl
mov byte [edx + 0xc], cl
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov byte [ecx], 0x9a
jmp 0x10071209
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x9c]
push edx
mov eax, esi
call fcn.10051780
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
movzx ax, bl
add esp, 4
push 0
push eax
push 0
push edi
push ecx
push edx
push esi
call fcn.1006eda0
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x10071255
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
push eax
push ecx
call fcn.1002f840
add esp, 8
jmp 0x100714aa
lea edx, [esp + 0x9c]
push edx
push esi
call fcn.1004f170
add esp, 8
cmp byte [edi + 0x24], 0
jle 0x10071283
mov eax, dword [edi + 0x34]
mov esi, dword [esp + 0xc]
push eax
push 0
push 0x10
call fcn.10035eb0
mov esi, dword [ebp + 8]
add esp, 0xc
push edi
call fcn.10037100
lea ecx, [esp + 0xa0]
add esp, 4
push ecx
mov eax, esi
call fcn.10038310
add esp, 4
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
push 8
push edi
push edx
push esi
mov dword [esp + 0x78], 0
call fcn.1007db30
mov eax, dword [ebp + 0x10]
push edi
push edi
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push 0
push 0
push 0xffffffffffffffff
push ecx
push eax
mov ebx, esi
call fcn.10051aa0
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x64]
push edx
push eax
call fcn.1002f840
add esp, 0x38
xor ebx, ebx
jmp 0x10070f8e
mov edx, dword [edi + 4]
add dword [edi + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
mov byte [eax], 0x9d
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [edi + 4]
cmp ecx, ebx
mov edx, dword [edi]
mov eax, esi
je 0x1007135b
cmp byte [edx + 0x40], bl
jne 0x1007135b
cmp esi, ebx
jge 0x1007132b
mov eax, dword [edi + 0x20]
sub eax, 1
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
mov edi, edx
call fcn.10030230
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esi + 0x10], ebx
jne 0x10071352
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x10071369
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xff
jmp 0x10071369
mov ecx, dword [esp + 0x20]
or eax, 0xffffffff
mov edi, edx
call fcn.10030230
mov esi, dword [ebp + 8]
cmp dword [esp + 0x68], ebx
je 0x10071475
cmp dword [esp + 0x6c], ebx
mov eax, str.RIGHT_PART_OF_ORDER_BY
jg 0x10071386
mov eax, str.ORDER_BY
cmp byte [esi + 0x1c2], 2
jne 0x10071457
mov edi, dword [esi + 8]
mov esi, dword [esi]
push eax
push str.USE_TEMP_B_TREE_FOR__s
call fcn.10030b20
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0x20]
mov edx, dword [ecx + 0x1d0]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x18]
add esp, 8
cmp dword [eax + 0x54], esi
mov dword [esp + 0x2c], edx
jg 0x100713d6
push edi
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x100713d6
mov esi, 1
jmp 0x100713fc
mov edx, dword [edi + 4]
add dword [edi + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
mov byte [eax], 0x9d
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [edi + 4]
cmp ecx, ebx
mov edx, dword [edi]
mov eax, esi
je 0x10071446
cmp byte [edx + 0x40], bl
jne 0x10071446
cmp esi, ebx
jge 0x10071416
mov eax, dword [edi + 0x20]
sub eax, 1
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
mov edi, edx
call fcn.10030230
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esi + 0x10], ebx
jne 0x1007143d
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x10071454
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xff
jmp 0x10071454
mov ecx, dword [esp + 0x20]
or eax, 0xffffffff
mov edi, edx
call fcn.10030230
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x44]
mov eax, dword [edx]
mov edx, dword [ebp + 0xc]
push ecx
push eax
lea ecx, [esp + 0x70]
push ecx
push edx
mov eax, esi
call fcn.1003c7c0
add esp, 0x10
mov edi, dword [esp + 0xc]
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x104]
js 0x10071495
mov edx, dword [ecx + 0x70]
cmp edx, ebx
je 0x10071495
mov edi, dword [edi + 0x20]
mov dword [edx + eax*4], edi
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x20]
sub edx, 1
mov dword [ecx + 0x58], edx
mov dword [esp + 0x1c], ebx
jmp 0x100714aa
mov esi, edi
mov edi, dword [esp + 0x1c]
test edi, edi
mov eax, dword [esp + 0xcc]
mov dword [esi + 0x1d0], eax
jne 0x100714da
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 9
jne 0x100714da
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
push edx
push eax
push esi
call fcn.100465b0
add esp, 0xc
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0xb8]
mov ecx, esi
call fcn.10021de0
mov eax, dword [esp + 0xc4]
mov ecx, esi
call fcn.10021de0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret