Function at 0x406da0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x42ac9b
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.00401680
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 1
call fcn.00401720
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x74]
lea ecx, [esp + 0x20]
push eax
push str.SELECT__FROM_UserInfo_WHERE_UserName__
push ecx
mov byte [esp + 0x78], 2
call fcn.0041f526
push 0x437438
lea edx, [esp + 0x14]
mov bl, 3
push eax
push edx
mov byte [esp + 0x78], bl
call fcn.0041f4b2
mov esi, dword [eax]
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 4
call fcn.00401a10
push 0xc
call fcn.0042325e
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x6c], 5
je 0x406e43
push esi
mov ecx, eax
call fcn.00403e20
jmp 0x406e45
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov byte [esp + 0x6c], bl
call fcn.0041f261
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 2
call fcn.0041f261
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.004045e0
lea ecx, [esp + 0x2c]
call fcn.00401bd0
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404870
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x406eaa
push 0x80004003
call fcn.0041ac63
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 0x406ec7
push 0x437268
push esi
push eax
call fcn.0041ac71
cmp word [esp + 0x10], bp
je 0x406ee5
lea ecx, [esp + 0x44]
call fcn.00406aa0
lea ecx, [esp + 0x44]
call fcn.00406b40
jmp 0x407115
lea edx, [esp + 0x74]
lea ecx, [edi + 4]
push edx
call fcn.0041f356
push str.Passwd
mov word [esp + 0x48], 8
call fcn.0041ab1e
cmp eax, ebp
mov dword [esp + 0x4c], eax
jne 0x406f1e
mov eax, str.Passwd
test eax, eax
je 0x406f1e
push 0x8007000e
call fcn.0041ac63
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6c], 7
cmp eax, ebp
jne 0x406f35
push 0x80004003
call fcn.0041ac63
lea ecx, [esp + 0x44]
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.004047f0
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 0x406f74
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.00404500
jmp 0x406fb0
lea ecx, [esp + 0x34]
push ecx
call ebx
push esi
push 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 9
call fcn.00404630
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push edx
call fcn.00404500
lea eax, [esp + 0x34]
mov byte [esp + 0x6c], 8
push eax
call edi
cmp eax, ebp
jge 0x406fb0
push eax
call fcn.0041ac63
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x6c], 0xa
cmp ecx, ebp
je 0x406fc4
call fcn.00404600
jmp 0x406fc6
xor eax, eax
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 8
call fcn.0041f3a6
lea ecx, [esp + 0x10]
call fcn.00401a10
lea edx, [esp + 0x54]
mov byte [esp + 0x6c], 7
push edx
call edi
cmp eax, ebp
jge 0x406ff2
push eax
call fcn.0041ac63
lea eax, [esp + 0x44]
mov byte [esp + 0x6c], 6
push eax
call edi
cmp eax, ebp
jge 0x407008
push eax
call fcn.0041ac63
push str.UserType
mov word [esp + 0x38], 8
call fcn.0041ab1e
cmp eax, ebp
mov dword [esp + 0x3c], eax
jne 0x407034
mov ecx, str.UserType
test ecx, ecx
je 0x407034
push 0x8007000e
call fcn.0041ac63
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6c], 0xb
cmp eax, ebp
jne 0x40704b
push 0x80004003
call fcn.0041ac63
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
lea eax, [esp + 0x54]
push edx
push eax
call fcn.004047f0
mov esi, eax
mov dword [esp + 0x10], ebp
cmp word [esi], 8
mov byte [esp + 0x6c], 0xc
jne 0x40707e
mov ecx, dword [esi + 8]
push ecx
lea ecx, [esp + 0x14]
call fcn.00404500
jmp 0x4070ba
lea edx, [esp + 0x44]
push edx
call ebx
push esi
push 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 0xd
call fcn.00404630
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
call fcn.00404500
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 0xc
push ecx
call edi
cmp eax, ebp
jge 0x4070ba
push eax
call fcn.0041ac63
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x6c], 0xe
cmp ecx, ebp
je 0x4070ce
call fcn.00404600
jmp 0x4070d0
xor eax, eax
push eax
call fcn.004114de
mov edx, dword [esp + 0x20]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [edx + 0xc], eax
call fcn.00401a10
lea eax, [esp + 0x54]
mov byte [esp + 0x6c], 0xb
push eax
call edi
cmp eax, ebp
jge 0x4070ff
push eax
call fcn.0041ac63
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 6
push ecx
call edi
cmp eax, ebp
jge 0x407115
push eax
call fcn.0041ac63
lea ecx, [esp + 0x28]
call fcn.00402070
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6c], 2
cmp eax, ebp
je 0x407131
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x407142
call fcn.00401e30
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call fcn.004016c0
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0041f261
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 4