Function at 0x4b50a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5530c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
call fcn.0053dd60
test eax, eax
je 0x4b5250
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp + 8]
lea ecx, [esi + 4]
push eax
mov dword [ebp - 0x24], ecx
call fcn.004b4ca0
test eax, eax
je 0x4b50fb
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.0051fbb3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov ebx, dword [edi - 4]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, ebx
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
jge 0x4b513a
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.00401470
mov edi, dword [ebp - 0x1c]
push edi
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test edi, edi
jne 0x4b514e
xor eax, eax
jmp 0x4b5162
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b5153
sub eax, edx
js 0x4b53c2
cmp eax, dword [edi - 8]
jg 0x4b53c2
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
call fcn.0051fbb3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 1
jge 0x4b51ae
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00401470
mov esi, dword [ebp - 0x18]
push esi
push 0
push 0x576418
push edi
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test esi, esi
jne 0x4b51c5
xor eax, eax
jmp 0x4b51df
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b51d0
sub eax, edx
js 0x4b53c2
cmp eax, dword [esi - 8]
jg 0x4b53c2
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x20], ebx
jne 0x4b5265
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b522f
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b5250
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.005256f6
push 0
push 0x1000
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.0052970e
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x20], 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 4
call dword [edx + 8]
lea ecx, [ebp - 0x88]
call fcn.00529245
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x20], 0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.005296c9
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00525718
mov ecx, dword [ebp - 0x24]
lea edx, [ebp + 8]
push edx
mov dword [ebp - 4], 1
call fcn.004b4f50
mov dword [eax], ebx
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b530e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b532f
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00401120
int3