Function at 0x404710
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x600
call fcn.004f9df0
lea edi, [esp + 0x40]
mov dword [esp + 8], 0
push 0x5b8
push 0xff
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 0
call ebx
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
add esp, 4
push 0x8000
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
add esp, 8
push 2
call ebx
add esp, 4
push 0
push 4
push 0
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf
add esp, 0x10
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
push 0
call esi
add esp, 4
mov dword [0x51d0e0], eax
push 1
call esi
add esp, 4
mov dword [0x51d004], eax
push str.SQLITE_DEBUG_BREAK
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x404801
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
add esp, 4
test eax, eax
je 0x4047fb
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
add esp, 4
test eax, eax
je 0x4047fb
push 2
call ebx
add esp, 4
mov esi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__getpid
push eax
push str.attach_debugger_to_process__d_and_press_any_key_to_continue._n
push esi
call fcn.00404690
add esp, 0xc
push 0
call ebx
add esp, 4
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetc
add esp, 4
jmp 0x404801
call dword [sym.imp.KERNEL32.dll_DebugBreak]
call fcn.00434f60
push 0x3c
push str.2020_06_04_12:58:43_ec02243ea6ce33b090870ae55ab8aa2534b54d216d45c4aa2fdbb00e86861e8c
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x4058ea
mov esi, dword [ebp + 0xc]
push 0x5b8
push 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [esp + 0x74], 2
mov dword [esp + 0x7c], 2
mov dword [esp + 0x80], 2
mov byte [esp + 0x44], 1
mov word [esp + 0xd6], 0x7c
mov word [esp + 0xea], 0xa
mov dword [esp + 0x88], 0
mov dword [esp + 0x9c], 2
push 0xffffffffffffffff
call fcn.0042fb00
add esp, 4
cmp eax, 0x15
jne 0x4048a3
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.WARNING:_attempt_to_configure_SQLite_after_initialization._n
push eax
call fcn.004014c0
add esp, 8
push 1
push 0x11
call fcn.0042fb00
add esp, 8
push edi
push 0x412730
push 0x10
call fcn.0042fb00
add esp, 0xc
push 2
call fcn.0042fb00
add esp, 4
push 0x50272a
push 0x51e794
push 0x14
call fcn.0041f080
add esp, 0xc
push str.___..._
push 0x51e7a8
push 0x14
call fcn.0041f080
add esp, 0xc
mov eax, dword [esi]
mov dword [0x51e78c], eax
push 1
push 0x405980
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0xffffffffffffffff
call fcn.0042fb00
add esp, 4
cmp eax, 0x15
jne 0x40492d
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.WARNING:_attempt_to_configure_SQLite_after_initialization._n
push eax
call fcn.004014c0
add esp, 8
cmp dword [ebp + 8], 2
jl 0x404ccd
mov ebx, 1
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 1
jmp 0x404989
mov ecx, dword [ebp + 8]
lea edi, [ebx + 1]
cmp edi, ecx
je 0x4058a2
inc edi
cmp edi, ecx
mov ebx, edi
jge 0x404cfa
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + ebx*4]
cmp byte [edi], 0x2d
je 0x4049e0
cmp dword [esp + 0x560], 0
je 0x4049d4
mov esi, dword [esp + 0x14]
lea eax, [esi*4 + 4]
push eax
push dword [esp + 0x14]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
je 0x4058ca
mov dword [eax + esi*4], edi
inc esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], esi
jmp 0x4049e0
mov dword [esp + 0x560], edi
nop dword [eax + eax]
cmp byte [edi + 1], 0x2d
lea esi, [edi + 1]
cmovne esi, edi
push str._separator
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x404970
push str._nullvalue
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x404970
push str._newline
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x404970
push str._cmd
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x404970
push str._init
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x404b4b
push str._batch
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x404b69
push str._heap
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x404970
push str._pagecache
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x404b7a
push str._lookaside
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
mov edi, 0
je 0x404bfe
push str._mmap
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x404c60
push str._vfs
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x404c8e
push str._append
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x404cac
push str._readonly
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x404cb6
push str._nofollow
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x404cc0
push str._memtrace
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x404b73
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004020b0
add esp, 4
jmp 0x404b73
mov ecx, dword [ebp + 8]
lea edi, [ebx + 1]
cmp edi, ecx
je 0x4058a2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ebx*4 + 4]
mov dword [esp + 4], eax
jmp 0x40497e
mov dword [0x51d0e0], 0
mov edi, ebx
jmp 0x404c86
mov ecx, dword [ebp + 8]
lea eax, [ebx + 1]
mov edi, 0
cmp eax, ecx
je 0x4058a2
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + ebx*4 + 4]
call fcn.00405a20
cmp eax, 0x11171
mov esi, 0x11170
mov dword [esp + 0x18], eax
cmovl esi, eax
test eax, eax
cmovle esi, edi
lea edi, [ebx + 2]
cmp edi, dword [ebp + 8]
je 0x40590a
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + ebx*4 + 8]
call fcn.00405a20
mov ebx, eax
xor eax, eax
cmp dword [esp + 0x18], 0
jle 0x404be4
test ebx, ebx
jle 0x404be4
mov eax, ebx
imul eax, esi
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
push ebx
push esi
push eax
push 7
call fcn.0042fb00
add esp, 0x10
or byte [esp + 0x9c], 1
jmp 0x404c86
mov ecx, dword [ebp + 8]
lea eax, [ebx + 1]
cmp eax, ecx
je 0x4058a2
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + ebx*4 + 4]
call fcn.00405a20
mov esi, eax
test eax, eax
cmovs esi, edi
lea edi, [ebx + 2]
cmp edi, dword [ebp + 8]
je 0x40590a
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + ebx*4 + 8]
call fcn.00405a20
mov ebx, eax
test eax, eax
mov eax, 0
cmovs ebx, eax
push ebx
push esi
push 0xd
call fcn.0042fb00
add esp, 0xc
imul ebx, esi
test ebx, ebx
jne 0x404c86
and byte [esp + 0x9c], 0xfd
jmp 0x404c86
lea edi, [ebx + 1]
cmp edi, dword [ebp + 8]
je 0x4058a2
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + ebx*4 + 4]
call fcn.00405a20
push edx
push eax
push edx
push eax
push 0x16
call fcn.0042fb00
add esp, 0x14
mov ecx, dword [ebp + 8]
jmp 0x40497e
mov ecx, dword [ebp + 8]
lea edi, [ebx + 1]
cmp edi, ecx
je 0x4058a2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ebx*4 + 4]
mov dword [esp + 0xc], eax
jmp 0x40497e
mov byte [esp + 0x4a], 2
jmp 0x404b73
mov byte [esp + 0x4a], 4
jmp 0x404b73
mov dword [esp + 0x60], 0x1000000
jmp 0x404b73
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov edi, 1
mov dword [esp + 4], 0
push 0xffffffffffffffff
call fcn.0042fb00
add esp, 4
cmp eax, 0x15
jne 0x404d22
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.WARNING:_attempt_to_configure_SQLite_after_initialization._n
push eax
call fcn.004014c0
add esp, 8
call fcn.0041acf0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404d4b
push eax
call fcn.0041ac70
add esp, 4
test eax, eax
je 0x40591e
push 1
push eax
call fcn.0041b9e0
add esp, 8
xor eax, eax
cmp dword [esp + 0x560], 0
jne 0x404d6b
xor eax, eax
cmp dword [ebp + 8], 1
mov dword [esp + 0x560], 0x501896
sete al
mov dword [esp + 0xc], eax
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [esp + 0x68], eax
push 0
call fcn.0041ac70
add esp, 4
mov ecx, dword [eax]
mov dword [0x51d068], ecx
mov dword [0x51d07c], eax
mov eax, dword [eax + 4]
add eax, 0x18
mov dword [0x51d06c], eax
push 0
push 0x51d068
call fcn.0041b9e0
add esp, 8
push 0
push dword [esp + 0x564]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
test eax, eax
jne 0x404dd0
lea ecx, [esp + 0x40]
xor edx, edx
call fcn.00405c30
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x64]
xor ebx, ebx
test eax, eax
jne 0x404e01
xor ecx, ecx
call fcn.0040cac0
test eax, eax
je 0x40569b
push eax
push str._s_.sqliterc
call fcn.0041ef10
add esp, 8
mov ebx, eax
mov dword [esp + 4], esi
push 0x501918
mov esi, eax
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
add esp, 8
test eax, eax
mov dword [esp + 0x64], eax
je 0x404e55
cmp dword [0x51d0e0], 0
je 0x404e40
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push esi
push str.___Loading_resources_from__s_n
push eax
call fcn.004014c0
add esp, 0xc
lea ecx, [esp + 0x40]
call fcn.0040cc00
push dword [esp + 0x64]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov eax, dword [esp + 4]
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], edi
push ebx
call fcn.0041c220
add esp, 4
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], 0
cmp edi, 2
jl 0x4054a3
lea eax, [edi - 1]
mov esi, 1
mov dword [esp + 4], 0
mov dword [esp + 0x18], eax
jmp 0x404eac
mov edi, dword [ebp + 8]
inc esi
mov eax, dword [esp + 0x74]
mov dword [esp + 0x7c], eax
inc esi
cmp esi, edi
jge 0x4054a3
mov eax, dword [ebx + esi*4]
cmp byte [eax], 0x2d
jne 0x404ea3
cmp byte [eax + 1], 0x2d
lea edi, [eax + 1]
cmovne edi, eax
push str._init
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x404e97
push str._html
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4051fa
push str._list
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x40520a
push str._quote
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x40521a
push str._line
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x40522a
push str._column
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x40523a
push str._csv
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x40524a
push str._append
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x405264
push str._readonly
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x405271
push str._nofollow
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x40527e
push str._ascii
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x40528b
push str._separator
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4052c9
push str._newline
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4052e9
push str._nullvalue
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x405309
push str._header
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x405337
push str._noheader
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x40534a
push str._echo
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x40535d
push str._eqp
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x40536d
push str._eqpfull
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x40537a
push str._stats
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x405387
push str._scanstats
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x405394
push str._backslash
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4053a1
push str._bail
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4053b1
push str._version
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x405817
push str._interactive
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4053c3
push str._batch
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4053d5
push str._heap
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4053e7
push str._pagecache
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4053ea
push str._lookaside
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4053ea
push str._mmap
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4053e7
push str._memtrace
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4053e7
push str._vfs
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4053e7
push str._help
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4053f8
push str._cmd
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x40583c
cmp esi, dword [esp + 0x18]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
je 0x4054a3
inc esi
push esi
call fcn.004059e0
add esp, 4
cmp byte [eax], 0x2e
mov ebx, eax
jne 0x4053ff
mov ecx, ebx
lea edx, [esp + 0x40]
call fcn.00405f30
test eax, eax
mov dword [esp + 4], eax
je 0x4053ed
cmp dword [0x51e790], 0
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
je 0x404e9b
jmp 0x405880
mov edi, dword [ebp + 8]
mov dword [esp + 0x74], 4
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov dword [esp + 0x74], 2
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov dword [esp + 0x74], 6
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov dword [esp + 0x74], 0
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov dword [esp + 0x74], 1
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov dword [esp + 0x74], 8
mov word [esp + 0xd6], 0x2c
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov byte [esp + 0x4a], 2
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov byte [esp + 0x4a], 4
jmp 0x404e9b
or byte [esp + 0x63], 1
mov edi, dword [ebp + 8]
jmp 0x404e9b
mov dword [esp + 0x74], 0xa
push 0x501b10
lea eax, [esp + 0xda]
push eax
push 0x14
call fcn.0041f080
add esp, 0xc
push 0x501b12
lea eax, [esp + 0xee]
push eax
push 0x14
call fcn.0041f080
add esp, 0xc
mov edi, dword [ebp + 8]
jmp 0x404e9b
mov edi, dword [ebp + 8]
inc esi
mov edx, ebx
mov ecx, edi
push esi
call fcn.004059e0
add esp, 4
push eax
push 0x501b14
lea eax, [esp + 0xde]
jmp 0x405327
mov edi, dword [ebp + 8]
inc esi
mov edx, ebx
mov ecx, edi
push esi
call fcn.004059e0
add esp, 4
push eax
push 0x501b14
lea eax, [esp + 0xf2]
jmp 0x405327
mov edi, dword [ebp + 8]
inc esi
mov edx, ebx
mov ecx, edi
push esi
call fcn.004059e0
add esp, 4
push eax
push 0x501b14
lea eax, [esp + 0x450]
push eax
push 0x14
call fcn.0041f080
add esp, 0x10
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov dword [esp + 0x88], 1
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov dword [esp + 0x88], 0
jmp 0x404e9b
or byte [esp + 0x9c], 0x40
mov edi, dword [ebp + 8]
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov byte [esp + 0x45], 1
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov byte [esp + 0x45], 3
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov byte [esp + 0x48], 1
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov byte [esp + 0x49], 1
jmp 0x404e9b
or byte [esp + 0x9c], 4
mov edi, dword [ebp + 8]
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov dword [0x51e790], 1
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov dword [0x51d0e0], 1
jmp 0x404e9b
mov edi, dword [ebp + 8]
mov dword [0x51d0e0], 0
jmp 0x404e9b
inc esi
jmp 0x4053ed
add esi, 2
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
jmp 0x404e9b
call fcn.00405ee0
jmp 0x4053ed
lea edi, [esp + 0x40]
xor edx, edx
mov ecx, edi
call fcn.00405c30
lea eax, [esp + 8]
mov ecx, edi
mov edx, ebx
push eax
call fcn.0040c4a0
add esp, 4
cmp dword [esp + 8], 0
mov dword [esp + 4], eax
je 0x40545d
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push dword [esp + 8]
push str.Error:__s_n
push eax
call fcn.004014c0
add esp, 0xc
cmp dword [0x51e790], 0
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
je 0x404e9b
jmp 0x40588b
cmp dword [esp + 4], 0
je 0x405496
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push ebx
push str.Error:_unable_to_process_SQL___s__n
push eax
call fcn.004014c0
add esp, 0xc
cmp dword [0x51e790], 0
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
je 0x404e9b
jmp 0x4057d0
mov dword [esp + 4], 0
jmp 0x4053ed
cmp dword [esp + 0x1c], 0
je 0x405591
cmp dword [0x51d0e0], 0
je 0x405625
call fcn.0042f900
mov esi, eax
call fcn.00434f60
push eax
push esi
push str.SQLite_version__s__.19s_nEnter__.help__for_usage_hints._n
call fcn.00405eb0
add esp, 0xc
cmp dword [esp + 0xc], 0
je 0x40554d
push str.Connected_to_a
call fcn.00405eb0
add esp, 4
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x20]
mov dword [esp + 0x32], 0xffffffff
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x2e], 0xffffffff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 0xc
push esi
call edi
push str.transient_in_memory_database
push 0x501b14
call fcn.00405eb0
add esp, 8
movzx eax, word [esp + 0x28]
push eax
push esi
call edi
push str.._nUse__.open_FILENAME__to_reopen_on_a_persistent_database.
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
add esp, 4
push str.SQLITE_HISTORY
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x405639
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
lea ecx, [esp + 0x40]
mov esi, eax
mov dword [esp + 0x64], 0
call fcn.0040cc00
test esi, esi
mov dword [esp + 4], eax
je 0x4056e4
push esi
jmp 0x4056c5
mov esi, dword [esp + 0x14]
test esi, esi
jle 0x4056c1
mov ebx, dword [esp + 0x10]
jmp 0x4055cb
lea edx, [esp + 0x40]
call fcn.00405f30
test eax, eax
jne 0x405809
add ebx, 4
dec esi
je 0x4056b9
mov ecx, dword [ebx]
cmp byte [ecx], 0x2e
je 0x4055b0
lea edi, [esp + 0x40]
xor edx, edx
mov ecx, edi
call fcn.00405c30
mov edx, dword [ebx]
lea eax, [esp + 8]
mov ecx, edi
push eax
call fcn.0040c4a0
add esp, 4
cmp dword [esp + 8], 0
mov edi, eax
jne 0x4057dc
test edi, edi
je 0x4055c1
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push dword [ebx]
push str.Error:_unable_to_process_SQL:__s_n
push eax
call fcn.004014c0
add esp, 0xc
mov dword [esp + 4], edi
jmp 0x4057d0
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [esp + 0x64], eax
jmp 0x4056d7
xor ecx, ecx
call fcn.0040cac0
test eax, eax
je 0x4056cf
mov edi, eax
lea ebx, [eax - 1]
nop dword [eax]
cmp byte [ebx + 1], 0
lea ebx, [ebx + 1]
jne 0x405650
sub ebx, edi
and ebx, 0x3fffffff
add ebx, 0x14
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x4056cf
mov esi, eax
push edi
push str._s_.sqlite_history
push eax
push ebx
call fcn.0041f080
add esp, 0x10
lea ecx, [esp + 0x40]
mov dword [esp + 0x64], 0
call fcn.0040cc00
mov dword [esp + 4], eax
push esi
jmp 0x4056c5
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.___warning:_cannot_find_home_directory__cannot_read__.sqliterc_n
push eax
call fcn.00404690
add esp, 8
jmp 0x404e6a
mov dword [esp + 4], 0
push dword [esp + 0x10]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x4056e4
mov dword [esp + 0x64], 0
lea ecx, [esp + 0x40]
call fcn.0040cc00
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x405703
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [esp + 0xb0], 0
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x405740
push ebx
call fcn.004305e0
add esp, 4
test eax, eax
je 0x405740
mov esi, eax
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov edi, eax
push ebx
call fcn.0042cf50
add esp, 4
push eax
push esi
push str.Error:_sqlite3_close___returns__d:__s_n
push edi
call fcn.004014c0
add esp, 0x10
push dword [esp + 0x564]
call fcn.0041c220
add esp, 4
push dword [0x51e7d8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
lea esi, [esp + 0x40]
mov dword [0x51e7d8], 0
mov ecx, esi
call fcn.0040d470
mov byte [esp + 0x4b], 0
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x4057c0
push eax
call fcn.0041f7a0
add esp, 4
mov edi, eax
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wunlink]
add esp, 4
mov ebx, eax
push edi
call fcn.0041c220
add esp, 4
test ebx, ebx
jne 0x4057c0
push dword [esp + 0xb4]
call fcn.0041c220
add esp, 4
mov dword [esp + 0xb4], 0
push 0x5b8
push 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov eax, dword [esp + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push dword [esp + 8]
push str.Error:__s_n
push eax
call fcn.004014c0
add esp, 0xc
test edi, edi
mov eax, 1
cmovne eax, edi
mov dword [esp + 4], eax
jmp 0x4057d0
xor ecx, ecx
cmp eax, 2
cmovne ecx, eax
mov dword [esp + 4], ecx
jmp 0x4057d0
call fcn.0042f900
mov esi, eax
call fcn.00434f60
push eax
push esi
push str._s__s_n
call fcn.00405eb0
add esp, 0xc
mov dword [esp + 4], 0
jmp 0x4057d0
push 2
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call esi
add esp, 4
push edi
push dword [0x51e78c]
push str._s:_Error:_unknown_option:__s_n
push eax
call fcn.004014c0
add esp, 0x10
push 2
call esi
add esp, 4
push str.Use__help_for_a_list_of_options._n
push eax
call fcn.00404690
add esp, 8
mov dword [esp + 4], 1
jmp 0x4057d0
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 2
jmp 0x405896
mov ecx, dword [esp + 4]
mov eax, 1
test ecx, ecx
cmove ecx, eax
mov dword [esp + 4], ecx
jmp 0x4057d0
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, dword [ebp + 0xc]
push dword [ecx + ebx*4]
push dword [ecx]
push str._s:_Error:_missing_argument_to__s_n
push eax
call fcn.004014c0
add esp, 0x10
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.Error:_out_of_memory_n
push eax
call fcn.00404690
add esp, 8
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
call fcn.00434f60
push str.2020_06_04_12:58:43_ec02243ea6ce33b090870ae55ab8aa2534b54d216d45c4aa2fdbb00e86861e8c
push eax
push str.SQLite_header_and_source_version_mismatch_n_s_n_s_n
push esi
jmp 0x4058bb
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, dword [ebp + 0xc]
push dword [ecx + ebx*4 + 4]
jmp 0x4058b3
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, dword [ebp + 0xc]
push dword [ecx + edi*4]
push str.no_such_VFS:___s__n
push eax
call fcn.004014c0
add esp, 0xc
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop word cs:[eax + eax]
nop