Function at 0x45afd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x4a90d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x234]
push 0x22e
push 0
push eax
mov esi, ecx
call fcn.0042e960
push 0x22e
lea eax, [ebp - 0x464]
push 0
push eax
call fcn.0042e960
add esp, 0x18
test edi, edi
je 0x45b08b
cmp word [edi], 0
je 0x45b08b
push edi
lea eax, [ebp - 0x234]
push 0x117
push eax
call fcn.0043703a
lea ecx, [ebp - 0x234]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b040
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x236], 0x5c
je 0x45b073
push 0x4a1a04
lea eax, [ebp - 0x234]
push 0x117
push eax
call fcn.00436fc5
add esp, 0xc
push str.CmgCryptoLib.dll
lea eax, [ebp - 0x234]
push 0x117
push eax
call fcn.00436fc5
jmp 0x45b0a1
push str.CmgCryptoLib.dll
lea eax, [ebp - 0x234]
push 0x117
push eax
call fcn.0043703a
add esp, 0xc
mov ecx, esi
call fcn.0045adb0
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
jne 0x45b230
push eax
push eax
push 0x22e
lea eax, [ebp - 0x464]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x234]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push str.Failed_to_load:__
call fcn.00459be0
lea eax, [ebp - 0x464]
push 0
push eax
call fcn.00459be0
push 0
push str.____n
call fcn.00459be0
add esp, 0x18
lea eax, [ebp - 0x234]
push eax
push 0x117
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x45b160
cmp eax, 0x117
jae 0x45b160
mov ecx, 0x117
sub ecx, eax
push str.CmgCryptoLib.dll
push ecx
lea ecx, [ebp - 0x234]
lea eax, [ecx + eax*2]
push eax
call fcn.0043703a
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x45b1c8
push 0
push 0
push 0x22e
lea eax, [ebp - 0x464]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x234]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push str.Failed_to_load:__
call fcn.00459be0
lea eax, [ebp - 0x464]
push 0
push eax
call fcn.00459be0
push 0
push str.____r_n
call fcn.00459be0
add esp, 0x18
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a63
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b1d1
push 0
push 0
push 0x22e
sub ecx, edx
lea eax, [ebp - 0x464]
push eax
sar ecx, 1
lea eax, [ebp - 0x234]
push ecx
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push str.Successfully_loaded:__
call fcn.00459be0
lea eax, [ebp - 0x464]
push 0
push eax
call fcn.00459be0
push 0
push str.____r_n
call fcn.00459be0
mov eax, dword [esi]
add esp, 0x18
push eax
mov ecx, esi
call fcn.0045b310
test eax, eax
jne 0x45b26d
push eax
push str._r_nFailed_to_map_one_or_more_CCK_API_functions___r_n
call fcn.00459be0
add esp, 8
mov ecx, esi
call fcn.0045bc10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a63
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00428a63
mov esp, ebp
pop ebp
ret 4