Function at 0x4177a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x451008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x453440], 0
jne 0x417b41
push 0x1a
mov dword [0x453448], 4
mov esi, 0xc
mov dword [ebp - 0x228], 0
call fcn.0041b26a
add esp, 4
mov dword [ebp - 0x224], eax
push 0xffffffffffffffff
push str.explorer.exe
push 0xd
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00426d70
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x224]
call fcn.00412090
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x417856
push 2
push eax
call fcn.0041aef0
add esp, 8
lea eax, [ebp - 0x21c]
push eax
test esi, esi
je 0x4178d7
push 0
push esi
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41792b
push 8
call fcn.0041ab28
add esp, 4
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.0040d2b0
push str.Temp
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.0040d220
push eax
mov ecx, esi
mov dword [ebp - 4], 0xa
call fcn.0040e1f0
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d4b0
jmp 0x417914
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41792b
push 8
call fcn.0041ab28
add esp, 4
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0xb
push ecx
mov ecx, eax
call fcn.0040d2b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41792b
push esi
mov ecx, 0x453474
call fcn.0040de20
push ecx
mov ecx, esi
call fcn.00409b80
push 0x451be8
mov ecx, 0x45346c
call fcn.0040de20
mov dword [ebp - 0x230], 0
mov dword [ebp - 4], 0x10
xor ecx, ecx
mov eax, dword [0x453478]
mov edx, 2
inc eax
mov dword [ebp - 0x22c], 0
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b26a
mov ecx, eax
add esp, 4
mov dword [ebp - 0x230], ecx
test ecx, ecx
je 0x4179a6
mov eax, dword [0x453478]
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x4179a6
lea eax, [eax*2 + 2]
push eax
push dword [0x453474]
push ecx
call fcn.0041df80
add esp, 0xc
push 0xa
mov dword [ebp - 0x228], 0
mov esi, 4
call fcn.0041b26a
add esp, 4
mov edi, eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x224], edi
push 0xffffffffffffffff
push str.gm.
push 5
push edi
push eax
call fcn.00426d70
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x230]
call fcn.0040e1f0
mov byte [ebp - 4], 0x10
test edi, edi
je 0x417a16
push 2
push edi
call fcn.0041aef0
add esp, 8
push 0x451be8
lea ecx, [ebp - 0x230]
call fcn.0040e1f0
push 0xa
mov dword [ebp - 0x228], 0
mov esi, 4
call fcn.0041b26a
add esp, 4
mov edi, eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x224], edi
push 0xffffffffffffffff
push 0x44c6ec
push 5
push edi
push eax
call fcn.00426d70
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x230]
call fcn.0040e1f0
mov byte [ebp - 4], 0x10
test edi, edi
je 0x417a96
push 2
push edi
call fcn.0041aef0
add esp, 8
xor dl, dl
lea ecx, [ebp - 0x230]
call fcn.004185b0
push 0x24
mov esi, eax
call fcn.0041ab28
add esp, 4
mov dword [ebp - 0x220], eax
mov ecx, eax
push esi
call fcn.00416fb0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x417ad6
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [esi], 0
mov ebx, dword [ebp - 0x22c]
xor ecx, ecx
mov edx, 2
mov dword [esi + 4], 0
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b26a
mov edi, dword [ebp - 0x230]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x417b26
mov dword [esi + 4], ebx
test ebx, ebx
je 0x417b26
lea eax, [ebx*2 + 2]
push eax
push edi
push ecx
call fcn.0041df80
add esp, 0xc
push ecx
push esi
mov ecx, 0x45347c
call fcn.0040ee70
test edi, edi
je 0x417b41
push 2
push edi
call fcn.0041aef0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ab17
mov esp, ebp
pop ebp
ret