Function at 0x511880
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x5c5707
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x72b01c]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x41c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea eax, [ebp + 0x208]
mov dword [ebp - 4], 0
push eax
push 0x104
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
or edi, 0xffffffff
test ebx, ebx
je 0x5119ea
push 0x104
lea eax, [ebp]
push eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x511943
cmp eax, 0x104
jae 0x511943
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004b4d80
add esp, 0xc
mov edx, eax
lea ebx, [edi + 4]
jmp 0x51195e
push ebx
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004b4d80
add esp, 0xc
mov edx, eax
mov ebx, 5
mov ecx, dword [esi]
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
mov dword [ebp - 0x10], ebx
mov dword [edx + 8], ecx
test bl, 4
je 0x5119b2
mov ecx, dword [ebp - 0x30]
and ebx, 0xfffffffb
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x5119b2
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x5119b2
push 4
push 2
push dword [ebp - 0x30]
call fcn.0045fe90
add esp, 0xc
mov dword [ebp - 4], 0
test bl, 2
je 0x5119ea
mov ecx, dword [ebp - 0x1c]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x5119ea
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x5119ea
push 4
push 2
push dword [ebp - 0x1c]
call fcn.0045fe90
add esp, 0xc
cmp dword [esi + 8], 0
je 0x511a61
mov ebx, 0x5c
push 1
push ecx
mov eax, esp
mov ecx, esi
mov word [eax], bx
call fcn.004911a0
test al, al
je 0x511a13
push 1
mov ecx, esi
call fcn.004905c0
jmp 0x5119f5
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.004e3ae0
mov ecx, dword [esi]
mov edx, eax
add esp, 8
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x511a61
lock xadd dword [eax], edi
cmp edi, 1
jne 0x511a61
push 4
push 2
push dword [ebp - 0x1c]
call fcn.0045fe90
add esp, 0xc
mov eax, dword [esi + 8]
test eax, eax
jne 0x511a78
push str.C:_tmp
push 6
mov ecx, esi
call fcn.0048dcf0
jmp 0x511aca
cmp eax, 2
jl 0x511aca
mov eax, dword [esi]
test eax, eax
je 0x511a8a
mov eax, dword [eax]
cmp eax, 1
jle 0x511a96
push 1
push dword [esi + 8]
mov ecx, esi
call fcn.00493e80
mov eax, dword [esi + 4]
cmp word [eax + 2], 0x3a
jne 0x511aca
movzx ecx, word [eax]
call fcn.00496680
movzx edi, ax
mov eax, dword [esi]
test eax, eax
je 0x511ab8
mov eax, dword [eax]
cmp eax, 1
jle 0x511ac4
push 1
push dword [esi + 8]
mov ecx, esi
call fcn.00493e80
mov eax, dword [esi + 4]
mov word [eax], di
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00594d69
lea esp, [ebp + 0x414]
pop ebp
ret