Function at 0x404780
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5486c1
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5b39c0]
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.0040dcb4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4047e5
push 0x80004005
call fcn.004011e0
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 0x404832
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x404826
or edi, ebx
jmp 0x4049f7
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 0x404887
push edi
push eax
push ecx
mov ecx, esp
push edx
call fcn.00402210
lea eax, [ebp - 0x234]
push eax
call fcn.00403ce0
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.00403100
mov edx, dword [ebp - 0x234]
add esp, 0x14
jmp 0x4048c0
push eax
push ecx
mov ecx, esp
push edx
call fcn.00402210
lea eax, [ebp - 0x238]
push eax
call fcn.00403ce0
add esp, 8
push dword [eax]
lea eax, [ebp - 0x224]
push str._s_tmp_05x
push eax
mov byte [ebp - 4], 2
call fcn.00403100
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 0x4048dd
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 0x404910
cmp ecx, dword [esi - 0x10]
jne 0x404910
lea ebx, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x404949
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x404a33
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.0052d99d
add esp, 0x10
mov ecx, dword [ebp - 0x21c]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.004041e0
add esp, 4
test eax, eax
je 0x404990
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 0x404840
mov edx, dword [ebp - 0x22c]
lea ecx, [esi - 0x10]
mov edi, dword [edx]
sub edi, 0x10
cmp ecx, edi
je 0x4049f2
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4049e7
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4049e7
push ecx
call fcn.00401200
add esp, 4
mov dword [ebp - 0x220], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4049da
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 0x4049f2
push dword [esi - 0xc]
mov ecx, edx
push esi
call fcn.00401560
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 0x404a15
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.0052db16
mov esp, ebp
pop ebp
ret
call fcn.00403870
int3