Function at 0x404880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5455e1
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5ad6a8]
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, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x220], edi
call fcn.0040b6c7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4048e5
push 0x80004005
call fcn.00401200
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
mov edx, dword [ebp - 0x228]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
test edx, edx
jne 0x404932
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x404926
or edi, ebx
jmp 0x404af7
lea edx, [ebp - 0x218]
mov dword [ebp - 0x228], edx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x230], 0
nop
mov eax, ecx
and eax, 0xfffff
test edi, edi
je 0x404987
push edi
push eax
push ecx
mov ecx, esp
push edx
call fcn.00401ed0
lea eax, [ebp - 0x234]
push eax
call fcn.00403960
add esp, 8
push dword [eax]
lea eax, [ebp - 0x224]
push str._s_tmp_05x_s
push eax
mov byte [ebp - 4], 1
call fcn.00402d70
mov edx, dword [ebp - 0x234]
add esp, 0x14
jmp 0x4049c0
push eax
push ecx
mov ecx, esp
push edx
call fcn.00401ed0
lea eax, [ebp - 0x238]
push eax
call fcn.00403960
add esp, 8
push dword [eax]
lea eax, [ebp - 0x224]
push str._s_tmp_05x
push eax
mov byte [ebp - 4], 2
call fcn.00402d70
mov edx, dword [ebp - 0x238]
add esp, 0x10
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4049dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
push ecx
mov ecx, dword [esi - 0x10]
mov dword [ebp - 0x21c], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x404a10
cmp ecx, dword [esi - 0x10]
jne 0x404a10
lea ebx, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x404a49
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x404b33
mov ecx, dword [esi - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0052b8a5
add esp, 0x10
mov ecx, dword [ebp - 0x21c]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.00403e60
add esp, 4
test eax, eax
je 0x404a90
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp - 0x220]
mov edx, dword [ebp - 0x228]
inc eax
inc ecx
mov dword [ebp - 0x230], eax
mov dword [ebp + 0x10], ecx
mov ebx, 0xffffffff
cmp eax, 0xfffff
jb 0x404940
mov edx, dword [ebp - 0x22c]
lea ecx, [esi - 0x10]
mov edi, dword [edx]
sub edi, 0x10
cmp ecx, edi
je 0x404af2
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x404ae7
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x404ae7
push ecx
call fcn.00401220
add esp, 4
mov dword [ebp - 0x220], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x404ada
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
add eax, 0x10
mov dword [ecx], eax
jmp 0x404af2
push dword [esi - 0xc]
mov ecx, edx
push esi
call fcn.00401580
xor edi, edi
or ebx, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x404b15
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0052ba1e
mov esp, ebp
pop ebp
ret
call fcn.00401640
int3