Function at 0x402d49
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x41e45b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
lea ecx, [esi + 0x108]
push eax
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CWnd::GetWindowTextA
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0xb8]
call sub.MFC42.DLL_CWnd::GetWindowTextA
lea edx, [esp + 0xc]
lea ecx, [esi + 0x74]
push edx
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov eax, dword [esi + 0x148]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x42e360
push eax
call edi
add esp, 8
test eax, eax
jne 0x402df2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x70]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push str.SELECT__FROM__s_WHERE__s__s__s
push ecx
jmp 0x402e75
mov eax, dword [esi + 0x148]
push 0x42e2b8
push eax
call edi
add esp, 8
test eax, eax
jne 0x402e58
mov edx, dword [esp + 0x10]
push 0x42e338
push edx
call edi
add esp, 8
test eax, eax
je 0x402e39
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x70]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push 0x42e314
push ecx
jmp 0x402e75
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esi + 0x70]
push eax
push ecx
push edx
lea eax, [esp + 0x28]
push str.SELECT__FROM__s_WHERE__s__s__s__
push eax
jmp 0x402e75
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x70]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push 0x42e314
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x148]
add esp, 0x18
push 0x42e2e8
push eax
call edi
add esp, 8
test eax, eax
jne 0x402eb2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x70]
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push str.SELECT__FROM__s_WHERE__s_LIKE__s__
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
push 1
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea edi, [esi + 0x72c]
mov ecx, edi
call fcn.0041b820
sub esp, 0xc
lea eax, [edi + 4]
mov ebp, esp
mov dword [esp + 0x28], esp
push eax
mov dword [esp + 0x2c], ebp
lea ecx, [ebp + 4]
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [edi + 8]
mov byte [esp + 0x34], 4
test edi, edi
mov dword [ebp + 8], edi
je 0x402f00
mov ecx, dword [edi]
push edi
call dword [ecx + 4]
lea ecx, [esi + 0x158]
mov dword [ebp], 0x424ef0
mov byte [esp + 0x34], 3
call fcn.0041b300
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call fcn.0041d310
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0041d310
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.0041d310
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041d310
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x20
ret