Function at 0x408d6e
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x44c
mov eax, dword [0x4c3014]
xor eax, esp
mov dword [esp + 0x444], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x40]
push esi
push str._skey4.db
mov edi, 0x104
push edi
push eax
call fcn.0040564d
push esi
push str._skey3.db
lea eax, [esp + 0x260]
push edi
push eax
call fcn.0040564d
add esp, 0x20
lea ecx, [esp + 0x40]
xor ebx, ebx
call fcn.0046235b
test al, al
je 0x408f62
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00461af2
pop ecx
pop ecx
test eax, eax
jne 0x408fba
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push 1
push 0xffffffffffffffff
mov edx, str.SELECT_item1__item2_FROM_metadata_WHERE_id__password_
call fcn.0044bce5
add esp, 0x14
push dword [esp + 0x14]
call fcn.0042d1f3
pop ecx
cmp eax, 0x64
jne 0x408f3f
push ebx
push dword [esp + 0x18]
call fcn.0042d58b
push ebx
push dword [esp + 0x20]
mov ebp, eax
call fcn.0042d5af
push 1
push dword [esp + 0x28]
mov edi, eax
call fcn.0042d672
push 1
push dword [esp + 0x30]
mov ebx, eax
call fcn.0042d5af
mov edx, edi
mov ecx, ebp
mov esi, eax
call fcn.00462598
mov ebp, eax
mov edx, esi
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
lea eax, [esp + 0x48]
xor edi, edi
push eax
call fcn.0040b778
add esp, 0x28
test al, al
je 0x408e86
lea eax, [esp + 0x20]
mov edx, ebp
push eax
lea ecx, [esp + 0x28]
call fcn.00408202
pop ecx
push dword [esp + 0x18]
mov edi, eax
call fcn.00484888
pop ecx
push dword [esp + 0x14]
call fcn.0042cb02
pop ecx
test edi, edi
je 0x408f4c
xor ebx, ebx
mov edx, str.password_check
mov ecx, ebx
mov eax, dword [edi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x408f4c
inc ecx
cmp ecx, 4
jne 0x408ea1
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push 1
push 0xffffffffffffffff
mov edx, str.SELECT_a11__a102_FROM_nssPrivate_
call fcn.0044bce5
add esp, 0x14
push dword [esp + 0x14]
call fcn.0042d1f3
pop ecx
cmp eax, 0x64
jne 0x408f3f
push ebx
push dword [esp + 0x18]
call fcn.0042d672
push ebx
push dword [esp + 0x20]
mov esi, eax
call fcn.0042d5af
add esp, 0x10
test eax, eax
je 0x408f35
test esi, esi
je 0x408f35
lea ecx, [esp + 0x18]
mov edx, eax
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.0040b778
pop ecx
pop ecx
test al, al
je 0x408f35
lea eax, [esp + 0x20]
mov edx, ebp
push eax
lea ecx, [esp + 0x28]
call fcn.00408202
pop ecx
push dword [esp + 0x18]
mov ebx, eax
call fcn.00484888
pop ecx
push dword [esp + 0x14]
call fcn.0042cb02
pop ecx
mov ecx, dword [esp + 0x1c]
xor edx, edx
call fcn.00460405
jmp 0x408fba
push ebp
call fcn.00484888
pop ecx
test edi, edi
je 0x408f5e
push edi
call fcn.00484888
pop ecx
xor eax, eax
jmp 0x408fbc
lea ecx, [esp + 0x248]
call fcn.0046235b
test al, al
je 0x408fba
push 6
pop ecx
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x248]
lea ecx, [esp + 0x24]
call fcn.004084f9
test al, al
je 0x408f9c
lea ecx, [esp + 0x24]
call fcn.0040897a
mov ebx, eax
push dword [esp + 0x24]
call fcn.00484888
pop ecx
push dword [esp + 0x34]
call fcn.00484888
pop ecx
push dword [esp + 0x2c]
call fcn.00484888
pop ecx
mov eax, ebx
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047c71d
add esp, 0x44c
ret