Function at 0x4304e787
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc68
mov eax, dword [0x4306c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc58], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xc5c], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xc60], eax
xor edi, edi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0xc68], esi
cmp dword [0x4306c848], edi
je 0x4304ea43
push ebx
push 0x1fe
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
mov dword [ebp - 0xc54], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
push dword [esi + 0x58]
mov esi, 0x105
mov edx, SysReAllocString
mov eax, esi
lea ecx, [ebp - 0x41c]
call fcn.4304c327
mov ebx, eax
cmp ebx, edi
jl 0x4304ea2a
lea edi, [ebp - 0x828]
lea ecx, [ebp - 0x41c]
call fcn.4304e727
push 0x43043804
call fcn.4304c2de
mov ebx, eax
test ebx, ebx
js 0x4304ea2a
push 0
lea eax, [ebp - 0xc64]
push eax
push esi
lea eax, [ebp - 0xc40]
push eax
push 0
push 9
mov eax, edi
push eax
mov dword [ebp - 0xc64], esi
call dword [sym.imp.urlmon.dll_CoInternetParseUrl]
mov ebx, eax
mov eax, edi
test ebx, ebx
js 0x4304e86f
lea eax, [ebp - 0xc40]
push 0x43043810
push eax
lea eax, [ebp - 0xc54]
push eax
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x4304e965
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [eax - 1]
cmp ecx, 0x103
ja 0x4304ea25
xor ecx, ecx
mov word [ebp - 8], cx
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x4304e8d9
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x210], cx
inc eax
cmp eax, esi
jae 0x4304ea25
xor ecx, ecx
mov word [ebp + eax*2 - 0x210], cx
lea eax, [ebp - 0x210]
push eax
mov edx, SysReAllocString
mov eax, esi
lea ecx, [ebp - 0x41c]
call fcn.4304c327
mov ebx, eax
test ebx, ebx
js 0x4304ea2a
mov eax, dword [ebp - 0xc68]
push dword [eax + 0x50]
lea edi, [ebp - 0x41c]
call fcn.4304c2de
mov ebx, eax
test ebx, ebx
js 0x4304ea2a
lea edi, [ebp - 0xa34]
lea ecx, [ebp - 0x41c]
call fcn.4304e727
push 0x43043804
call fcn.4304c2de
mov ebx, eax
test ebx, ebx
js 0x4304ea2a
push 0x43043810
mov eax, edi
push eax
lea eax, [ebp - 0xc54]
push eax
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x4304e965
mov ebx, 0x80070005
jmp 0x4304ea2a
cmp dword [ebp - 0xc54], 0
je 0x4304ea40
lea eax, [ebp - 0xc50]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x100
lea eax, [ebp - 0x61c]
push eax
push 0
lea eax, [ebp - 0xc50]
push eax
push SysReAllocString
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov esi, dword [sym.imp.MSVCR100.dll_fwprintf]
test eax, eax
je 0x4304e9c5
lea eax, [ebp - 0x61c]
push eax
push 0x43043818
push dword [ebp - 0xc54]
call esi
add esp, 0xc
push 0x43043850
push dword [ebp - 0xc54]
call esi
push dword [ebp - 0xc58]
mov edi, 0x4304389c
push edi
push dword [ebp - 0xc54]
call esi
push 0x430438a8
push dword [ebp - 0xc54]
call esi
push dword [ebp - 0xc5c]
push edi
push dword [ebp - 0xc54]
call esi
push 0x430438f8
push dword [ebp - 0xc54]
call esi
push dword [ebp - 0xc60]
push edi
push dword [ebp - 0xc54]
call esi
add esp, 0x3c
test eax, eax
jns 0x4304ea2a
mov ebx, 0x8000ffff
cmp dword [ebp - 0xc54], 0
je 0x4304ea40
push dword [ebp - 0xc54]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.430364bf
leave
ret 0xc