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

Disassembly:
sub esp, 0x80
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
push ebx
push ebp
mov ebp, dword [eax + 8]
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x98]
mov eax, ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x18], ecx
call fcn.100303a0
mov dword [esp + 0x28], eax
mov eax, ebp
call fcn.100303a0
mov esi, dword [edi + 0x30]
mov edx, dword [edi + 0x34]
mov ecx, dword [esi]
mov dword [esp + 0x3c], eax
movzx eax, byte [edi + 4]
cmp eax, 0x74
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], ecx
je 0x1005423c
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x40], bl
mov dword [esp + 0x24], 1
jne 0x1005423c
mov edx, ecx
lea eax, [edx + edx*2]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x50], eax
jmp 0x10054184
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax]
jg 0x10054238
mov ecx, dword [esi + 4]
xor eax, eax
cmp edx, ebx
jle 0x100541b5
add ecx, 0x14
mov edi, edi
movzx edx, word [ecx]
cmp edx, dword [esp + 0x24]
je 0x100541b5
add eax, 1
add ecx, 0x18
cmp eax, dword [esp + 0x14]
jl 0x100541a0
cmp eax, dword [esp + 0x14]
jne 0x10054226
mov ecx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x64]
push eax
push 0x84
push ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call fcn.10029ac0
add esp, 0x10
cmp eax, ebx
je 0x1005429c
mov edx, dword [esp + 0x24]
or dword [eax + 4], 0x400
mov dword [eax + 8], edx
push eax
mov eax, dword [esp + 0x98]
mov ecx, esi
call fcn.1002f8b0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10054226
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 4]
mov dx, word [esp + 0x24]
add dword [esp + 0x14], 1
mov word [ecx + eax + 0x14], dx
add eax, 0x18
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
add dword [esp + 0x24], 1
cmp byte [eax + 0x40], bl
je 0x10054180
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add ecx, ecx
add ecx, ecx
call fcn.10027660
cmp eax, ebx
mov dword [esp + 0x4c], eax
je 0x100542ac
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 4]
xor eax, eax
cmp dword [esp + 0x14], ebx
jle 0x10054285
mov edx, dword [esp + 0x4c]
add ecx, 0x14
jmp 0x10054270
movzx esi, word [ecx]
sub esi, 1
mov dword [edx + eax*4], esi
add eax, 1
add ecx, 0x18
cmp eax, dword [esp + 0x14]
jl 0x10054270
mov esi, dword [esp + 0x94]
push edi
push esi
call fcn.100518b0
add esp, 8
mov dword [esp + 0x50], eax
jmp 0x100542b7
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov esi, dword [esp + 0x94]
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x2c]
push ebx
mov dword [edi + 0x30], eax
mov edx, dword [esi]
push eax
push edx
call fcn.1002c840
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp dword [esp + 0x20], 0x74
mov dword [ecx + 0x30], eax
jne 0x100542e2
mov dword [esp + 0x38], ebx
jmp 0x1005447a
mov edx, dword [edi]
mov ecx, dword [edx]
mov eax, dword [esi + 0x48]
lea edx, [eax + 1]
lea eax, [eax + ecx + 1]
mov dword [esi + 0x48], eax
mov esi, dword [ebp + 0x20]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], esi
mov dword [esp + 0x2c], ecx
jg 0x10054317
push ebp
call fcn.1002cfc0
mov ecx, dword [esp + 0x30]
add esp, 4
test eax, eax
jne 0x1005433d
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x38]
mov byte [eax], 0x19
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
lea esi, [ecx + ecx*4 + 0x1d]
lea eax, [esi - 1]
cmp eax, 0x7ffffefe
mov dword [esp + 0x54], esi
ja 0x100543e7
cmp dword [0x100c6450], ebx
je 0x100543d5
mov eax, dword [0x100c86a8]
cmp eax, ebx
je 0x1005436e
push eax
call dword [0x100c64a4]
add esp, 4
lea ebx, [esp + 0x24]
mov eax, esi
call fcn.10021e60
mov eax, dword [0x100c86a8]
test eax, eax
je 0x1005438c
push eax
call dword [0x100c64ac]
add esp, 4
mov esi, dword [esp + 0x24]
xor ebx, ebx
cmp esi, ebx
je 0x100543ed
mov ecx, dword [esp + 0x54]
push ecx
push ebx
push esi
call fcn.10003bb0
mov eax, dword [esp + 0x38]
mov word [esi + 6], ax
lea edx, [esi + eax*4 + 0x18]
mov eax, dword [esp + 0x24]
mov dword [esi + 0x10], edx
mov word [esi + 8], 1
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
mov cl, byte [edx + 0x4d]
add esp, 0xc
mov byte [esi + 4], cl
mov dword [esi + 0xc], eax
mov dword [esi], 1
jmp 0x100543f5
push esi
call dword [0x100c6474]
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
jmp 0x10054392
xor esi, esi
mov dword [esp + 0x24], esi
mov edx, dword [esp + 0x18]
mov byte [edx + 0x40], 1
cmp esi, ebx
mov dword [esp + 0x54], esi
je 0x1005447a
xor esi, esi
cmp dword [esp + 0x2c], ebx
jle 0x1005447a
mov eax, dword [esp + 0x24]
add eax, 0x14
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x34]
cmp eax, ebx
je 0x10054502
mov ecx, dword [esp + 0x94]
push esi
push eax
push ecx
call fcn.1004f5c0
add esp, 0xc
cmp eax, ebx
jne 0x10054455
mov ecx, dword [edi]
cmp esi, dword [ecx]
jge 0x10054455
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x34]
mov ecx, dword [edx + ecx]
push eax
call fcn.1004e5b0
add esp, 4
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
add dword [esp + 0x34], 0x18
mov dword [ecx], eax
mov eax, dword [edx + 0x10]
mov byte [esi + eax], bl
add esi, 1
add ecx, 4
cmp esi, dword [esp + 0x2c]
mov dword [esp + 0x44], ecx
jl 0x10054414
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x94]
push str.ORDER
mov dword [edi + 0x34], ebx
mov dword [ecx + 0x38], ebx
mov eax, dword [edi + 0x30]
push edi
push esi
call fcn.1003ee70
mov edx, dword [esp + 0x28]
add esp, 0xc
cmp dword [edx + 0x34], ebx
jne 0x100544ba
mov eax, edx
push str.ORDER
push eax
mov eax, dword [eax + 0x30]
push esi
call fcn.1003ee70
add esp, 0xc
mov eax, dword [esp + 0x28]
push eax
push edi
mov eax, esi
call fcn.1003c640
add esp, 8
cmp dword [edi + 8], ebx
je 0x10054596
cmp dword [esp + 0x20], 0x74
jne 0x10054596
mov eax, dword [esi + 0x48]
add eax, 1
mov dword [esp + 0x34], eax
add eax, 1
mov dword [esi + 0x48], eax
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x10054509
add eax, 1
mov dword [esp + 0x44], eax
jmp 0x10054510
xor eax, eax
jmp 0x10054435
mov ecx, dword [edi + 8]
mov dword [esp + 0x44], ecx
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], esi
jg 0x10054528
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10054552
mov ecx, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov edx, dword [esp + 0x44]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x34]
mov byte [eax], 0x21
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], esi
jg 0x1005456a
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x1005459e
mov ecx, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov edx, dword [esp + 0x34]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x40]
mov byte [eax], 0x21
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x1005459e
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], ebx
mov edx, dword [edi + 0x3c]
mov esi, dword [esp + 0x18]
push edx
push esi
call fcn.1002cb00
mov eax, dword [edi + 0x40]
push eax
push esi
mov dword [edi + 0x3c], ebx
call fcn.1002cb00
mov esi, dword [esp + 0xa4]
mov dword [edi + 0x40], ebx
mov eax, dword [esi + 0x48]
add eax, 1
lea ecx, [eax + 1]
lea edx, [ecx + 2]
mov dword [esi + 0x48], edx
mov dword [esp + 0x54], edx
mov dl, 0xd
mov byte [esp + 0x8c], dl
mov dword [esp + 0x90], eax
mov byte [esp + 0x8d], bl
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov byte [esp + 0x78], dl
mov dword [esp + 0x7c], ecx
mov byte [esp + 0x79], bl
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov esi, dword [ebp + 0x20]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x18]
add esp, 0x10
cmp dword [ecx + 0x54], esi
mov dword [esp + 0x2c], eax
jg 0x10054642
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x10054642
mov dword [esp + 0x30], 1
jmp 0x1005466f
mov eax, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov ecx, dword [esp + 0x2c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
lea ecx, [esi + 1]
mov byte [eax], 0x14
mov byte [eax + 3], bl
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x30], esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x94]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0x1d4]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x7c]
push edx
push ecx
push eax
call fcn.1006fac0
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp dword [eax + 0x54], esi
jg 0x100546b2
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x100546d8
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
mov byte [eax], 0x15
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 eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jbe 0x100546ed
lea edx, [ecx + ecx*4]
mov ecx, dword [ebp + 4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
sub edx, 1
mov dword [eax + 0x58], edx
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], esi
jg 0x1005471b
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x1005471b
mov dword [esp + 0x30], 1
jmp 0x10054748
mov eax, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov ecx, dword [esp + 0x24]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
lea ecx, [esi + 1]
mov byte [eax], 0x14
mov byte [eax + 3], bl
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x30], esi
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x40]
mov esi, dword [edi + 8]
mov dword [esp + 0x34], edx
lea edx, [esp + 0x68]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x94]
push edx
mov dword [edi + 0xc], ebx
mov ecx, dword [eax + 0x1d4]
push edi
push eax
mov dword [esp + 0x68], ecx
call fcn.1006fac0
mov eax, dword [esp + 0x40]
mov dword [edi + 8], esi
mov dword [edi + 0xc], eax
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
add esp, 0xc
cmp dword [ecx + 0x54], esi
jg 0x1005479e
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x100547c4
mov eax, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov ecx, dword [esp + 0x24]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x15
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 edx, dword [esp + 0x28]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x9c]
push edx
push esi
push eax
mov eax, dword [esp + 0x30]
add eax, 1
push eax
mov eax, dword [esp + 0xa4]
push ecx
lea edx, [esp + 0x90]
push edx
push edi
call fcn.1003c2b0
add esp, 0x1c
cmp dword [esp + 0x20], 0x74
mov dword [esp + 0x54], eax
je 0x1005480d
cmp dword [esp + 0x20], 0x73
jne 0x1005483e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0xa0]
push esi
push ecx
push edx
push eax
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x7c]
push ecx
push edi
call fcn.1003c2b0
add esp, 0x1c
mov dword [esp + 0x48], eax
cmp esi, ebx
je 0x10054850
add dword [esi], 0xffffffff
jne 0x10054850
push esi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, 0x75
je 0x1005495b
cmp eax, 0x76
je 0x1005495b
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], esi
jg 0x10054888
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x10054888
mov dword [esp + 0x40], 1
jmp 0x100548b6
mov ecx, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov edx, dword [esp + 0x44]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x48]
mov byte [eax], 0x11
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x40], esi
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], esi
mov edx, dword [esp + 0x40]
mov dword [esp + 0x38], edx
jg 0x100548dd
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x100548dd
mov esi, 1
jmp 0x10054907
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov byte [eax], 0x16
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x34], esi
mov esi, dword [ebp + 0x20]
cmp dword [eax + 0x54], esi
jg 0x10054923
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10054949
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x40]
mov byte [eax], 0x10
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x18]
add dword [edi + 0x18], edx
mov ecx, dword [eax + 0x1c]
adc dword [edi + 0x1c], ecx
jmp 0x1005496b
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x20], 0x76
jne 0x100549a3
mov edx, dword [esp + 0x38]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x40], edx
mov edx, dword [edi + 0x1c]
cmp edx, eax
jb 0x10054a71
ja 0x10054998
mov edx, dword [edi + 0x18]
cmp edx, ecx
jbe 0x10054a71
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], eax
jmp 0x10054a71
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], edi
jg 0x100549c2
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x100549c2
mov esi, 1
jmp 0x100549f1
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x24]
add ecx, 1
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov byte [eax], 0x11
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, edi
mov edi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], edi
mov dword [esp + 0x40], esi
jg 0x10054a0d
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10054a37
mov ecx, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov edx, dword [esp + 0x2c]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x28]
mov byte [eax], 0x16
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], edi
jg 0x10054a4f
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10054a71
mov ecx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x10
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], edi
jg 0x10054a90
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x10054a90
mov esi, 1
jmp 0x10054abf
mov ecx, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov edx, dword [esp + 0x54]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x24]
add ecx, 1
mov byte [eax], 0x11
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, edi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], edi
mov dword [esp + 0x54], esi
jg 0x10054adb
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10054b05
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov byte [eax], 0x16
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], edi
jg 0x10054b1d
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10054b43
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x3c]
mov byte [eax], 0x10
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x20]
cmp eax, 0x74
jne 0x10054b55
mov dword [esp + 0x38], esi
jmp 0x10054bf5
cmp eax, 0x76
jne 0x10054b6a
mov dword [esp + 0x38], esi
add esi, 1
mov dword [esp + 0x54], esi
jmp 0x10054bf5
mov edi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], edi
jg 0x10054b89
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x10054b89
mov edi, 1
jmp 0x10054bb3
mov ecx, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov edx, dword [esp + 0x2c]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x38]
mov byte [eax], 0x16
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x38], edi
mov edi, dword [ebp + 0x20]
cmp dword [edx + 0x54], edi
jg 0x10054bcf
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10054bf5
mov ecx, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov edx, dword [esp + 0x3c]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x10
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x20]
cmp eax, 0x74
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x58], edi
je 0x10054c0a
cmp eax, 0x73
jne 0x10054c49
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], edi
jg 0x10054c1f
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10054c49
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov byte [eax], 0x11
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], edi
jg 0x10054c61
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10054c8b
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov byte [eax], 0x16
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], edi
jg 0x10054ca3
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10054cc9
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x3c]
mov byte [eax], 0x10
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jbe 0x10054cde
lea edx, [ecx + ecx*4]
mov ecx, dword [ebp + 4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
sub edx, 1
mov dword [eax + 0x58], edx
mov edi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], edi
jg 0x10054d02
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10054d2c
mov eax, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov ecx, dword [esp + 0x2c]
lea edx, [edi + edi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x34]
mov byte [eax], 0x16
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], edi
jg 0x10054d44
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10054d6e
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov byte [eax], 0x16
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [ebp + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x3c]
js 0x10054d87
mov edx, dword [ecx + 0x70]
cmp edx, ebx
je 0x10054d87
mov esi, dword [ebp + 0x20]
mov dword [edx + eax*4], esi
mov eax, dword [ebp + 0x20]
sub eax, 1
mov dword [ecx + 0x58], eax
mov edi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], edi
jg 0x10054daf
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x10054daf
mov eax, 1
jmp 0x10054dd3
mov eax, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea edx, [edi + edi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x28
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, edi
mov ecx, dword [ebp + 4]
cmp ecx, ebx
mov edi, dword [ebp]
je 0x10054e1b
cmp byte [edi + 0x40], bl
jne 0x10054e1b
cmp eax, ebx
jge 0x10054dec
mov eax, dword [ebp + 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 + 0x4c]
cmp eax, ebx
mov dword [esi + 0x10], ebx
jne 0x10054e12
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x10054e29
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xf1
jmp 0x10054e29
mov ecx, dword [esp + 0x4c]
mov eax, 0xfffffff1
call fcn.10030230
mov edi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], edi
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x4c], eax
jg 0x10054e57
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x10054e57
mov edi, 1
jmp 0x10054e81
mov eax, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov ecx, dword [esp + 0x4c]
lea edx, [edi + edi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x14]
mov byte [eax], 0x29
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [ebp + 4]
cmp ecx, ebx
mov edx, dword [ebp]
mov eax, edi
je 0x10054ecc
cmp byte [edx + 0x40], bl
jne 0x10054ecc
cmp edi, ebx
jge 0x10054e9c
mov eax, dword [ebp + 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 + 0x50]
cmp eax, ebx
mov dword [esi + 0x10], ebx
jne 0x10054ec3
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x10054edc
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x10054edc
mov ecx, dword [esp + 0x50]
mov eax, 0xfffffffa
mov edi, edx
call fcn.10030230
mov ecx, dword [ebp + 4]
cmp ecx, ebx
je 0x10054eee
mov eax, dword [ebp + 0x20]
lea edx, [eax + eax*4]
mov byte [ecx + edx*4 - 0x11], 1
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], esi
jg 0x10054f06
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10054f34
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov byte [eax], 0x2a
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [ebp + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x28]
js 0x10054f4d
mov edx, dword [ecx + 0x70]
cmp edx, ebx
je 0x10054f4d
mov esi, dword [ebp + 0x20]
mov dword [edx + eax*4], esi
mov edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x9c]
sub edx, 1
mov dword [ecx + 0x58], edx
cmp byte [eax], 9
jne 0x10054f8f
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x34]
cmp eax, ebx
je 0x10054f79
lea ecx, [ecx]
mov ecx, eax
mov eax, dword [ecx + 0x34]
cmp eax, ebx
jne 0x10054f70
mov ecx, dword [ecx]
mov edi, dword [esp + 0x94]
push ecx
push ebx
push edi
call fcn.100465b0
add esp, 0xc
jmp 0x10054f96
mov edi, dword [esp + 0x94]
mov esi, dword [esp + 0x98]
mov ebp, dword [esi + 0x34]
cmp ebp, ebx
je 0x10054fbd
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.10029580
mov ecx, dword [esp + 0x20]
add esp, 8
mov eax, ebp
call fcn.10021de0
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x34], eax
mov dword [eax + 0x38], esi
cmp byte [edi + 0x1c2], 2
jne 0x100550da
movzx eax, byte [esi + 4]
sub eax, 0x74
mov ebp, dword [edi + 8]
je 0x10054fff
sub eax, 1
je 0x10054ff8
sub eax, 1
je 0x10054ff1
mov eax, str.UNION
jmp 0x10055004
mov eax, str.INTERSECT
jmp 0x10055004
mov eax, str.EXCEPT
jmp 0x10055004
mov eax, str.UNION_ALL
mov ecx, dword [esp + 0x60]
mov esi, dword [edi]
push eax
mov eax, dword [esp + 0x60]
push 0x100af3b4
push eax
push ecx
push str.COMPOUND_SUBQUERIES__d_AND__d__s__s_
call fcn.10030b20
mov esi, dword [edi + 0x1d0]
mov edi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
add esp, 0x14
cmp dword [edx + 0x54], edi
mov dword [esp + 0x54], eax
jg 0x1005504c
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x1005504c
mov eax, 1
jmp 0x10055070
mov ecx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x9d
mov byte [eax + 3], bl
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, edi
mov ecx, dword [ebp + 4]
cmp ecx, ebx
mov edi, dword [ebp]
je 0x100550ce
cmp byte [edi + 0x40], bl
jne 0x100550ce
cmp eax, ebx
jge 0x10055089
mov eax, dword [ebp + 0x20]
sub eax, 1
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea ebp, [ecx + edx*4]
mov ecx, dword [ebp + 0x10]
call fcn.10030230
mov eax, dword [esp + 0x54]
cmp eax, ebx
mov dword [ebp + 0x10], ebx
jne 0x100550ba
mov dword [ebp + 0x10], ebx
mov byte [ebp + 1], bl
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov dword [ebp + 0x10], eax
mov byte [ebp + 1], 0xff
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov ecx, dword [esp + 0x54]
or eax, 0xffffffff
call fcn.10030230
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret