Function at 0x401760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472a86
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4bc00c]
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.00403ac0
mov ecx, eax
test ecx, ecx
je 0x401a04
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.00402ee0
test al, al
jne 0x401832
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401810
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x41c]
call fcn.004030f0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.00403ac0
mov ecx, eax
test ecx, ecx
je 0x401a0e
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.00402ee0
test al, al
jne 0x4018b2
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401890
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.004030f0
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 0x40192c
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x401917
mov ecx, dword [ebx]
cmp ecx, dword [edi]
jne 0x401917
mov ecx, ebx
call fcn.00403090
mov dword [ebp - 0x424], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x401906
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 0x40192c
push dword [eax - 0xc]
lea ecx, [ebp - 0x41c]
push eax
call fcn.004030f0
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 0x401959
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 0x401980
cmp ecx, dword [esi]
jne 0x401980
mov ebx, esi
lock inc dword [eax]
jmp 0x4019ad
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x401a18
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.004031f0
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 0x4019e6
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.00471083
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403880
push 0x80004005
call fcn.00403880
call fcn.004031e0
int3