Function at 0x4017a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f466
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4b700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x210]
push 0x80
push eax
push 0
mov dword [ebp - 0x420], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.00403a70
mov ecx, eax
test ecx, ecx
je 0x401a44
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x41c], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00402f20
test al, al
jne 0x401872
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401850
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x41c]
call fcn.004030c0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.00403a70
mov ecx, eax
test ecx, ecx
je 0x401a4e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x428]
call fcn.00402f20
test al, al
jne 0x4018f2
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4018d0
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.004030c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x428]
mov esi, dword [ebp - 0x41c]
mov dword [ebp - 0x420], 2
lea ebx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp ebx, edi
je 0x40196c
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x401957
mov ecx, dword [ebx]
cmp ecx, dword [edi]
jne 0x401957
mov ecx, ebx
call fcn.00403060
mov dword [ebp - 0x424], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x401946
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x424]
add esi, 0x10
mov dword [ebp - 0x41c], esi
jmp 0x40196c
push dword [eax - 0xc]
lea ecx, [ebp - 0x41c]
push eax
call fcn.004030c0
mov esi, dword [ebp - 0x41c]
mov edi, 2
mov dword [ebp - 0x420], edi
and edi, 0xfffffffd
mov dword [ebp - 0x420], edi
mov byte [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x401999
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi - 0x10]
add esi, 0xfffffff0
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x424], eax
jl 0x4019c0
cmp ecx, dword [esi]
jne 0x4019c0
mov ebx, esi
lock inc dword [eax]
jmp 0x4019ed
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x401a58
mov eax, dword [esi + 4]
lea ecx, [ebx + 0x10]
mov dword [ebx + 4], eax
lea eax, [esi + 0x10]
mov edx, dword [esi + 4]
inc edx
push edx
push eax
call fcn.004031c0
add esp, 8
lea eax, [ebx + 0x10]
mov ebx, dword [ebp - 0x42c]
mov dword [ebx], eax
mov byte [ebp - 4], 2
or edi, 1
mov dword [ebp - 0x420], edi
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x424]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x401a26
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dda6
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403850
push 0x80004005
call fcn.00403850
call fcn.004031b0
int3