Function at 0x41cd4b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x454], eax
lea edi, [ebp - 0x2a]
xor eax, eax
mov dword [ebp - 0x458], edx
push 9
mov word [ebp - 0x2c], ax
mov ebx, edx
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov edi, eax
mov esi, eax
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x41cdb5
test byte [eax + 0x1c], 2
je 0x41cdb5
cmp byte [eax + 0x19], 5
jb 0x41cdb5
push dword [eax + 0x14]
mov edx, 0x409550
push dword [eax + 0x10]
push 0x11
pop ecx
call fcn.00414ca8
test ebx, ebx
jne 0x41ce23
lea eax, [ebp - 0x440]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x41ce17
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x41d02e
test byte [eax + 0x1c], 2
je 0x41d02e
cmp byte [eax + 0x19], 2
jb 0x41d02e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x475014]
mov edx, 0x409550
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
pop ecx
call fcn.00414ccb
jmp 0x41d02e
lea ebx, [ebp - 0x440]
mov dword [ebp - 0x458], ebx
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
xor ebx, ebx
pop ecx
test eax, eax
je 0x41ce47
cmp word [eax + 2], bx
jne 0x41ce47
push 1
push ebx
push eax
call dword [sym.imp.msvcrt.dll__wcsnset]
add esp, 0xc
test ebx, ebx
jne 0x41ce89
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x41cf12
mov esi, dword [ebp - 0x460]
xor edi, edi
or edi, dword [ebp - 0x464]
shrd edi, esi, 8
shr esi, 8
push 0x40a3e4
push esi
push edi
lea eax, [ebp - 0x2c]
push eax
push 0x40800c
push dword [ebp - 0x458]
push 0x409500
push dword [ebp + 0x14]
push dword [ebp - 0x454]
call fcn.00416647
add esp, 0x24
mov dword [ebp - 0x45c], eax
test eax, eax
js 0x41cfed
push ecx
push ecx
push 0x80
push 1
push ecx
mov ecx, dword [ebp - 0x454]
mov edx, 0x40000000
push 0
call fcn.0041d0d6
cmp eax, 0xffffffff
jne 0x41cfa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41cefa
cmp eax, 0x50
jne 0x41cf5a
add edi, 1
adc esi, 0
inc ebx
cmp ebx, 0x100
jb 0x41ce47
jmp 0x41cfaf
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x41d02e
test byte [eax + 0x1c], 2
je 0x41d02e
cmp byte [eax + 0x19], 2
jb 0x41d02e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x475014]
mov edx, 0x409550
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
pop ecx
call fcn.00414ccb
jmp 0x41d02e
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x41d02e
test byte [eax + 0x1c], 2
je 0x41d02e
cmp byte [eax + 0x19], 2
jb 0x41d02e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x454]
mov eax, dword [0x475014]
mov edx, 0x409550
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
pop ecx
call fcn.00414cf4
jmp 0x41d02e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x100
jne 0x41cfe7
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x41cfe3
test byte [eax + 0x1c], 2
je 0x41cfe3
cmp byte [eax + 0x19], 2
jb 0x41cfe3
push dword [ebp - 0x454]
push esi
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041ca25
push 4
jmp 0x41d028
mov eax, edi
mov edx, esi
jmp 0x41d032
mov ecx, dword [0x475014]
cmp ecx, 0x475014
je 0x41d024
test byte [ecx + 0x1c], 2
je 0x41d024
cmp byte [ecx + 0x19], 2
jb 0x41d024
movzx eax, ax
mov edx, 0x409550
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x15
pop ecx
call fcn.00414ccb
mov eax, dword [ebp - 0x45c]
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468ba0
mov esp, ebp
pop ebp
ret 0x10