Function at 0x406ba0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x408bcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
xor ebp, ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], ebp
call fcn.00401020
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 1
call fcn.004010c0
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x74]
lea ecx, [esp + 0x20]
push eax
push str.SELECT__FROM_Users_WHERE_UserName
push ecx
mov byte [esp + 0x78], 2
call sub.MFC42.DLL_operator_1
push 0x40d244
lea edx, [esp + 0x14]
mov bl, 3
push eax
push edx
mov byte [esp + 0x78], bl
call sub.MFC42.DLL_operator
mov esi, dword [eax]
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 4
call fcn.00402300
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x6c], 5
je 0x406c43
push esi
mov ecx, eax
call fcn.00402350
jmp 0x406c45
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov byte [esp + 0x6c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 2
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x18]
push ecx
mov ecx, esp
mov byte [esp + 0x70], 6
mov dword [esp + 0x28], esp
mov dword [ecx], eax
call fcn.004022e0
lea ecx, [esp + 0x2c]
call fcn.00401520
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402650
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x406caa
push 0x80004003
call fcn.00407639
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
mov esi, eax
call dword [edx + 0x50]
cmp eax, ebp
jge 0x406cc7
push 0x40d148
push esi
push eax
call fcn.00407647
cmp word [esp + 0x10], bp
je 0x406ce5
lea ecx, [esp + 0x44]
call fcn.00406a50
lea ecx, [esp + 0x44]
call fcn.00406af0
jmp 0x406f16
lea edx, [esp + 0x74]
lea ecx, [edi + 4]
push edx
call sub.MFC42.DLL_CString::operator
push 0x427d20
mov word [esp + 0x48], 8
call fcn.004074f4
cmp eax, ebp
mov dword [esp + 0x4c], eax
jne 0x406d1e
mov eax, 0x427d20
test eax, eax
je 0x406d1e
push 0x8007000e
call fcn.00407639
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6c], 7
cmp eax, ebp
jne 0x406d35
push 0x80004003
call fcn.00407639
lea ecx, [esp + 0x44]
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.004025d0
mov esi, eax
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x10], ebp
cmp word [esi], 8
mov byte [esp + 0x6c], 8
jne 0x406d74
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.00402200
jmp 0x406db0
lea ecx, [esp + 0x34]
push ecx
call ebx
push esi
push 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 9
call fcn.004023c0
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push edx
call fcn.00402200
lea eax, [esp + 0x34]
mov byte [esp + 0x6c], 8
push eax
call edi
cmp eax, ebp
jge 0x406db0
push eax
call fcn.00407639
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x6c], 0xa
cmp ecx, ebp
je 0x406dc4
call fcn.00402390
jmp 0x406dc6
xor eax, eax
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
call fcn.00402300
lea edx, [esp + 0x54]
mov byte [esp + 0x6c], 7
push edx
call edi
cmp eax, ebp
jge 0x406df2
push eax
call fcn.00407639
lea eax, [esp + 0x44]
mov byte [esp + 0x6c], 6
push eax
call edi
cmp eax, ebp
jge 0x406e08
push eax
call fcn.00407639
push str.User_type
mov word [esp + 0x38], 8
call fcn.004074f4
cmp eax, ebp
mov dword [esp + 0x3c], eax
jne 0x406e34
mov ecx, str.User_type
test ecx, ecx
je 0x406e34
push 0x8007000e
call fcn.00407639
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6c], 0xb
cmp eax, ebp
jne 0x406e4b
push 0x80004003
call fcn.00407639
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
lea eax, [esp + 0x54]
push edx
push eax
call fcn.004025d0
mov esi, eax
mov dword [esp + 0x10], ebp
cmp word [esi], 8
mov byte [esp + 0x6c], 0xc
jne 0x406e7e
mov ecx, dword [esi + 8]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402200
jmp 0x406eba
lea edx, [esp + 0x44]
push edx
call ebx
push esi
push 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 0xd
call fcn.004023c0
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
call fcn.00402200
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 0xc
push ecx
call edi
cmp eax, ebp
jge 0x406eba
push eax
call fcn.00407639
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x6c], 0xe
cmp ecx, ebp
je 0x406ece
call fcn.00402390
jmp 0x406ed0
xor eax, eax
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, dword [esp + 0x20]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [edx + 0xc], eax
call fcn.00402300
lea eax, [esp + 0x54]
mov byte [esp + 0x6c], 0xb
push eax
call edi
cmp eax, ebp
jge 0x406f00
push eax
call fcn.00407639
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 6
push ecx
call edi
cmp eax, ebp
jge 0x406f16
push eax
call fcn.00407639
lea ecx, [esp + 0x28]
call fcn.004019c0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6c], 2
cmp eax, ebp
je 0x406f32
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x406f43
call fcn.00401780
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call fcn.00401060
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 4