Function at 0x407cc0
Capabilities:
Link many functions at runtime
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49160b
mov eax, dword fs:[0]
push eax
mov eax, 0x2020
call fcn.00478020
mov eax, dword [0x4a7464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x407f2a
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push 0x493754
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
push ecx
mov word [ebp - 0x2028], cx
push 0x493344
lea ecx, [ebp - 0x202c]
mov dword [ebp - 0x2014], 7
mov dword [ebp - 0x2018], 0
call fcn.00401cd0
lea eax, [ebp - 0x2010]
mov dword [ebp - 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407d51
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x2010]
push edx
lea ecx, [ebp - 0x202c]
call fcn.00401ba0
push 1
push 0x493750
lea ecx, [ebp - 0x202c]
call fcn.00401ba0
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407d90
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x202c]
call fcn.00401ba0
mov eax, dword [ebp - 0x2028]
mov edi, 8
cmp dword [ebp - 0x2014], edi
jae 0x407dc5
lea eax, [ebp - 0x2028]
push eax
push 0x493754
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
push 0x493344
lea ecx, [ebp - 0x202c]
call fcn.00401cd0
mov eax, esi
lea edx, [eax + 2]
jmp 0x407df0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407df0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x202c]
call fcn.00401ba0
push 9
push str._nss3.dll
lea ecx, [ebp - 0x202c]
call fcn.00401ba0
mov eax, dword [ebp - 0x2028]
cmp dword [ebp - 0x2014], edi
jae 0x407e32
lea eax, [ebp - 0x2028]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x407ed0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NSS_Init
push esi
call edi
push str.NSS_Shutdown
push esi
mov dword [0x4aaa8c], eax
call edi
push str.PK11_GetInternalKeySlot
push esi
mov dword [0x4aaa9c], eax
call edi
push str.PK11_FreeSlot
push esi
mov dword [0x4aaa7c], eax
call edi
push str.PK11_Authenticate
push esi
mov dword [0x4aaa84], eax
call edi
push str.PK11SDR_Decrypt
push esi
mov dword [0x4aaa94], eax
call edi
push str.sqlite3_open
push esi
mov dword [0x4aaa80], eax
call edi
push str.sqlite3_prepare_v2
push esi
mov dword [0x4aaa88], eax
call edi
push str.sqlite3_step
push esi
mov dword [0x4aaa98], eax
call edi
push str.sqlite3_column_text
push esi
mov dword [0x4aaa90], eax
call edi
mov dword [0x4aaa78], eax
mov edi, 8
cmp dword [0x4aaa8c], 0
je 0x407f0d
cmp dword [0x4aaa9c], 0
je 0x407f0d
cmp dword [0x4aaa7c], 0
je 0x407f0d
cmp dword [0x4aaa94], 0
je 0x407f0d
cmp dword [0x4aaa80], 0
je 0x407f0d
cmp dword [0x4aaa84], 0
je 0x407f0d
mov esi, 1
jmp 0x407f0f
xor esi, esi
cmp dword [ebp - 0x2014], edi
jb 0x407f26
mov eax, dword [ebp - 0x2028]
push eax
call fcn.00476416
add esp, 4
mov eax, esi
jmp 0x407f2c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00476b99
mov esp, ebp
pop ebp
ret