Function at 0x42c720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x4e362c]
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.00470010
push 0x22e
lea eax, [ebp - 0x464]
push 0
push eax
call fcn.00470010
add esp, 0x18
test edi, edi
je 0x42c7db
cmp word [edi], 0
je 0x42c7db
push edi
lea eax, [ebp - 0x234]
push 0x117
push eax
call fcn.00477248
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 0x42c790
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x236], 0x5c
je 0x42c7c3
push 0x4d9cb4
lea eax, [ebp - 0x234]
push 0x117
push eax
call fcn.00479b4d
add esp, 0xc
push str.CmgCryptoLib.dll
lea eax, [ebp - 0x234]
push 0x117
push eax
call fcn.00479b4d
jmp 0x42c7f1
push str.CmgCryptoLib.dll
lea eax, [ebp - 0x234]
push 0x117
push eax
call fcn.00477248
add esp, 0xc
mov ecx, esi
call fcn.0042c500
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
jne 0x42c980
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.0042b4c0
lea eax, [ebp - 0x464]
push 0
push eax
call fcn.0042b4c0
push 0
push str.____n
call fcn.0042b4c0
add esp, 0x18
lea eax, [ebp - 0x234]
push eax
push 0x117
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x42c8b0
cmp eax, 0x117
jae 0x42c8b0
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.00477248
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 0x42c918
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.0042b4c0
lea eax, [ebp - 0x464]
push 0
push eax
call fcn.0042b4c0
push 0
push str.____r_n
call fcn.0042b4c0
add esp, 0x18
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
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 0x42c921
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.0042b4c0
lea eax, [ebp - 0x464]
push 0
push eax
call fcn.0042b4c0
push 0
push str.____r_n
call fcn.0042b4c0
mov eax, dword [esi]
add esp, 0x18
push eax
mov ecx, esi
call fcn.0042ca60
test eax, eax
jne 0x42c9bd
push eax
push str._r_nFailed_to_map_one_or_more_CCK_API_functions___r_n
call fcn.0042b4c0
add esp, 8
mov ecx, esi
call fcn.0042d360
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.0046d700
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0046d700
mov esp, ebp
pop ebp
ret 4