Function at 0x478c10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x672791
mov eax, dword fs:[0]
push eax
mov eax, 0x141c
call fcn.0066af60
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x478c45
sub edx, esi
sar edx, 1
push edx
push ecx
mov ecx, 0x755e18
call fcn.00441d80
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc20]
push 0x800
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc20]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ecx
mov esi, esp
mov dword [ebp - 0x1424], esi
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x478ed1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0xc20]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x478ce1
movzx eax, ax
mov ecx, esi
push eax
call fcn.00441820
jmp 0x478d0e
lea ecx, [ebp - 0xc20]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478cf0
sub ecx, edx
lea eax, [ebp - 0xc20]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00441d80
mov dword [ebp - 4], 0xffffffff
call fcn.00478070
add esp, 4
test eax, eax
je 0x478d59
push 0x800
lea eax, [ebp - 0x1420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1420]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x400
lea eax, [ebp - 0x1420]
jmp 0x478e08
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push ecx
mov esi, esp
mov dword [ebp - 0x1424], esi
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x478edb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
test eax, 0xffff0000
jne 0x478dc5
movzx eax, ax
mov ecx, esi
push eax
call fcn.00441820
jmp 0x478dee
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478dd0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00441d80
mov dword [ebp - 4], 0xffffffff
call fcn.00478070
add esp, 4
lea eax, [ebp - 0x218]
push 0x104
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x478ee5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1424], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 2
test eax, 0xffff0000
jne 0x478e60
movzx eax, ax
lea ecx, [ebp - 0x1424]
push eax
call fcn.00441820
jmp 0x478e92
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478e70
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1424]
call fcn.00441d80
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x1424]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478eb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
int3