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

Disassembly:
sub esp, 0x80
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0x18]
mov ebp, dword [ecx + 0x6c]
xor ebx, ebx
lea eax, [ebp - 1]
lea edx, [ebp + 1]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ecx
mov dword [ecx + 0x6c], edx
test ebp, eax
jne 0x10057fa8
mov eax, dword [ecx + 0x70]
mov esi, dword [ecx]
lea edx, [ebp*8 + 4]
push ebx
push edx
call fcn.100322e0
mov ecx, dword [esp + 0x50]
add esp, 8
mov dword [ecx + 0x70], eax
mov ecx, dword [ecx + 0x70]
cmp ecx, ebx
je 0x10057fb6
mov dword [ecx + ebp*4], 0xffffffff
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, ebp
mov ebp, dword [ecx + 0x6c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 1]
lea edx, [ebp + 1]
mov dword [esp + 0x48], ecx
mov dword [ecx + 0x6c], edx
test ebp, eax
jne 0x10057ff3
mov eax, dword [ecx + 0x70]
mov esi, dword [ecx]
lea edx, [ebp*8 + 4]
push ebx
push edx
call fcn.100322e0
mov ecx, dword [esp + 0x50]
add esp, 8
mov dword [ecx + 0x70], eax
mov ecx, dword [ecx + 0x70]
cmp ecx, ebx
je 0x10058001
mov dword [ecx + ebp*4], 0xffffffff
mov ecx, dword [esp + 0x98]
mov esi, dword [ecx + 0x30]
mov edx, dword [ecx + 0x34]
or eax, 0xffffffff
sub eax, ebp
mov ebp, dword [esi]
mov dword [esp + 0x34], eax
movzx eax, byte [ecx + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], ebp
cmp eax, 0x74
je 0x10058116
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], 1
cmp byte [eax + 0x41], bl
jne 0x10058116
lea eax, [ebp + ebp*2]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x48], eax
jmp 0x10058067
mov ecx, dword [esp + 0x98]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x1c]
cmp edx, dword [ecx]
jg 0x1005810e
mov ecx, dword [esi + 4]
xor eax, eax
cmp ebp, ebx
jle 0x10058092
add ecx, 0x14
movzx edx, word [ecx]
cmp edx, dword [esp + 0x1c]
je 0x10058092
inc eax
add ecx, 0x18
cmp eax, ebp
jl 0x10058081
cmp eax, ebp
jne 0x100580fd
mov ecx, dword [esp + 0x14]
push ebx
lea eax, [esp + 0x64]
push eax
push 0x84
push ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call fcn.1002b750
add esp, 0x10
cmp eax, ebx
je 0x10058170
mov edx, dword [esp + 0x1c]
or dword [eax + 4], 0x400
mov dword [eax + 8], edx
push eax
mov eax, dword [esp + 0x98]
mov ecx, esi
call fcn.10036630
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x100580fd
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 4]
mov dx, word [esp + 0x1c]
mov word [ecx + eax + 0x14], dx
inc ebp
add eax, 0x18
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
inc dword [esp + 0x1c]
cmp byte [eax + 0x41], bl
je 0x10058060
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], ebp
mov esi, dword [esp + 0x14]
lea ecx, [ebp*4]
push ebx
push ecx
call fcn.10028800
add esp, 8
mov dword [esp + 0x54], eax
cmp eax, ebx
je 0x10058180
mov edx, dword [esp + 0x28]
mov edx, dword [edx + 4]
xor ecx, ecx
cmp ebp, ebx
jle 0x10058152
add edx, 0x14
movzx esi, word [edx]
dec esi
mov dword [eax + ecx*4], esi
inc ecx
add edx, 0x18
cmp ecx, ebp
jl 0x10058143
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
push ebp
push esi
call fcn.100556a0
add esp, 8
mov dword [esp + 0x48], eax
jmp 0x10058192
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x28]
push ebx
push eax
mov dword [ebp + 0x30], eax
mov eax, dword [esi]
push eax
call fcn.1002e880
mov ecx, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esp + 0x18], 0x74
mov dword [ecx + 0x30], eax
jne 0x100581bd
mov dword [esp + 0x3c], ebx
jmp 0x100582fe
mov edx, dword [ebp]
mov eax, dword [esi + 0x48]
mov ebp, dword [edx]
lea edx, [eax + ebp + 1]
mov dword [esi + 0x48], edx
mov esi, dword [edi + 0x20]
lea ecx, [eax + 1]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x3c], ecx
jg 0x100581ef
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x10058214
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x3c]
mov byte [eax], 0x19
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
lea eax, [ebp + ebp*4 + 0x1d]
push ebx
push eax
call fcn.10026040
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x10058260
lea eax, [ebp + ebp*4 + 0x1d]
push eax
push ebx
push esi
call fcn.10004b00
mov eax, 1
mov word [esi + 8], ax
mov eax, dword [esp + 0x20]
lea edx, [esi + ebp*4 + 0x18]
mov dword [esi + 0x10], edx
mov word [esi + 6], bp
mov cl, byte [eax + 0x3e]
add esp, 0xc
mov byte [esi + 4], cl
mov dword [esi + 0xc], eax
mov dword [esi], 1
jmp 0x10058268
mov edx, dword [esp + 0x14]
mov byte [edx + 0x41], 1
mov dword [esp + 0x4c], esi
cmp esi, ebx
je 0x100582fe
xor ebp, ebp
cmp dword [esp + 0x2c], ebx
jle 0x100582fe
lea eax, [esi + 0x14]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], eax
jmp 0x10058290
mov ecx, dword [esp + 0x98]
mov eax, dword [ecx + 0x34]
cmp eax, ebx
je 0x10058386
mov edx, dword [esp + 0x94]
push ebp
push eax
push edx
call fcn.100532f0
add esp, 0xc
cmp eax, ebx
jne 0x100582df
mov ecx, dword [esp + 0x98]
mov ecx, dword [ecx]
cmp ebp, dword [ecx]
jge 0x100582df
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x30]
mov ecx, dword [edx + ecx]
push eax
call fcn.100524f0
add esp, 4
mov ecx, dword [esp + 0x40]
add dword [esp + 0x30], 0x18
mov dword [ecx], eax
mov edx, dword [esi + 0x10]
mov byte [edx + ebp], bl
inc ebp
add ecx, 4
cmp ebp, dword [esp + 0x2c]
mov dword [esp + 0x40], ecx
jl 0x10058290
mov esi, dword [esp + 0x98]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x94]
push str.ORDER
mov dword [esi + 0x34], ebx
mov dword [eax + 0x38], ebx
mov eax, dword [esi + 0x30]
push esi
push ebp
call fcn.1003e6f0
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp dword [eax + 0x34], ebx
jne 0x10058343
push str.ORDER
push eax
mov eax, dword [eax + 0x30]
push ebp
call fcn.1003e6f0
add esp, 0xc
mov ecx, dword [esp + 0x24]
push ecx
push esi
mov eax, ebp
call fcn.10042240
add esp, 8
cmp dword [esi + 8], ebx
je 0x10058410
cmp dword [esp + 0x18], 0x74
jne 0x10058410
mov ebp, dword [ebp + 0x48]
mov edx, dword [esp + 0x94]
inc ebp
lea eax, [ebp + 1]
mov dword [edx + 0x48], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1005838d
inc eax
jmp 0x10058390
xor eax, eax
jmp 0x100582b8
mov eax, dword [esi + 8]
mov esi, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x54], esi
mov dword [esp + 0x40], eax
jg 0x100583ac
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x100583d1
mov eax, dword [edi + 4]
inc dword [edi + 0x20]
mov ecx, dword [esp + 0x40]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x21
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
cmp dword [edx + 0x54], esi
jg 0x100583e9
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x10058416
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x30]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x21
mov byte [eax + 3], bl
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x10058416
mov dword [esp + 0x30], ebx
xor ebp, ebp
mov esi, dword [esp + 0x98]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.100316b0
mov edx, dword [esi + 0x40]
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [esi + 0x3c], ebx
call fcn.100316b0
mov dword [esi + 0x40], ebx
mov esi, dword [esp + 0xa4]
mov eax, dword [esi + 0x48]
inc eax
lea ecx, [eax + 1]
lea edx, [ecx + 2]
mov dword [esi + 0x48], edx
mov dword [esp + 0x50], 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 [edi + 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x18]
add esp, 0x10
cmp dword [ecx + 0x54], esi
mov dword [esp + 0x28], eax
jg 0x100584c3
push edi
call fcn.100318e0
add esp, 4
test eax, eax
je 0x100584c3
mov dword [esp + 0x2c], 1
jmp 0x100584ef
mov eax, dword [edi + 4]
inc dword [edi + 0x20]
mov ecx, dword [esp + 0x28]
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 + 0x2c], esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x94]
mov dword [eax + 8], ebp
mov edx, dword [ecx + 0x1d4]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x7c]
push edx
push eax
push ecx
call fcn.10075680
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
add esp, 0xc
cmp dword [eax + 0x54], esi
jg 0x1005852e
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x10058553
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x28]
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 [edi + 0x20]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jbe 0x10058568
lea edx, [ecx + ecx*4]
mov ecx, dword [edi + 4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec edx
mov dword [eax + 0x58], edx
mov esi, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x54], esi
lea ebp, [esi + 1]
jg 0x10058597
push edi
call fcn.100318e0
add esp, 4
test eax, eax
je 0x10058597
mov dword [esp + 0x2c], 1
jmp 0x100585c0
mov eax, dword [edi + 4]
inc dword [edi + 0x20]
mov ecx, dword [esp + 0x1c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x14
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x94]
mov esi, dword [eax + 8]
mov ebp, dword [eax + 0xc]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov edx, dword [ecx + 0x1d4]
mov dword [esp + 0x5c], edx
lea edx, [esp + 0x68]
push edx
push eax
push ecx
call fcn.10075680
mov eax, dword [esp + 0xa4]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebp
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
add esp, 0xc
cmp dword [eax + 0x54], esi
jg 0x1005861c
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x10058641
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
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 + 0x24]
mov esi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x9c]
push esi
push ebp
inc eax
push eax
mov eax, dword [esp + 0xac]
push eax
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x90]
push ecx
push edx
push eax
call fcn.10041e70
add esp, 0x20
cmp dword [esp + 0x18], 0x74
mov dword [esp + 0x4c], eax
je 0x10058690
cmp dword [esp + 0x18], 0x73
jne 0x100586c5
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x9c]
push ecx
push esi
push ebp
push edx
mov edx, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x7c]
push ecx
push edx
push eax
call fcn.10041e70
add esp, 0x20
mov dword [esp + 0x44], eax
cmp esi, ebx
je 0x100586d7
add dword [esi], 0xffffffff
jne 0x100586d7
push esi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, 0x75
je 0x100587d9
cmp eax, 0x76
je 0x100587d9
mov esi, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x54], esi
jg 0x1005870c
push edi
call fcn.100318e0
add esp, 4
test eax, eax
je 0x1005870c
mov ebp, 1
jmp 0x10058737
mov eax, dword [edi + 4]
inc dword [edi + 0x20]
mov ecx, dword [esp + 0x40]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x44]
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 ebp, esi
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
mov dword [esp + 0x30], ebp
jg 0x1005875a
push edi
call fcn.100318e0
add esp, 4
test eax, eax
je 0x1005875a
mov esi, 1
jmp 0x10058783
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
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 [edi + 0x18]
mov dword [esp + 0x50], esi
mov esi, dword [edi + 0x20]
cmp dword [eax + 0x54], esi
jg 0x1005879f
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x100587c0
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov byte [eax], 0x10
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x18]
mov eax, dword [esp + 0x98]
add dword [eax + 0x18], edx
mov edx, dword [ecx + 0x1c]
adc dword [eax + 0x1c], edx
jmp 0x100587f0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x98]
cmp dword [esp + 0x18], 0x76
jne 0x10058828
mov edx, dword [esp + 0x30]
mov esi, dword [eax + 0x1c]
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
cmp esi, ecx
jb 0x100588f1
ja 0x1005881d
mov esi, dword [eax + 0x18]
cmp esi, edx
jbe 0x100588f1
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ecx
jmp 0x100588f1
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x10058847
push edi
call fcn.100318e0
add esp, 4
test eax, eax
je 0x10058847
mov ebp, 1
jmp 0x10058873
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
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 ebp, esi
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
cmp dword [edx + 0x54], esi
mov dword [esp + 0x3c], ebp
jg 0x1005888f
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x100588b8
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x28]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x24]
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 esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
cmp dword [edx + 0x54], esi
jg 0x100588d0
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x100588f1
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x10
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
cmp dword [edx + 0x54], esi
jg 0x10058910
push edi
call fcn.100318e0
add esp, 4
test eax, eax
je 0x10058910
mov ebp, 1
jmp 0x1005893c
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x4c]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
inc ecx
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 ebp, esi
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
mov dword [esp + 0x4c], ebp
jg 0x10058958
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x10058981
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
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 esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x10058999
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x100589be
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x34]
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 + 0x18]
cmp eax, 0x74
jne 0x100589d0
mov dword [esp + 0x30], ebp
jmp 0x10058a6c
cmp eax, 0x76
jne 0x100589e3
mov dword [esp + 0x30], ebp
inc ebp
mov dword [esp + 0x4c], ebp
jmp 0x10058a6c
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
cmp dword [edx + 0x54], esi
jg 0x10058a02
push edi
call fcn.100318e0
add esp, 4
test eax, eax
je 0x10058a02
mov esi, 1
jmp 0x10058a2b
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x28]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x30]
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 [edi + 0x18]
mov dword [esp + 0x30], esi
mov esi, dword [edi + 0x20]
cmp dword [edx + 0x54], esi
jg 0x10058a47
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x10058a6c
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x34]
lea eax, [esi + esi*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 + 0x18]
mov esi, dword [edi + 0x20]
mov dword [esp + 0x58], esi
cmp eax, 0x74
je 0x10058a81
cmp eax, 0x73
jne 0x10058abf
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x10058a96
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x10058abf
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
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, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x10058ad7
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x10058b00
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
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 esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x10058b18
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x10058b44
mov edx, dword [edi + 4]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x34]
mov ebp, 1
add dword [edi + 0x20], ebp
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
jmp 0x10058b49
mov ebp, 1
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jbe 0x10058b5e
lea edx, [ecx + ecx*4]
mov ecx, dword [edi + 4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
sub edx, ebp
mov dword [eax + 0x58], edx
mov esi, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x54], esi
jg 0x10058b81
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x10058baa
mov eax, dword [edi + 4]
add dword [edi + 0x20], ebp
mov ecx, dword [esp + 0x28]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x50]
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 esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x10058bc2
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x10058beb
mov edx, dword [edi + 4]
add dword [edi + 0x20], ebp
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
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 [edi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x34]
js 0x10058c04
mov edx, dword [ecx + 0x70]
cmp edx, ebx
je 0x10058c04
mov esi, dword [edi + 0x20]
mov dword [edx + eax*4], esi
mov eax, dword [edi + 0x20]
sub eax, ebp
mov dword [ecx + 0x58], eax
mov esi, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x54], esi
jg 0x10058c28
push edi
call fcn.100318e0
add esp, 4
test eax, eax
je 0x10058c28
mov eax, ebp
jmp 0x10058c4b
mov eax, dword [edi + 4]
add dword [edi + 0x20], ebp
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x29
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, esi
mov esi, dword [edi + 4]
mov edx, dword [edi]
cmp esi, ebx
je 0x10058c91
cmp byte [edx + 0x41], bl
jne 0x10058c91
cmp eax, ebx
jge 0x10058c62
mov eax, dword [edi + 0x20]
sub eax, ebp
lea ecx, [eax + eax*4]
movsx eax, byte [esi + ecx*4 + 1]
lea esi, [esi + ecx*4]
mov ecx, dword [esi + 0x10]
call fcn.1003a090
mov eax, dword [esp + 0x54]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x10058c88
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x10058c9f
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xf1
jmp 0x10058c9f
mov ecx, dword [esp + 0x54]
mov eax, 0xfffffff1
call fcn.1003a090
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
mov edx, dword [esp + 0x84]
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x54], edx
jg 0x10058ccd
push edi
call fcn.100318e0
add esp, 4
test eax, eax
je 0x10058ccd
mov eax, 1
jmp 0x10058cf8
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
mov byte [eax], 0x2a
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, esi
mov esi, dword [edi + 4]
mov edx, dword [edi]
cmp esi, ebx
je 0x10058d40
cmp byte [edx + 0x41], bl
jne 0x10058d40
cmp eax, ebx
jge 0x10058d0e
mov eax, dword [edi + 0x20]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
call fcn.1003a090
mov eax, dword [esp + 0x48]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x10058d34
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x10058d4e
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x10058d4e
mov ecx, dword [esp + 0x48]
mov eax, 0xfffffffa
call fcn.1003a090
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x10058d60
mov eax, dword [edi + 0x20]
lea edx, [eax + eax*4]
mov byte [ecx + edx*4 - 0x11], 1
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x10058d78
push edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x10058da5
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov byte [eax], 0x2b
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 [edi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x24]
js 0x10058dbe
mov edx, dword [ecx + 0x70]
cmp edx, ebx
je 0x10058dbe
mov esi, dword [edi + 0x20]
mov dword [edx + eax*4], esi
mov edx, dword [edi + 0x20]
mov eax, dword [esp + 0x9c]
dec edx
mov dword [ecx + 0x58], edx
cmp byte [eax], 9
jne 0x10058dff
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x34]
cmp eax, ebx
je 0x10058de9
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx + 0x34]
cmp eax, ebx
jne 0x10058de0
mov ecx, dword [ecx]
mov ebp, dword [esp + 0x94]
push ecx
push ebx
push ebp
call fcn.1004ad80
add esp, 0xc
jmp 0x10058e06
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0x98]
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x10058e24
mov edx, dword [esp + 0x14]
push 1
push eax
push edx
call fcn.1002e080
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [esi + 0x34], eax
mov dword [eax + 0x38], esi
cmp byte [ebp + 0x1c2], 2
jne 0x10058f3d
movzx eax, byte [esi + 4]
sub eax, 0x74
mov edi, dword [ebp + 8]
je 0x10058e66
sub eax, 1
je 0x10058e5f
sub eax, 1
je 0x10058e58
mov eax, str.UNION
jmp 0x10058e6b
mov eax, str.INTERSECT
jmp 0x10058e6b
mov eax, str.EXCEPT
jmp 0x10058e6b
mov eax, str.UNION_ALL
mov ecx, dword [esp + 0x60]
mov esi, dword [ebp]
push eax
mov eax, dword [esp + 0x60]
push 0x100b4e24
push eax
push ecx
push str.COMPOUND_SUBQUERIES__d_AND__d__s__s_
call fcn.10032280
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
mov ebp, dword [ebp + 0x1d0]
add esp, 0x14
cmp dword [edx + 0x54], esi
mov dword [esp + 0x54], eax
jg 0x10058eb4
push edi
call fcn.100318e0
add esp, 4
test eax, eax
je 0x10058eb4
mov esi, 1
jmp 0x10058ed5
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x9b
mov byte [eax + 3], bl
mov dword [eax + 4], ebp
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]
mov edx, dword [edi]
mov eax, esi
cmp ecx, ebx
je 0x10058f31
cmp byte [edx + 0x41], bl
jne 0x10058f31
cmp esi, ebx
jge 0x10058eed
mov eax, dword [edi + 0x20]
dec eax
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.1003a090
mov eax, dword [esp + 0x54]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x10058f1d
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov dword [esi + 0x10], eax
mov byte [esi + 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.1003a090
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret