Function at 0x404b10
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x40bb5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0x40d7c4
mov dword [esp + 0x70], ebx
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xb8]
lea ecx, [esp + 0x18]
push eax
push str.SELECT__FROM_CP_WHERE_cp_no_s
push ecx
mov byte [esp + 0xbc], 1
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x24]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0xb0], 2
je 0x404b9d
push esi
mov ecx, eax
call fcn.00404630
jmp 0x404b9f
xor eax, eax
cmp eax, ebx
mov byte [esp + 0xb0], 1
mov dword [esp + 0x14], eax
jne 0x404bb9
push 0x8007000e
call fcn.0040b3c2
push 1
push ebx
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004045c0
lea eax, [esp + 0x1c]
lea ecx, [edi + 0xb0]
push eax
mov byte [esp + 0xc0], 3
call fcn.004035f0
mov ecx, eax
call fcn.00403520
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403ad0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x404c06
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x404c1c
push 0x80004003
call fcn.0040b3c2
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov esi, eax
call dword [ecx + 0x50]
cmp eax, ebx
jge 0x404c39
push 0x411100
push esi
push eax
call fcn.0040b3d0
cmp word [esp + 0x20], bx
je 0x404c4a
push SysReAllocString
call fcn.0040b3c2
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x404c60
push 0x80004003
call fcn.0040b3c2
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x411110
push eax
call dword [ecx]
cmp eax, ebx
jge 0x404c79
push eax
call fcn.0040b3c2
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x404c92
push eax
call fcn.0040b3c2
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x404cb2
push 0x80004003
call fcn.0040b3c2
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
mov esi, eax
call dword [edx + 0x80]
cmp eax, ebx
jge 0x404ccd
push 0x411100
push esi
push eax
call fcn.0040b3d0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
cmp esi, ebx
mov dword [esp + 0x10], eax
mov byte [esp + 0xb0], 1
je 0x404d21
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jne 0x404d1d
cmp esi, ebx
je 0x404d1d
mov eax, dword [esi]
cmp eax, ebx
je 0x404d04
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x404d14
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0xb0], bl
call fcn.0040afa0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xb0], 0xffffffff
cmp eax, ebx
je 0x404d4a
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0xa8]
pop edi
fld dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xa8
ret 4