Function at 0x4109e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
mov eax, dword [0x47c9f0]
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x188], 0
lea ecx, [ebp - 0x118]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov byte [ebp - 4], 1
mov byte [ebp - 0x114], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
cmp dword [eax + 0xe4], 0x3e8
jle 0x410a71
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xe4], 0xbb8
jl 0x410ab4
mov edx, dword [ebp + 8]
cmp dword [edx + 0xe4], 3
je 0x410ab4
mov eax, dword [ebp + 8]
cmp dword [eax + 0xe4], 4
je 0x410ab4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xe4], 2
je 0x410ab4
mov edx, dword [ebp + 8]
cmp dword [edx + 0xe4], 7
je 0x410ab4
mov eax, dword [ebp + 8]
cmp dword [eax + 0xe4], 0xbbb
jne 0x410f37
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xe4], 3
je 0x410acc
mov edx, dword [ebp + 8]
cmp dword [edx + 0xe4], 4
jne 0x410b0a
mov eax, dword [ebp + 8]
add eax, 0x19d
push eax
lea ecx, [ebp - 0x118]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
push 0x46855c
lea ecx, [ebp - 0x118]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
mov ecx, dword [ebp + 8]
add ecx, 0x160
push ecx
lea ecx, [ebp - 0x118]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
jmp 0x410b20
mov edx, dword [ebp + 8]
add edx, 0x19d
push edx
lea ecx, [ebp - 0x118]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [ebp - 0x120]
call fcn.00437f60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x134]
call fcn.004381a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x124]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
add eax, 0x30
push eax
push 0x468560
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [ebp - 0x138]
call fcn.00436220
mov byte [ebp - 4], 5
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x18c]
call fcn.004025a0
movzx ecx, al
test ecx, ecx
jne 0x410c0e
mov dword [ebp - 0x13c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x138]
call fcn.00438ed0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x124]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x134]
call fcn.00438420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.00438010
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x13c]
jmp 0x410f6a
lea ecx, [ebp - 0x138]
call fcn.004362a0
mov ecx, eax
call fcn.00438c50
movsx edx, ax
test edx, edx
je 0x410cb2
lea ecx, [ebp - 0x138]
call fcn.004362a0
mov ecx, eax
call fcn.00438d10
mov dword [ebp - 0x140], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x138]
call fcn.00438ed0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x124]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x134]
call fcn.00438420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.00438010
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x140]
jmp 0x410f6a
push 0x4685ac
lea ecx, [ebp - 0x154]
call fcn.004381c0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x164]
push ecx
lea ecx, [ebp - 0x138]
call fcn.004362a0
mov ecx, eax
call fcn.00438d90
mov dword [ebp - 0x190], eax
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x194], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x194]
push eax
lea ecx, [ebp - 0x134]
call fcn.00438380
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x164]
call fcn.00438420
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x154]
call fcn.00438420
movzx ecx, word [ebp - 0x134]
cmp ecx, 1
je 0x410d46
lea edx, [ebp - 0x134]
mov dword [ebp - 0x198], edx
jmp 0x410d87
push 0x4685b5
lea ecx, [ebp - 0x17c]
call fcn.004381c0
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x188]
or ecx, 1
mov dword [ebp - 0x188], ecx
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x198], edx
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x120]
call fcn.004385c0
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x188]
and edx, 1
je 0x410dc9
and dword [ebp - 0x188], 0xfffffffe
lea ecx, [ebp - 0x17c]
call fcn.00438420
push pe_nt_image_headers32
lea ecx, [ebp - 0x120]
call fcn.00438030
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
lea ecx, [ebp - 0x138]
call fcn.004362a0
mov ecx, eax
call fcn.00438d10
lea ecx, [ebp - 0x118]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
push eax
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.MSVCR71.dll_strstr]
add esp, 8
test eax, eax
jne 0x410efa
lea ecx, [ebp - 0x118]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xe4]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0x4685b8
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
mov eax, dword [ebp + 8]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
push 0x4685c8
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x18c]
call fcn.00402790
movzx ecx, al
mov dword [ebp - 0x180], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x138]
call fcn.00438ed0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x124]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x134]
call fcn.00438420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.00438010
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x180]
jmp 0x410f6a
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x138]
call fcn.00438ed0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x124]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x134]
call fcn.00438420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.00438010
mov dword [ebp - 0x184], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00458cfb
pop edi
mov esp, ebp
pop ebp
ret 4