Function at 0x418ba0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470cd6
mov eax, dword fs:[0]
push eax
mov eax, 0x138c
call fcn.0045a630
mov eax, dword [0x485c44]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1368], ecx
mov eax, dword [0x4764d8]
mov dword [ebp - 0x50], eax
mov ecx, dword [0x4764d8]
mov dword [ebp - 0x10], ecx
push 0x4776ac
lea ecx, [ebp - 0x30]
call fcn.0040d830
mov dword [ebp - 4], 0
push 0x4776a8
lea ecx, [ebp - 0x4c]
call fcn.0040d830
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x12f0], edx
cmp dword [ebp - 0x18], 8
jb 0x418c25
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x136c], eax
jmp 0x418c2e
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x136c], ecx
mov edx, dword [ebp - 0x12f0]
push edx
push 0
mov eax, dword [ebp - 0x136c]
push eax
mov ecx, dword [ebp - 0x1368]
add ecx, 0x18
call fcn.0041acf0
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [0x4764d8]
je 0x418e3a
lea edx, [ebp - 0x66c]
push edx
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x418e35
lea eax, [ebp - 0x66c]
mov dword [ebp - 0x1370], eax
mov ecx, dword [ebp - 0x1370]
add ecx, 2
mov dword [ebp - 0x1374], ecx
mov edx, dword [ebp - 0x1370]
mov ax, word [edx]
mov word [ebp - 0x1376], ax
add dword [ebp - 0x1370], 2
cmp word [ebp - 0x1376], 0
jne 0x418c93
mov ecx, dword [ebp - 0x1370]
sub ecx, dword [ebp - 0x1374]
sar ecx, 1
mov dword [ebp - 0x137c], ecx
mov edx, dword [ebp - 0x137c]
push edx
lea eax, [ebp - 0x66c]
push eax
mov ecx, dword [ebp - 0x1368]
add ecx, 0x54
call fcn.0040d960
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x12f4], ecx
cmp dword [ebp - 0x34], 8
jb 0x418cfe
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x1380], edx
jmp 0x418d07
lea eax, [ebp - 0x48]
mov dword [ebp - 0x1380], eax
mov ecx, dword [ebp - 0x12f4]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x1380]
push eax
mov ecx, dword [ebp - 0x1368]
add ecx, 0x18
call fcn.0041acf0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [0x4764d8]
je 0x418dc0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x12f8], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x12fc], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x50]
sub ecx, dword [ebp - 0x12f8]
push ecx
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x12fc]
push edx
lea eax, [ebp - 0x12b8]
push eax
mov ecx, dword [ebp - 0x1368]
add ecx, 0x18
call fcn.0041a0e0
mov dword [ebp - 0x1384], eax
mov ecx, dword [ebp - 0x1384]
mov dword [ebp - 0x1300], ecx
mov byte [ebp - 4], 2
mov edx, dword [0x4764d8]
push edx
push 0
mov eax, dword [ebp - 0x1300]
push eax
mov ecx, dword [ebp - 0x1368]
add ecx, 0x54
call fcn.0040f260
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x12b8]
call fcn.0040d8a0
jmp 0x418e35
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x1314], ecx
mov edx, dword [0x4764d8]
push edx
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x1314]
push eax
lea ecx, [ebp - 0x12d4]
push ecx
mov ecx, dword [ebp - 0x1368]
add ecx, 0x18
call fcn.0041a0e0
mov dword [ebp - 0x1388], eax
mov edx, dword [ebp - 0x1388]
mov dword [ebp - 0x1318], edx
mov byte [ebp - 4], 3
mov eax, dword [0x4764d8]
push eax
push 0
mov ecx, dword [ebp - 0x1318]
push ecx
mov ecx, dword [ebp - 0x1368]
add ecx, 0x54
call fcn.0040f260
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x12d4]
call fcn.0040d8a0
jmp 0x418edf
lea edx, [ebp - 0x129c]
push edx
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x418edf
lea eax, [ebp - 0xc84]
push eax
push 0
push 0x4776a0
lea ecx, [ebp - 0x129c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x418edf
lea edx, [ebp - 0xc84]
mov dword [ebp - 0x138c], edx
mov eax, dword [ebp - 0x138c]
add eax, 2
mov dword [ebp - 0x1390], eax
mov ecx, dword [ebp - 0x138c]
mov dx, word [ecx]
mov word [ebp - 0x1392], dx
add dword [ebp - 0x138c], 2
cmp word [ebp - 0x1392], 0
jne 0x418e8e
mov eax, dword [ebp - 0x138c]
sub eax, dword [ebp - 0x1390]
sar eax, 1
mov dword [ebp - 0x1398], eax
mov ecx, dword [ebp - 0x1398]
push ecx
lea edx, [ebp - 0xc84]
push edx
mov ecx, dword [ebp - 0x1368]
add ecx, 0x54
call fcn.0040d960
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040d8a0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.0040d8a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00458357
mov esp, ebp
pop ebp
ret