Function at 0x50b1f0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x5bf087
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x71c56c]
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 0x50b35a
push 0x104
lea eax, [ebp]
push eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x50b2b3
cmp eax, 0x104
jae 0x50b2b3
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004ae6d0
add esp, 0xc
mov edx, eax
lea ebx, [edi + 4]
jmp 0x50b2ce
push ebx
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004ae6d0
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 0x50b322
mov ecx, dword [ebp - 0x30]
and ebx, 0xfffffffb
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x50b322
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50b322
push 4
push 2
push dword [ebp - 0x30]
call fcn.004597e0
add esp, 0xc
mov dword [ebp - 4], 0
test bl, 2
je 0x50b35a
mov ecx, dword [ebp - 0x1c]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x50b35a
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50b35a
push 4
push 2
push dword [ebp - 0x1c]
call fcn.004597e0
add esp, 0xc
cmp dword [esi + 8], 0
je 0x50b3d1
mov ebx, 0x5c
push 1
push ecx
mov eax, esp
mov ecx, esi
mov word [eax], bx
call fcn.0048aaf0
test al, al
je 0x50b383
push 1
mov ecx, esi
call fcn.00489f10
jmp 0x50b365
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.004dd440
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 0x50b3d1
lock xadd dword [eax], edi
cmp edi, 1
jne 0x50b3d1
push 4
push 2
push dword [ebp - 0x1c]
call fcn.004597e0
add esp, 0xc
mov eax, dword [esi + 8]
test eax, eax
jne 0x50b3e8
push str.C:_tmp
push 6
mov ecx, esi
call fcn.00487640
jmp 0x50b43a
cmp eax, 2
jl 0x50b43a
mov eax, dword [esi]
test eax, eax
je 0x50b3fa
mov eax, dword [eax]
cmp eax, 1
jle 0x50b406
push 1
push dword [esi + 8]
mov ecx, esi
call fcn.0048d7d0
mov eax, dword [esi + 4]
cmp word [eax + 2], 0x3a
jne 0x50b43a
movzx ecx, word [eax]
call fcn.0048ffe0
movzx edi, ax
mov eax, dword [esi]
test eax, eax
je 0x50b428
mov eax, dword [eax]
cmp eax, 1
jle 0x50b434
push 1
push dword [esi + 8]
mov ecx, esi
call fcn.0048d7d0
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.0058e709
lea esp, [ebp + 0x414]
pop ebp
ret