Function at 0x1003b4e0
Capabilities:
Terminate process

Disassembly:
sub esp, 0xa0
mov eax, dword [0x1011f07c]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa8]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
xor ebp, ebp
lea ebx, [ebx]
cmp dword [esp + 0x14], 0
je 0x1003b55a
cmp dword [0x10122724], 0
je 0x1003b55a
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x1003b89e
cmp dword [0x1012009c], edi
je 0x1003b89e
jmp 0x1003b55e
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x10]
mov ebx, dword [sym.imp.MSVCR90.dll_fflush]
push eax
call ebx
add esp, 4
test edi, edi
je 0x1003b584
mov eax, dword [esp + 0x1c]
push edi
call fcn.10036580
add esp, 4
jmp 0x1003b5bb
mov eax, 0x10122404
test ebp, ebp
jg 0x1003b592
mov eax, 0x10122420
push eax
push 0x1010272c
call dword [sym.imp.MSVCR90.dll_printf]
mov edi, dword [sym.imp.MSVCR90.dll___iob_func]
call edi
add eax, 0x20
push eax
call ebx
call edi
push eax
mov eax, dword [esp + 0x2c]
call fcn.10036580
add esp, 0x10
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x1003b887
mov ecx, dword [0x1012272c]
test ecx, ecx
je 0x1003b5e8
cmp dword [esp + 0x20], 0
jne 0x1003b89e
mov dword [0x1012272c], 0
inc dword [esp + 0x24]
test ebp, ebp
jne 0x1003b5ff
mov eax, edi
call fcn.1003b3a0
test eax, eax
jne 0x1003b530
cmp byte [edi], 0x2e
jne 0x1003b645
test ebp, ebp
jne 0x1003b645
mov ebx, dword [esp + 0x18]
cmp dword [ebx + 4], ebp
je 0x1003b620
push edi
push 0x10102cac
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
push ebx
mov ecx, edi
call fcn.10038ed0
add esp, 4
cmp eax, 2
je 0x1003b8d0
test eax, eax
je 0x1003b530
inc dword [esp + 0x14]
jmp 0x1003b530
mov eax, edi
call fcn.1003b440
test eax, eax
je 0x1003b676
test esi, esi
je 0x1003b66e
push esi
mov byte [esi + ebp], 0x3b
mov byte [esi + ebp + 1], 0
call fcn.100a0ad0
add esp, 4
mov byte [esi + ebp], 0
test eax, eax
je 0x1003b676
mov edx, 0x3b
mov word [edi], dx
cmp byte [edi], 0
mov eax, edi
je 0x1003b686
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x1003b680
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
lea eax, [ebx + ebp + 2]
cmp eax, dword [esp + 0x28]
jl 0x1003b6ba
lea eax, [ebx + ebp + 0x64]
push eax
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.MSVCR90.dll_realloc]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x1003b900
mov esi, eax
mov dword [esp + 0x34], ebp
test ebp, ebp
jne 0x1003b70f
xor esi, esi
cmp byte [edi], 0
je 0x1003b6e9
lea esp, [esp]
movzx ecx, byte [edi + esi]
push ecx
call dword [sym.imp.MSVCR90.dll_isspace]
add esp, 4
test eax, eax
je 0x1003b6e9
inc esi
cmp byte [edi + esi], 0
jne 0x1003b6d0
mov eax, dword [esp + 0x10]
mov ebp, ebx
sub ebp, esi
lea edx, [ebp + 1]
push edx
add edi, esi
push edi
push eax
call sub.MSVCR90.dll_memcpy
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x2c], ecx
jmp 0x1003b727
lea edx, [ebx + 1]
mov byte [esi + ebp], 0xa
push edx
inc ebp
lea eax, [esi + ebp]
push edi
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add ebp, ebx
test ebp, ebp
je 0x1003b530
mov edx, dword [esp + 0x34]
mov ecx, ebp
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x1003b74b
add edx, esi
nop
cmp byte [edx + eax], 0x3b
je 0x1003b75f
inc eax
cmp eax, ecx
jl 0x1003b740
mov eax, esi
call fcn.1003b3a0
test eax, eax
je 0x1003b530
jmp 0x1003b528
push esi
call fcn.100a0ad0
add esp, 4
test eax, eax
je 0x1003b74b
mov esi, dword [esp + 0x18]
mov dword [esi + 0xc], 0
call fcn.10038770
xor ebp, ebp
cmp dword [0x1012271c], ebp
je 0x1003b7ac
mov eax, dword [0x10122720]
cmp eax, ebp
je 0x1003b7ac
push 0x101223f8
push 0x10122418
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [0x101223f4]
lea edx, [esp + 0x44]
push edx
push ecx
call eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
mov ebx, esi
mov ecx, dword [ebx]
push ebx
push eax
push ecx
call fcn.10037d60
add esp, 0x10
mov esi, eax
call fcn.10036360
cmp esi, ebp
mov esi, dword [esp + 0x30]
jne 0x1003b7db
cmp esi, ebp
je 0x1003b87e
cmp dword [esp + 0x20], ebp
jne 0x1003b7ff
cmp dword [0x1012009c], ebp
je 0x1003b7ff
push str.Error:
lea edx, [esp + 0x4c]
push edx
push 0x64
call fcn.10041370
add esp, 0xc
jmp 0x1003b818
mov eax, dword [esp + 0x2c]
push eax
push str.Error:_near_line__d:
lea ecx, [esp + 0x50]
push ecx
push 0x64
call fcn.10041370
add esp, 0x10
cmp esi, ebp
je 0x1003b851
push esi
lea edx, [esp + 0x4c]
push edx
push str._s__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push esi
call fcn.1003fb70
mov esi, dword [esp + 0x24]
add esp, 0x14
inc dword [esp + 0x14]
mov dword [esp + 0x30], ebp
jmp 0x1003b530
mov eax, dword [ebx]
push eax
call fcn.100a28b0
add esp, 4
push eax
lea ecx, [esp + 0x4c]
push ecx
push str._s__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x10
inc dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x1003b530
cmp dword [0x1012009c], 0
je 0x1003b89e
push 0x10102464
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
test ebp, ebp
je 0x1003b8d0
mov eax, esi
call fcn.1003b3a0
test eax, eax
jne 0x1003b8c6
push esi
push str.Error:_incomplete_SQL:__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.MSVCR90.dll_free]
mov ecx, dword [esp + 0xb0]
add esp, 4
pop edi
xor eax, eax
cmp dword [esp + 0x10], eax
pop esi
pop ebp
setg al
pop ebx
xor ecx, esp
call fcn.100e78b2
add esp, 0xa0
ret
push str.Error:_out_of_memory_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR90.dll_exit]
int3