Function at 0x1001a800
Capabilities:
Get common file path
Link many functions at runtime
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
mov eax, dword [str.nss3.dll]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x10161228]
mov dword [ebp - 0x14], ecx
mov edx, dword [0x1016122c]
mov dword [ebp - 0x10], edx
mov eax, dword [0x10161230]
mov dword [ebp - 0xc], eax
mov cx, word [0x10161234]
mov word [ebp - 8], cx
lea edx, [ebp - 0x238]
push edx
mov ecx, dword [ebp - 0x23c]
call fcn.10019e30
lea ecx, [ebp - 0x238]
call fcn.10003ae0
movzx eax, al
test eax, eax
je 0x1001a887
mov byte [ebp - 0x23e], 0
lea ecx, [ebp - 0x238]
call fcn.10002d10
mov al, byte [ebp - 0x23e]
jmp 0x1001aaae
xor ecx, ecx
mov word [ebp - 0x220], cx
push 0x206
push 0
lea edx, [ebp - 0x21e]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x244], 0x104
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x238]
call fcn.10001960
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp - 0x23c]
cmp dword [edx + 0x5c], 0
jne 0x1001a91f
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 0x23d], 0
lea ecx, [ebp - 0x238]
call fcn.10002d10
mov al, byte [ebp - 0x23d]
jmp 0x1001aaae
push str.NSS_Init
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x60], eax
push str.PL_Base64Decode
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x74], eax
push str.PK11SDR_Decrypt
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x6c], eax
push str.PK11_Authenticate
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x68], eax
push str.PK11_GetInternalKeySlot
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x64], eax
push str.PK11_FreeSlot
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x70], eax
push str.NSS_Shutdown
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x78], eax
push str.SECITEM_ZfreeItem
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x7c], eax
mov edx, dword [ebp - 0x23c]
cmp dword [edx + 0x60], 0
je 0x1001aa96
mov eax, dword [ebp - 0x23c]
cmp dword [eax + 0x74], 0
je 0x1001aa96
mov ecx, dword [ebp - 0x23c]
cmp dword [ecx + 0x6c], 0
je 0x1001aa96
mov edx, dword [ebp - 0x23c]
cmp dword [edx + 0x68], 0
je 0x1001aa96
mov eax, dword [ebp - 0x23c]
cmp dword [eax + 0x64], 0
je 0x1001aa96
mov ecx, dword [ebp - 0x23c]
cmp dword [ecx + 0x70], 0
je 0x1001aa96
mov edx, dword [ebp - 0x23c]
cmp dword [edx + 0x78], 0
je 0x1001aa96
mov eax, dword [ebp - 0x23c]
cmp dword [eax + 0x7c], 0
je 0x1001aa96
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 0x23f], 1
lea ecx, [ebp - 0x238]
call fcn.10002d10
mov al, byte [ebp - 0x23f]
jmp 0x1001aaae
mov byte [ebp - 0x240], 0
lea ecx, [ebp - 0x238]
call fcn.10002d10
mov al, byte [ebp - 0x240]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret