Function at 0x404a80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x1060
call fcn.0050f540
mov edi, dword [ebp + 8]
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [edi + 0x18]
test eax, eax
je 0x404dba
xor ecx, ecx
cmp eax, ecx
je 0x404dba
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov ecx, eax
nop dword [eax]
mov dword [esp + 0xc], ecx
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
mov esi, dword [eax + 4]
mov dword [esp + 0x50], 0
push esi
push esi
push str.SELECT_CREATE_TEMP__substr_sql__7__FROM_sqlite_schema_WHERE_tbl_name___Q_AND_type_IN__table__trigger__ORDER_BY_type_
push dword [ebp + 0xc]
lea eax, [esp + 0x60]
push eax
push dword [edi + 4]
call fcn.00404520
add esp, 0x18
test eax, eax
je 0x404b06
jmp 0x404b45
xor eax, eax
test eax, eax
jne 0x404b45
push dword [esp + 0x50]
call fcn.0042be30
add esp, 4
mov ecx, dword [esp + 0x50]
cmp eax, 0x64
jne 0x404cf8
push 0
push ecx
call fcn.00431d90
add esp, 8
test eax, eax
je 0x404b00
push dword [ebp + 0xc]
push 0
push 0
push eax
push dword [edi + 0xc]
call fcn.00435e30
add esp, 0x14
test eax, eax
je 0x404b06
mov ebx, eax
mov dword [esp + 8], eax
push dword [esp + 0x50]
call fcn.0042d1d0
add esp, 4
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
cmp eax, 0x17
je 0x404be0
cmp eax, 0x12
jne 0x404c60
push str.t592690916721053953805701627921227776
push str.INSERT_INTO__Q_VALUES_
push 0
lea edi, [esp + 0x14]
push edi
call fcn.00405e50
add esp, 0x10
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], 0
jle 0x404bc3
xor esi, esi
mov ebx, 0x51cfd7
nop word cs:[eax + eax]
test esi, esi
mov ecx, 0x51dac2
cmove ecx, ebx
push ecx
push 0x51dc5b
push eax
push edi
call fcn.00405e50
add esp, 0x10
inc esi
mov ecx, dword [esp + 0x1c]
cmp esi, dword [ecx]
jl 0x404ba0
push 0x51dac5
push eax
push edi
call fcn.00405e50
add esp, 0xc
mov esi, eax
jmp 0x404c4b
push str.t592690916721053953805701627921227776
push str.UPDATE__Q_SET
push 0
lea eax, [esp + 0x14]
push eax
call fcn.00405e50
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x1c]
cmp dword [eax], 0
jle 0x404c4b
xor ebx, ebx
xor edi, edi
nop dword [eax + eax]
test ebx, ebx
mov eax, 0x51dac2
mov ecx, 0x51cfd7
cmove eax, ecx
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 8]
push dword [ecx + ebx]
push eax
push str._s_Q_
push esi
lea eax, [esp + 0x18]
push eax
call fcn.00405e50
add esp, 0x14
mov esi, eax
inc edi
add ebx, 0xc
mov eax, dword [esp + 0x1c]
cmp edi, dword [eax]
jl 0x404c10
mov ebx, dword [esp + 8]
test ebx, ebx
mov edi, dword [ebp + 8]
je 0x404c86
jmp 0x404d97
xor esi, esi
test ebx, ebx
jne 0x404d97
push str.t592690916721053953805701627921227776
push str.DELETE_FROM__Q
call fcn.00428600
add esp, 8
mov esi, eax
test eax, eax
je 0x405062
mov dword [esp + 0x20], 0
push 0
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push esi
push dword [edi + 0xc]
call fcn.0042be00
add esp, 0x14
mov ebx, eax
push dword [esp + 0x20]
call fcn.0042d1d0
add esp, 4
test ebx, ebx
jne 0x404d79
test eax, eax
jne 0x404d77
push esi
call fcn.00424f10
add esp, 4
push dword [ebp + 0xc]
push 0
push 0
push str.DROP_TABLE_t592690916721053953805701627921227776
push dword [edi + 0xc]
call fcn.00435e30
add esp, 0x14
test eax, eax
mov ecx, dword [esp + 0xc]
jne 0x404d5e
mov ecx, dword [ecx + 8]
cmp ecx, dword [esp + 0x10]
jne 0x404ac0
jmp 0x404d5e
push ecx
call fcn.0042d1d0
add esp, 4
mov dword [esp + 8], eax
mov ebx, eax
test eax, eax
jne 0x404b57
push str.t592690916721053953805701627921227776
push esi
push str.ALTER_TABLE_temp._Q_RENAME_TO__Q
call fcn.00428600
add esp, 0xc
test eax, eax
je 0x404d4c
mov esi, eax
push dword [ebp + 0xc]
push 0
push 0
push eax
push dword [edi + 0xc]
call fcn.00435e30
add esp, 0x14
mov ebx, eax
mov dword [esp + 8], eax
push esi
call fcn.00424f10
jmp 0x404b54
mov dword [esp + 8], 7
mov ebx, 7
jmp 0x404b57
mov ebx, eax
test eax, eax
jne 0x404da0
mov eax, dword [edi + 0x18]
mov edx, dword [esp + 0x18]
mov ecx, edx
cmp eax, edx
jne 0x404aab
jmp 0x404da0
mov ebx, eax
push dword [edi + 0xc]
call fcn.004362c0
add esp, 4
push eax
push 0x51d22f
call fcn.00428600
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push esi
call fcn.00424f10
add esp, 4
mov dword [esp + 0x30], ebx
cmp ebx, 0x305
je 0x404f2a
mov ecx, ebx
test ebx, ebx
jne 0x404f5c
mov esi, dword [edi + 0x14]
test esi, esi
je 0x404f26
nop word cs:[eax + eax]
mov eax, dword [esi + 0x14]
xor edi, edi
jmp 0x404de8
mov dword [eax + 0x18], edi
mov edi, eax
mov eax, dword [eax + 0x14]
test eax, eax
je 0x404e10
test edi, edi
je 0x404de0
mov ecx, dword [eax + 8]
mov edx, edi
nop word cs:[eax + eax]
cmp ecx, dword [edx + 8]
je 0x404de5
mov edx, dword [edx + 0x18]
test edx, edx
jne 0x404e00
jmp 0x404de0
mov ecx, dword [ebp + 8]
mov edx, esi
push 0
push edi
call fcn.004186f0
add esp, 8
mov ecx, eax
test eax, eax
jne 0x404e90
mov ebx, esi
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x404e5c
jmp 0x404e92
mov ecx, dword [ebp + 8]
mov edx, ebx
push esi
push edi
call fcn.004186f0
add esp, 8
mov ecx, eax
test ecx, ecx
jne 0x404e92
mov esi, dword [esi + 0x14]
test esi, esi
je 0x404e92
test edi, edi
je 0x404e40
mov eax, dword [esi + 8]
mov ecx, edi
nop word cs:[eax + eax]
cmp eax, dword [ecx + 8]
je 0x404e80
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x404e70
jmp 0x404e40
xor ecx, ecx
test ecx, ecx
je 0x404e55
jmp 0x404e92
mov ebx, esi
test ecx, ecx
mov edi, dword [ebp + 8]
jne 0x404f58
mov esi, ebx
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x404f10
mov ebx, esi
mov ecx, dword [esi + 0x14]
xor edi, edi
jmp 0x404eb3
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x404ef0
mov edx, dword [ecx + 8]
test edi, edi
je 0x404ecc
mov esi, edi
cmp edx, dword [esi + 8]
je 0x404eb0
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x404ec0
mov esi, eax
nop
cmp edx, dword [esi + 8]
je 0x404eb0
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x404ed0
mov dword [ecx + 0x18], edi
mov edi, ecx
jmp 0x404eb0
mov ecx, dword [ebp + 8]
mov esi, ebx
mov edx, ebx
push eax
push edi
call fcn.004186f0
add esp, 8
mov ecx, eax
jmp 0x404f12
xor ecx, ecx
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x404f55
test ecx, ecx
mov edi, dword [ebp + 8]
je 0x404dd0
jmp 0x404f58
xor ecx, ecx
jmp 0x404f58
mov ecx, 0x305
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4055f1
push str.Cannot_find_a_unique_index_name_to_propose.
mov esi, eax
call fcn.00428600
mov ecx, 0x305
add esp, 4
mov dword [esi], eax
jmp 0x4055f1
mov edi, dword [ebp + 8]
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x40519c
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
cmp dword [edi], 0
je 0x404ff0
mov esi, dword [edi + 8]
mov dword [esp + 8], 0
lea eax, [esp + 8]
push 0
push eax
push 0xffffffffffffffff
push str.SELECT_max_i.seqno__FROM___sqlite_schema_AS_s____pragma_index_list_s.name__AS_l____pragma_index_info_l.name__AS_i_WHERE_s.type__table
push esi
call fcn.0042be00
add esp, 0x14
test eax, eax
je 0x404ff7
mov dword [esp + 8], 0
push esi
mov esi, eax
call fcn.004362c0
add esp, 4
push eax
push 0x51d22f
call fcn.00428600
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esp + 8]
call fcn.0042d1d0
mov ecx, esi
add esp, 4
jmp 0x405198
xor ecx, ecx
jmp 0x405198
push dword [esp + 8]
call fcn.0042be30
add esp, 4
xor esi, esi
cmp eax, 0x64
jne 0x40501b
push 0
push dword [esp + 0xc]
call fcn.0042d110
add esp, 8
mov esi, eax
inc esi
push dword [esp + 8]
call fcn.0042d1d0
add esp, 4
mov ecx, eax
test esi, esi
jle 0x405198
test ecx, ecx
jne 0x405198
push 0
push 0
push 0
push str.ANALYZE__PRAGMA_writable_schema1
push dword [edi + 8]
call fcn.00435e30
add esp, 0x14
test eax, eax
je 0x40506e
mov ebx, eax
mov dword [esp + 0x1c], 0
jmp 0x405103
mov ebx, 7
xor esi, esi
jmp 0x404d97
lea eax, [esi + esi*4]
lea edi, [eax*8 + 0x30]
push edi
call fcn.00424d00
add esp, 4
test eax, eax
je 0x4050f3
push edi
push 0
push eax
mov ebx, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
xor eax, eax
mov edi, dword [ebp + 8]
cmp dword [edi], 0x64
setne al
push 0
push 0
push 0x418e60
mov dword [esp + 0x28], ebx
push ebx
push 1
push 2
push 0x51de5e
push dword [edi + eax*8 + 4]
call fcn.0043a2a0
add esp, 0x20
test eax, eax
jne 0x4050ef
lea eax, [esp + 0x50]
push 0
push 0
push 0x418fd0
push eax
push 1
push 0
push str.sample
push dword [edi + 4]
call fcn.0043a2a0
add esp, 0x20
test eax, eax
je 0x4055fb
mov ebx, eax
jmp 0x405103
mov ebx, 7
mov dword [esp + 0x1c], 0
mov edi, dword [ebp + 8]
push dword [esp + 0x24]
call fcn.0042d1d0
add esp, 4
push dword [esp + 0x38]
call fcn.0042d1d0
add esp, 4
push dword [esp + 0x34]
call fcn.0042d1d0
add esp, 4
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov eax, ebx
je 0x405164
cmp dword [ecx], 0
jle 0x405156
lea esi, [ecx + 0x28]
xor edi, edi
nop dword [eax + eax]
push dword [esi]
call fcn.00424f10
mov ecx, dword [esp + 0x20]
add esp, 4
inc edi
add esi, 0x28
cmp edi, dword [ecx]
jl 0x405140
push ecx
call fcn.00424f10
add esp, 4
mov edi, dword [ebp + 8]
mov eax, ebx
test eax, eax
jne 0x40517e
push 0
push 0
push 0
push str.ANALYZE_sqlite_schema
push dword [edi + 8]
call fcn.00435e30
add esp, 0x14
push 0
push 0
push 0
push str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
push dword [edi + 4]
mov esi, eax
call fcn.00435e30
mov ecx, esi
add esp, 0x14
mov dword [esp + 0x30], ecx
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x4051e6
mov eax, dword [edi + 0x102c]
mov ebx, 0x51cfd7
nop
mov ecx, dword [esi + 8]
test ecx, ecx
mov edx, str.____stat1:
cmove edx, ebx
push ecx
push edx
push dword [esi + 4]
push str._s__s_s_n
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00405e50
add esp, 0x18
mov dword [edi + 0x102c], eax
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x4051b0
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x4055f1
mov eax, dword [edi + 8]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x50]
push 0x1000
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov edi, dword [edi + 0x1c]
mov eax, 0
test edi, edi
je 0x405593
nop dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], 0
xor esi, esi
jmp 0x405239
inc esi
cmp esi, 0x3ff
je 0x405270
mov edi, dword [esp + esi*4 + 0x54]
test edi, edi
je 0x405230
nop word cs:[eax + eax]
mov ebx, dword [edi + 0xc]
push dword [edi + 8]
call fcn.00424f10
add esp, 4
push edi
call fcn.00424f10
add esp, 4
mov edi, ebx
test ebx, ebx
jne 0x405250
jmp 0x405230
push 0x1000
push 0
lea eax, [esp + 0x58]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov edi, dword [esp + 0x14]
push dword [edi + 4]
push str.EXPLAIN_QUERY_PLAN__s
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x50]
call fcn.00404520
add esp, 0x14
mov ebx, eax
mov dword [esp + 8], eax
test eax, eax
jne 0x40556f
xor esi, esi
jmp 0x4052c8
test ecx, ecx
jne 0x405530
push dword [esp + 0x20]
call fcn.0042be30
add esp, 4
cmp eax, 0x64
jne 0x405530
push 3
push dword [esp + 0x24]
call fcn.00431d90
add esp, 8
xor ecx, ecx
test eax, eax
je 0x4052c0
mov ebx, eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, ebx
test eax, eax
mov dword [esp + 0xc], ebx
jle 0x4054f8
mov ebx, eax
mov dword [esp + 0x18], esi
mov edx, eax
neg edx
mov edi, 0xd
mov esi, ecx
mov dword [esp + 0x1c], eax
jmp 0x40533f
inc esi
lea eax, [edx + edi]
inc eax
inc edi
cmp eax, 0xd
je 0x4054f0
cmp edi, ebx
jge 0x40535f
push 0xd
push str._USING_INDEX
push esi
mov ebx, edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
mov edx, ebx
mov ebx, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x405391
lea eax, [edi + 9]
cmp eax, ebx
jge 0x405330
movdqu xmm0, xmmword [esi]
pcmpeqb xmm0, xmmword [0x51c0f0]
movdqu xmm1, xmmword [esi + 6]
pcmpeqb xmm1, xmmword [str._COVERING_INDEX__USING_COVERING]
pand xmm1, xmm0
pmovmskb ecx, xmm1
cmp ecx, 0xffff
jne 0x405330
jmp 0x405393
mov eax, edi
mov ecx, dword [esp + 0xc]
lea edx, [ecx + eax]
xor ecx, ecx
jmp 0x4053aa
lea ecx, [esi + 1]
cmp byte [edx + esi + 1], 0x28
je 0x4053be
mov esi, ecx
movzx ecx, byte [edx + ecx]
cmp ecx, 0x20
je 0x4053a0
test ecx, ecx
je 0x4053be
inc esi
mov ecx, esi
jmp 0x4053aa
test esi, esi
mov dword [esp + 0x10], edx
je 0x40547d
mov ecx, esi
and ecx, 3
mov dword [esp + 0x28], ecx
xor edi, edi
mov ecx, 0
cmp esi, 4
jb 0x405430
mov ecx, esi
and ecx, 0xfffffffc
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xc]
lea edx, [ecx + eax]
add edx, 3
xor edi, edi
xor ecx, ecx
nop word cs:[eax + eax]
movzx ebx, byte [edx + edi - 3]
lea ecx, [ecx + ecx*8]
add ecx, ebx
movzx ebx, byte [edx + edi - 2]
lea ecx, [ecx + ecx*8]
add ecx, ebx
movzx ebx, byte [edx + edi - 1]
lea ecx, [ecx + ecx*8]
add ecx, ebx
movzx ebx, byte [edx + edi]
lea ecx, [ecx + ecx*8]
add ecx, ebx
add edi, 4
cmp dword [esp + 0x1c], edi
jne 0x405400
mov ebx, dword [esp + 0x28]
test ebx, ebx
mov edx, dword [esp + 0xc]
je 0x40545e
add eax, edi
add edx, eax
xor eax, eax
nop word cs:[eax + eax]
movzx edi, byte [edx + eax]
lea ecx, [ecx + ecx*8]
add ecx, edi
inc eax
cmp ebx, eax
jne 0x405450
mov eax, ecx
mov edx, 0x401005
mul edx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
mov edx, eax
shl edx, 0xa
sub eax, edx
add eax, ecx
jmp 0x40547f
xor eax, eax
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + eax*4 + 0x30]
jmp 0x405493
mov edi, dword [edi + 0xc]
test edi, edi
je 0x4054f0
mov ebx, dword [edi]
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, esi
jne 0x405490
push esi
push dword [esp + 0x14]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x405490
mov eax, dword [edi + 4]
test eax, eax
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
je 0x4054f8
lea ecx, [esp + 8]
lea edx, [esp + 0x50]
push 0
push eax
call fcn.00418cd0
add esp, 8
mov eax, dword [esp + 8]
xor esi, esi
test eax, eax
je 0x4054f8
jmp 0x405593
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
cmp byte [edx], 0x2d
lea eax, [esp + 8]
mov ecx, 0
je 0x4052c0
push edx
push 0x51e066
push dword [edi + 0xc]
push eax
call fcn.00405e50
add esp, 0x10
mov dword [edi + 0xc], eax
mov esi, dword [esp + 8]
mov ecx, esi
jmp 0x4052c0
mov ebx, esi
mov esi, dword [esp + 0x50]
test esi, esi
je 0x40556f
mov eax, dword [edi + 8]
lea ebx, [esp + 8]
nop word cs:[eax + eax]
push dword [esi]
push str._s__n
push eax
push ebx
call fcn.00405e50
add esp, 0x10
mov dword [edi + 8], eax
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x405550
mov ebx, dword [esp + 8]
push dword [esp + 0x20]
call fcn.0042d1d0
add esp, 4
test ebx, ebx
cmovne eax, ebx
mov dword [esp + 8], eax
test eax, eax
jne 0x405593
mov edi, dword [edi + 0x10]
test edi, edi
jne 0x405220
mov ebx, eax
xor eax, eax
jmp 0x4055ac
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x3ff
je 0x4055df
mov dword [esp + 0x1c], eax
mov esi, dword [esp + eax*4 + 0x54]
test esi, esi
je 0x4055a0
nop dword [eax + eax]
mov edi, dword [esi + 0xc]
push dword [esi + 8]
call fcn.00424f10
add esp, 4
push esi
call fcn.00424f10
add esp, 4
mov esi, edi
test edi, edi
jne 0x4055c0
jmp 0x4055a0
mov ecx, ebx
test ebx, ebx
mov eax, dword [ebp + 8]
jne 0x4055f1
mov dword [eax + 0x20], 1
xor ecx, ecx
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
inc esi
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov esi, dword [edi + 8]
lea eax, [esp + 0x24]
push 0
push eax
push 0xffffffffffffffff
push str.SELECT_s.rowid__s.name__l.name_FROM___sqlite_schema_AS_s____pragma_index_list_s.name__AS_l_WHERE_s.type__table
push esi
call fcn.0042be00
add esp, 0x14
test eax, eax
je 0x40562c
mov ebx, eax
mov dword [esp + 0x24], 0
jmp 0x40567e
mov esi, dword [edi + 8]
lea eax, [esp + 0x38]
push 0
push eax
push 0xffffffffffffffff
push str.SELECT_name__coll_FROM_pragma_index_xinfo____WHERE_key
push esi
call fcn.0042be00
add esp, 0x14
test eax, eax
je 0x405656
mov ebx, eax
mov dword [esp + 0x38], 0
jmp 0x40567e
mov esi, dword [edi + 8]
lea eax, [esp + 0x34]
push 0
push eax
push 0xffffffffffffffff
push str.INSERT_INTO_sqlite_stat1_VALUES_________
push esi
call fcn.0042be00
add esp, 0x14
test eax, eax
je 0x40569f
mov ebx, eax
mov dword [esp + 0x34], 0
push esi
call fcn.004362c0
add esp, 4
push eax
push 0x51d22f
call fcn.00428600
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x405103
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xfffe7960
jmp 0x4056c9
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
test ebx, ebx
jne 0x405103
push dword [esp + 0x24]
call fcn.0042be30
add esp, 4
cmp eax, 0x64
jne 0x405dc7
push 0
push dword [esp + 0x28]
call fcn.0042d040
add esp, 8
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
push 1
push dword [esp + 0x28]
call fcn.00431d90
add esp, 8
mov esi, eax
push 2
push dword [esp + 0x28]
call fcn.00431d90
add esp, 8
xor ebx, ebx
mov dword [esp + 0x3c], esi
test esi, esi
je 0x4056b1
test eax, eax
je 0x4056b1
mov ecx, dword [edi]
cmp ecx, 0x63
mov dword [esp + 0x2c], eax
jg 0x4057cb
mov esi, dword [esp + 0x10]
xor esi, dword [esp + 0x48]
mov edx, dword [esp + 0xc]
xor edx, dword [esp + 0x44]
or edx, esi
je 0x4057cb
cvtsi2sd xmm0, ecx
divsd xmm0, qword [0x51c0c0]
movsd qword [esp + 0x58], xmm0
mov dword [esp + 0x50], ecx
lea eax, [esp + 0x60]
xorpd xmm0, xmm0
movupd xmmword [eax], xmm0
push 0
push 0
push 0
push str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
push dword [edi + 0xc]
call fcn.00435e30
add esp, 0x14
test eax, eax
jne 0x4050ef
push dword [esp + 0x3c]
push str.CREATE_TABLE_temp.t592690916721053953805701627921227776_AS_SELECT__FROM__Q
call fcn.00428600
add esp, 8
test eax, eax
je 0x405e27
mov esi, eax
push 0
push 0
push 0
push eax
push dword [edi + 0xc]
call fcn.00435e30
add esp, 0x14
mov ebx, eax
push esi
call fcn.00424f10
add esp, 4
test ebx, ebx
mov eax, dword [esp + 0x2c]
jne 0x405103
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x4c], ecx
mov dword [esp + 8], 0
mov dword [esp + 0x20], 0
push 0
push 0xffffffffffffffff
push eax
push 1
mov dword [esp + 0x38], edx
push edx
call fcn.00432710
add esp, 0x14
mov dword [esp + 0xc], 0
xor ebx, ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x28]
push ebx
call fcn.0042be30
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, 0x64
jne 0x4058c7
cmp dword [esp + 0xc], 0
mov esi, 0x51dac2
mov eax, 0x51cfd7
cmove esi, eax
push 0
push ebx
call fcn.00431d90
add esp, 8
mov dword [esp + 0x14], eax
push 1
push ebx
call fcn.00431d90
add esp, 8
push eax
mov eax, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x20]
push ebx
push eax
push esi
push str._sx._Q_IS_rem__d__x._Q__COLLATE__s
push dword [esp + 0x24]
lea eax, [esp + 0x3c]
push eax
call fcn.00405e50
add esp, 0x20
mov dword [esp + 0xc], eax
inc ebx
mov dword [esp + 0x18], ebx
push ebx
push esi
push str._s_d
push dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
call fcn.00405e50
add esp, 0x14
mov ebx, eax
mov esi, dword [esp + 0x20]
test esi, esi
je 0x40580d
push dword [esp + 0x28]
call fcn.00430240
add esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0xc]
jmp 0x40590f
push ebx
call fcn.00430240
add esp, 4
cmp dword [edi], 0x64
jne 0x4058f3
xor esi, esi
push dword [esp + 0x10]
push dword [esp + 0x40]
mov ebx, dword [esp + 0x14]
push ebx
push str.SELECT__s_FROM__Q_x_ORDER_BY__s
call fcn.00428600
add esp, 0x10
jmp 0x40590b
xor esi, esi
push dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
push ebx
push str.SELECT__s_FROM_temp.t592690916721053953805701627921227776_x_ORDER_BY__s
call fcn.00428600
add esp, 0xc
mov dword [esp + 0x14], eax
push ebx
call fcn.00424f10
add esp, 4
push dword [esp + 0x10]
call fcn.00424f10
add esp, 4
cmp dword [esp + 0x40], 0x64
je 0x40597d
xor eax, eax
cmp dword [edi], 0x64
setne al
mov esi, dword [edi + eax*8 + 4]
push 0
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
push dword [esp + 0x20]
push esi
call fcn.0042be00
add esp, 0x14
mov ebx, eax
test eax, eax
je 0x405977
mov dword [esp + 8], 0
push esi
call fcn.004362c0
add esp, 4
push eax
push 0x51d22f
call fcn.00428600
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov esi, ebx
mov dword [esp + 0x20], ebx
push dword [esp + 0x14]
call fcn.00424f10
add esp, 4
xor ebx, ebx
test esi, esi
je 0x4059b8
push ebx
call fcn.00424f10
add esp, 4
push dword [esp + 8]
call fcn.0042d1d0
add esp, 4
mov ebx, eax
test esi, esi
cmovne ebx, esi
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
jmp 0x4056b9
mov eax, dword [esp + 0x18]
lea esi, [eax*4 + 4]
push esi
call fcn.00424d00
add esp, 4
test eax, eax
je 0x405a8c
mov ebx, eax
push esi
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
push dword [esp + 8]
call fcn.0042be30
add esp, 4
cmp eax, 0x64
jne 0x405a98
mov eax, dword [esp + 0x18]
inc eax
xor edx, edx
cmp eax, 8
jb 0x405aa6
mov ecx, dword [esp + 0x18]
lea edi, [ecx - 7]
mov edx, edi
shr edx, 3
inc edx
mov ecx, edx
and ecx, 3
xor esi, esi
cmp edi, 0x18
movdqa xmm0, xmmword [0x51c0d0]
jb 0x405a64
and edx, 0xfffffffc
xor esi, esi
movdqu xmmword [ebx + esi*4], xmm0
movdqu xmmword [ebx + esi*4 + 0x10], xmm0
movdqu xmmword [ebx + esi*4 + 0x20], xmm0
movdqu xmmword [ebx + esi*4 + 0x30], xmm0
movdqu xmmword [ebx + esi*4 + 0x40], xmm0
movdqu xmmword [ebx + esi*4 + 0x50], xmm0
movdqu xmmword [ebx + esi*4 + 0x60], xmm0
movdqu xmmword [ebx + esi*4 + 0x70], xmm0
add esi, 0x20
add edx, 0xfffffffc
jne 0x405a2d
mov edx, eax
and edx, 0xfffffff8
test ecx, ecx
je 0x405aa2
lea esi, [ebx + esi*4]
add esi, 0x10
shl ecx, 5
xor edi, edi
movdqu xmmword [esi + edi - 0x10], xmm0
movdqu xmmword [esi + edi], xmm0
add edi, 0x20
cmp ecx, edi
jne 0x405a78
jmp 0x405aa2
mov esi, 7
xor ebx, ebx
jmp 0x40598f
mov edi, dword [ebp + 8]
xor esi, esi
jmp 0x40598f
cmp eax, edx
je 0x405ab0
mov dword [ebx + edx*4], 1
inc edx
jmp 0x405aa2
push dword [esp + 8]
call fcn.0042be30
add esp, 4
cmp eax, 0x64
mov edi, dword [esp + 0x18]
jne 0x405bd8
mov eax, ebx
add eax, 0x34
mov dword [esp + 0x14], eax
jmp 0x405ae9
push dword [esp + 8]
call fcn.0042be30
add esp, 4
cmp eax, 0x64
jne 0x405bd8
inc dword [ebx]
xor esi, esi
test edi, edi
je 0x405b09
push esi
push dword [esp + 0xc]
call fcn.0042d110
add esp, 8
test eax, eax
je 0x405b09
inc esi
cmp edi, esi
jne 0x405af1
jmp 0x405ad4
mov eax, edi
sub eax, esi
jbe 0x405ad4
cmp eax, 8
jb 0x405bca
mov dword [esp + 0x10], eax
add eax, 0xfffffff8
mov ecx, eax
shr ecx, 3
inc ecx
mov dword [esp + 0xc], ecx
xor ecx, ecx
cmp eax, 8
pcmpeqd xmm2, xmm2
jb 0x405b8a
mov edx, dword [esp + 0xc]
and edx, 0xfffffffe
mov eax, dword [esp + 0x14]
lea eax, [eax + esi*4]
xor ecx, ecx
movdqu xmm0, xmmword [eax + ecx*4 - 0x30]
movdqu xmm1, xmmword [eax + ecx*4 - 0x20]
psubd xmm0, xmm2
psubd xmm1, xmm2
movdqu xmmword [eax + ecx*4 - 0x30], xmm0
movdqu xmmword [eax + ecx*4 - 0x20], xmm1
movdqu xmm0, xmmword [eax + ecx*4 - 0x10]
movdqu xmm1, xmmword [eax + ecx*4]
psubd xmm0, xmm2
psubd xmm1, xmm2
movdqu xmmword [eax + ecx*4 - 0x10], xmm0
movdqu xmmword [eax + ecx*4], xmm1
add ecx, 0x10
add edx, 0xfffffffe
jne 0x405b44
mov edi, dword [esp + 0x10]
mov eax, edi
and eax, 0xfffffff8
test byte [esp + 0xc], 1
je 0x405bbc
add ecx, esi
movdqu xmm0, xmmword [ebx + ecx*4 + 4]
movdqu xmm1, xmmword [ebx + ecx*4 + 0x14]
psubd xmm0, xmm2
psubd xmm1, xmm2
movdqu xmmword [ebx + ecx*4 + 4], xmm0
movdqu xmmword [ebx + ecx*4 + 0x14], xmm1
cmp edi, eax
mov edi, dword [esp + 0x18]
je 0x405ad4
add esi, eax
inc dword [ebx + esi*4 + 4]
inc esi
cmp edi, esi
jne 0x405bca
jmp 0x405ad4
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
push eax
push 0x51e024
call fcn.00428600
add esp, 8
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
test eax, eax
je 0x405caf
cmp dword [esp + 0x18], 0
je 0x405c5a
mov esi, 1
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx + esi*4]
mov eax, ecx
shr eax, 0x1f
add eax, ecx
sar eax, 1
add eax, dword [esp + 0x10]
cdq
idiv ecx
push eax
push 0x51e027
push dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
call fcn.00405e50
add esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x405c53
lea eax, [esi + 1]
cmp esi, edi
mov esi, eax
jb 0x405c10
cmp dword [esp + 0x14], 0
jne 0x405cbf
push 0
push 0xffffffffffffffff
push dword [esp + 0x44]
push 1
mov esi, dword [esp + 0x5c]
push esi
call fcn.00432710
add esp, 0x14
push 0
push 0xffffffffffffffff
push dword [esp + 0x34]
push 2
push esi
call fcn.00432710
add esp, 0x14
push 0
push 0xffffffffffffffff
push dword [esp + 0x14]
push 3
push esi
call fcn.00432710
add esp, 0x14
push esi
call fcn.0042be30
add esp, 4
push esi
call fcn.00430240
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x405cbf
mov dword [esp + 0x14], 7
mov dword [esp + 0xc], 0
push dword [esp + 0x2c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jle 0x405d6c
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 3
mov dword [esp + 0x18], ecx
xor edx, edx
mov ecx, 0
cmp eax, 4
mov eax, dword [esp + 0x2c]
jb 0x405d2d
mov esi, dword [esp + 0x10]
and esi, 0xfffffffc
xor edx, edx
xor ecx, ecx
movzx edi, byte [eax + edx]
lea ecx, [ecx + ecx*8]
add ecx, edi
movzx edi, byte [eax + edx + 1]
lea ecx, [ecx + ecx*8]
add ecx, edi
movzx edi, byte [eax + edx + 2]
lea ecx, [ecx + ecx*8]
add ecx, edi
movzx edi, byte [eax + edx + 3]
lea ecx, [ecx + ecx*8]
add ecx, edi
add edx, 4
cmp esi, edx
jne 0x405cff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405d4b
mov esi, dword [esp + 0x2c]
add esi, edx
xor edx, edx
movzx edi, byte [esi + edx]
lea ecx, [ecx + ecx*8]
add ecx, edi
inc edx
cmp eax, edx
jne 0x405d3d
mov eax, ecx
mov edx, 0x401005
mul edx
mov esi, ecx
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 9
mov eax, esi
shl eax, 0xa
sub esi, eax
add esi, ecx
mov dword [esp + 0x28], esi
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x28]
mov esi, dword [eax + ecx*4 + 0x30]
jmp 0x405d7c
mov esi, dword [esi + 0xc]
test esi, esi
je 0x405daf
mov edi, dword [esi]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, dword [esp + 0x10]
jne 0x405d79
push dword [esp + 0x10]
push dword [esp + 0x30]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x405d79
mov eax, dword [esp + 0xc]
mov dword [esi + 8], eax
jmp 0x405dbb
push dword [esp + 0xc]
call fcn.00424f10
add esp, 4
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x14]
jmp 0x40598f
cmp dword [edi], 0x64
jge 0x405e01
push 0
push 0
push 0
push str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
call fcn.00435e30
add esp, 0x14
mov esi, eax
push dword [esp + 0x24]
call fcn.0042d1d0
add esp, 4
test esi, esi
je 0x405e0d
mov ebx, esi
mov edi, dword [ebp + 8]
jmp 0x40510f
push dword [esp + 0x24]
call fcn.0042d1d0
add esp, 4
mov ebx, eax
push dword [esp + 0x38]
call fcn.0042d1d0
add esp, 4
test ebx, ebx
je 0x405e31
mov edi, dword [ebp + 8]
jmp 0x40511b
mov ebx, 7
jmp 0x405103
mov esi, eax
push dword [esp + 0x34]
call fcn.0042d1d0
add esp, 4
mov ebx, eax
test esi, esi
cmovne ebx, esi
mov edi, dword [ebp + 8]
jmp 0x405127