Function at 0x490170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611030
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x69e3d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
call fcn.00465230
test eax, eax
je 0x490356
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebp + 8]
mov ecx, 0x6be118
mov dword [ebp - 0x1c], 0
call fcn.00490640
test eax, eax
je 0x4901d1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.0056d592
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4901eb
push 0x80004005
call fcn.004012f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x490225
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00401370
mov edi, dword [ebp - 0x18]
push edi
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test edi, edi
jne 0x490239
xor eax, eax
jmp 0x490251
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x490240
sub eax, edx
js 0x490493
cmp eax, dword [edi - 8]
jg 0x490493
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
call fcn.0056d592
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x49027b
push 0x80004005
call fcn.004012f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4902b2
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00401370
mov esi, dword [ebp - 0x14]
push esi
push 0
push 0x653118
push edi
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test esi, esi
jne 0x4902c9
xor eax, eax
jmp 0x4902e1
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4902d0
sub eax, edx
js 0x490493
cmp eax, dword [esi - 8]
jg 0x490493
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 - 0x1c], ebx
jne 0x49036c
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, eax
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490333
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
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 0x490356
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00590e6c
push 0
push 0x1000
push 0
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.00585cdd
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 4
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x80]
push eax
call edx
lea ecx, [ebp - 0x80]
call fcn.0058575f
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.00585c9f
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00590ff5
lea eax, [ebp + 8]
mov ecx, 0x6be118
mov dword [ebp - 4], 1
call fcn.00469060
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 0x4903fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49041d
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.004012f0
int3