Function at 0x402d6e
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x43a880
call fcn.004103b0
sub esp, 0x6c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push 1
mov dword [ebp - 0x14], ebx
call fcn.004229ac
mov eax, dword [ebx + 0xf4]
lea esi, [ebx + 0xf4]
xor edi, edi
mov dword [ebp - 0x20], esi
cmp dword [eax - 8], edi
jne 0x402dac
push edi
push edi
push 0x44a45c
jmp 0x402dc4
lea eax, [ebx + 0xf8]
mov eax, dword [ebx + 0xf8]
cmp dword [eax - 8], edi
jne 0x402dce
push edi
push edi
push 0x44a44c
call fcn.0042bd00
jmp 0x4031ef
lea ecx, [ebp - 0x38]
call fcn.00403732
push ecx
mov dword [ebp - 4], edi
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.userinfo
call fcn.0042402d
lea ecx, [ebp - 0x38]
call fcn.0040384b
push esi
lea eax, [ebp - 0x28]
push str.SELECT_UserPwd_UserPri_FROM_userinfo_WHERE_UserName
push eax
call fcn.004242c8
push 0x44a268
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
call fcn.00424254
push dword [eax]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00402377
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00423fbf
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00423fbf
mov eax, dword [ebp - 0x18]
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov dword [ecx], eax
call fcn.004023de
lea ecx, [ebp - 0x38]
call fcn.0040395c
cmp dword [ebp - 0x34], edi
mov byte [ebp - 4], 6
mov ebx, 0x80004003
jne 0x402e65
push ebx
call fcn.0041ab25
mov ecx, dword [ebp - 0x34]
call fcn.004033ab
cmp ax, di
jne 0x403159
cmp dword [ebp - 0x34], edi
jne 0x402e81
push ebx
call fcn.0041ab25
mov ecx, dword [ebp - 0x34]
call fcn.00402732
cmp dword [ebp - 0x34], edi
jne 0x402e94
push ebx
call fcn.0041ab25
mov ecx, dword [ebp - 0x34]
call fcn.004026c2
cmp ax, di
jne 0x4031bf
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [0x450670]
mov dword [ebp - 0x1c], eax
mov esi, str.UserPwd
mov byte [ebp - 4], 8
push esi
mov word [ebp - 0x58], 8
call fcn.0041a9e0
cmp eax, edi
mov dword [ebp - 0x50], eax
jne 0x402ee1
test esi, esi
je 0x402ee1
push 0x8007000e
call fcn.0041ab25
cmp dword [ebp - 0x34], edi
mov byte [ebp - 4], 9
jne 0x402ef0
push ebx
call fcn.0041ab25
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00402756
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xa
push eax
call ebx
cmp eax, edi
jge 0x402f1b
push eax
call fcn.0041ab25
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 9
call esi
cmp eax, edi
jge 0x402f35
push eax
call fcn.0041ab25
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 8
push eax
call esi
cmp eax, edi
jge 0x402f49
push eax
call fcn.0041ab25
cmp word [ebp - 0x48], 1
je 0x402f84
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
push eax
call fcn.004024ab
mov ecx, dword [eax]
mov byte [ebp - 4], 0xb
cmp ecx, edi
je 0x402f6d
call fcn.0040244f
jmp 0x402f6f
xor eax, eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.00424148
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.004023cb
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x1c]
add eax, 0xf8
mov eax, dword [eax]
push eax
call fcn.00410414
pop ecx
test eax, eax
pop ecx
jne 0x4030de
push dword [ebp - 0x20]
mov ecx, 0x4546a4
call fcn.004240f8
mov edi, str.UserPri
mov word [ebp - 0x58], 8
push edi
call fcn.0041a9e0
test eax, eax
mov dword [ebp - 0x50], eax
jne 0x402fd4
test edi, edi
je 0x402fd4
push 0x8007000e
call fcn.0041ab25
cmp dword [ebp - 0x34], 0
mov byte [ebp - 4], 0xc
jne 0x402fe8
push 0x80004003
call fcn.0041ab25
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00402756
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xd
call ebx
test eax, eax
jge 0x40300d
push eax
call fcn.0041ab25
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0xc
push eax
call esi
test eax, eax
jge 0x403021
push eax
call fcn.0041ab25
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 8
push eax
call esi
test eax, eax
jge 0x403035
push eax
call fcn.0041ab25
cmp word [ebp - 0x48], 1
je 0x403072
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
push eax
call fcn.004024ab
mov ecx, dword [eax]
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x403059
call fcn.0040244f
jmp 0x40305b
xor eax, eax
push eax
mov ecx, 0x4546a0
call fcn.00424148
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.004023cb
push 0
lea ecx, [ebp - 0x34]
call fcn.004022c0
test al, al
jne 0x4030a2
cmp dword [ebp - 0x34], 0
jne 0x403090
push 0x80004003
call fcn.0041ab25
mov ecx, dword [ebp - 0x34]
call fcn.004026ea
push 0
lea ecx, [ebp - 0x34]
call fcn.00402295
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00423fbf
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 6
push eax
call esi
test eax, eax
jge 0x4030c2
push eax
call fcn.0041ab25
lea ecx, [ebp - 0x18]
call fcn.004023cb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00403779
push 1
pop eax
jmp 0x4031f1
mov ecx, dword [ebp - 0x34]
cmp ecx, edi
je 0x4030f3
call fcn.004026ea
push edi
lea ecx, [ebp - 0x34]
call fcn.00402295
push edi
push edi
push 0x44a3e0
call fcn.0042bd00
mov ecx, dword [ebp - 0x20]
call fcn.00423f4a
mov ebx, dword [ebp - 0x14]
lea ecx, [ebx + 0xf8]
call fcn.00423f4a
push edi
mov ecx, ebx
call fcn.004229ac
push 0x3f2
mov ecx, ebx
call fcn.00423449
mov ecx, eax
call fcn.0042372c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00423fbf
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 6
push eax
call esi
cmp eax, edi
jge 0x4031db
push eax
call fcn.0041ab25
jmp 0x4031db
mov ecx, esi
call fcn.00423f4a
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0xf8]
call fcn.00423f4a
mov ecx, dword [ebp - 0x14]
push edi
call fcn.004229ac
mov ecx, dword [ebp - 0x14]
push 0x3f2
call fcn.00423449
mov ecx, eax
call fcn.0042372c
push edi
push edi
push 0x44a3c8
call fcn.0042bd00
jmp 0x4031db
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 4
cmp ecx, edi
je 0x4031db
call fcn.004026ea
push edi
lea ecx, [ebp - 0x34]
call fcn.00402295
lea ecx, [ebp - 0x18]
call fcn.004023cb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00403779
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret