Function at 0x40bc50
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x1044
call fcn.0045ec70
mov ecx, dword [esp + 0x105c]
mov edx, dword [esp + 0x1058]
push ebx
push ebp
push esi
lea eax, [esp + 0x50]
push edi
push eax
mov eax, dword [esp + 0x1068]
push ecx
mov ecx, dword [esp + 0x1068]
push edx
mov edx, dword [esp + 0x1068]
push eax
mov eax, dword [esp + 0x1068]
push ecx
push edx
push eax
call fcn.0040b840
add esp, 0xc
lea edx, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00445210
call fcn.00406fa0
mov ebx, eax
add esp, 0x10
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x20]
mov edx, dword [ebx]
xor ecx, ecx
test eax, eax
setge cl
lea eax, [esp + 0x14]
mov ebp, ecx
push eax
mov ecx, ebx
call dword [edx + 0x24]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1070]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00445280
test ebp, ebp
jne 0x40bd1c
test ebx, ebx
je 0x40bd0f
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1044
ret
mov ecx, dword [esp + 0x1074]
lea edx, [esp + 0x854]
push ecx
push str.SELECT_password_FROM_GATC_KCOMDB_WHERE_ambiente_s
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x854]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00445210
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xc]
mov ebp, eax
xor eax, eax
test ebp, ebp
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x40be86
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x24]
test al, al
jne 0x40be86
mov al, byte [ebp + 4]
test al, al
jne 0x40be48
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00445280
lea ecx, [esp + 0x28]
push 0x46e08c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov edi, dword [esp + 0x1078]
lea esi, [esp + 0x28]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x40be11
test al, al
je 0x40be0d
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x40be11
add esi, 2
add edi, 2
test al, al
jne 0x40bde9
xor eax, eax
jmp 0x40be16
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40be24
mov dword [esp + 0x10], 1
jmp 0x40be6f
mov edi, str.Incorrect_password.
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1070]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x40be6a
mov edi, str.Wrong_company_value.
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x1070]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x1c]
test ebp, ebp
je 0x40bead
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
jmp 0x40bead
mov edi, str.No_values_on_database.
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1070]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test ebx, ebx
je 0x40bec0
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1044
ret