Function at 0x4d5a66
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2b4], 0
xor eax, eax
and dword [ebp - 0x2c0], 0
push ebx
push esi
push edi
mov word [ebp - 0x2b0], ax
xor edi, edi
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2b8], edi
push eax
push 0x104
mov esi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4d5abe
cmp eax, 0x104
jb 0x4d5adc
call fcn.004c73cc
test eax, eax
je 0x4d5ad3
push eax
push 0x10c501a3
call dword [sym.imp.certcli.dll_Ordinal_357]
xor eax, eax
mov word [ebp - 0x2b0], ax
and dword [ebp - 0x2bc], edi
lea eax, [ebp - 0x2bc]
push eax
mov edx, 0x12d
lea ecx, [ebp - 0x2b0]
call fcn.0043ea90
test eax, eax
js 0x4d5d39
jne 0x4d5d39
mov eax, dword [ebp - 0x2bc]
test eax, eax
je 0x4d5b1e
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x2b2]
je 0x4d5b48
push 0x4050fc
mov edx, 0x12d
lea ecx, [ebp - 0x2b0]
call fcn.0043eadb
test eax, eax
je 0x4d5b48
push eax
push 0x10d301a3
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4d5ce1
push dword [ebp + 8]
lea eax, [ebp - 0x54]
push esi
push 0x518724
push 0x27
push eax
call fcn.0043ec15
add esp, 0x14
test eax, eax
je 0x4d5b6b
push eax
push 0x10db01a3
jmp 0x4d5b3d
lea eax, [ebp - 0x54]
mov edx, 0x12d
push eax
lea ecx, [ebp - 0x2b0]
call fcn.0043eadb
test eax, eax
je 0x4d5b8b
push eax
push 0x10de01a3
jmp 0x4d5b3d
push 0x42e91c
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.msvcrt.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x4d5bcd
push eax
push 0x10e601a3
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.certcli.dll_Ordinal_359]
push 0x80070002
push 0x10e801a3
jmp 0x4d5b3d
xor esi, esi
cmp dword [ebx + 0xc], esi
jbe 0x4d5ce1
mov eax, dword [ebx + 0x10]
mov edi, dword [eax + esi*4]
test esi, esi
je 0x4d5bf5
push dword [ebp - 0x2b4]
push 0x405d8c
call dword [sym.imp.msvcrt.dll_fputws]
pop ecx
pop ecx
push esi
push 0x42e93c
push dword [ebp - 0x2b4]
call dword [sym.imp.msvcrt.dll_fwprintf]
mov edx, dword [edi + 4]
add esp, 0xc
mov ecx, dword [ebp - 0x2b4]
push 0
push dword [edx + 8]
mov edx, dword [edx + 4]
call fcn.004d592b
test eax, eax
jne 0x4d5d31
mov edi, dword [edi + 0x10]
test edi, edi
je 0x4d5cd1
cmp dword [edi], 0x1c
jb 0x4d5cd1
mov edi, dword [edi + 0x18]
test edi, edi
je 0x4d5cd1
mov edx, dword [edi + 4]
test edx, edx
je 0x4d5c8e
xor ecx, ecx
call fcn.004d59a9
push eax
push 0x42e960
push dword [ebp - 0x2b4]
mov dword [ebp - 0x2c0], eax
call dword [sym.imp.msvcrt.dll_fwprintf]
mov edx, dword [edi + 4]
add esp, 0xc
mov ecx, dword [ebp - 0x2b4]
push 9
push dword [edx + 8]
mov edx, dword [edx + 4]
call fcn.004d592b
test eax, eax
jne 0x4d5d1b
mov edx, dword [edi + 8]
test edx, edx
je 0x4d5cd1
xor ecx, ecx
call fcn.004d59a9
push eax
push 0x42e974
push dword [ebp - 0x2b4]
mov dword [ebp - 0x2b8], eax
call dword [sym.imp.msvcrt.dll_fwprintf]
mov edx, dword [edi + 8]
add esp, 0xc
mov ecx, dword [ebp - 0x2b4]
push 9
push dword [edx + 8]
mov edx, dword [edx + 4]
call fcn.004d592b
test eax, eax
jne 0x4d5d29
inc esi
cmp esi, dword [ebx + 0xc]
jb 0x4d5bd8
mov edi, dword [ebp - 0x2b8]
push dword [ebp - 0x2c0]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x2b4], 0
pop edi
pop esi
pop ebx
je 0x4d5d0d
push dword [ebp - 0x2b4]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005036b0
leave
ret 4
push eax
push 0x111401a3
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4d5cdb
push eax
push 0x112101a3
jmp 0x4d5d21
push eax
push 0x10fb01a3
jmp 0x4d5d21
push eax
push 0x10cd01a3
jmp 0x4d5b3d