Function at 0x1001ac60
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 [0x101ac034]
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 [0x101660d8]
mov dword [ebp - 0x14], ecx
mov edx, dword [0x101660dc]
mov dword [ebp - 0x10], edx
mov eax, dword [0x101660e0]
mov dword [ebp - 0xc], eax
mov cx, word [0x101660e4]
mov word [ebp - 8], cx
lea edx, [ebp - 0x238]
push edx
mov ecx, dword [ebp - 0x23c]
call fcn.1001a290
lea ecx, [ebp - 0x238]
call fcn.10001f20
movzx eax, al
test eax, eax
je 0x1001ace7
mov byte [ebp - 0x23e], 0
lea ecx, [ebp - 0x238]
call fcn.10003e00
mov al, byte [ebp - 0x23e]
jmp 0x1001af0e
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.10002bf0
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 0x1001ad7f
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 0x23d], 0
lea ecx, [ebp - 0x238]
call fcn.10003e00
mov al, byte [ebp - 0x23d]
jmp 0x1001af0e
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 0x1001aef6
mov eax, dword [ebp - 0x23c]
cmp dword [eax + 0x74], 0
je 0x1001aef6
mov ecx, dword [ebp - 0x23c]
cmp dword [ecx + 0x6c], 0
je 0x1001aef6
mov edx, dword [ebp - 0x23c]
cmp dword [edx + 0x68], 0
je 0x1001aef6
mov eax, dword [ebp - 0x23c]
cmp dword [eax + 0x64], 0
je 0x1001aef6
mov ecx, dword [ebp - 0x23c]
cmp dword [ecx + 0x70], 0
je 0x1001aef6
mov edx, dword [ebp - 0x23c]
cmp dword [edx + 0x78], 0
je 0x1001aef6
mov eax, dword [ebp - 0x23c]
cmp dword [eax + 0x7c], 0
je 0x1001aef6
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 0x23f], 1
lea ecx, [ebp - 0x238]
call fcn.10003e00
mov al, byte [ebp - 0x23f]
jmp 0x1001af0e
mov byte [ebp - 0x240], 0
lea ecx, [ebp - 0x238]
call fcn.10003e00
mov al, byte [ebp - 0x240]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101506bb
mov esp, ebp
pop ebp
ret