Function at 0x419010
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5f29d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x665ebc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], 0
mov byte [esp + 0x13], 0
call fcn.00567d0d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41905f
push 0x80004005
call fcn.00402400
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], 0
test edi, edi
je 0x4190c1
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419080
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.004021e0
mov edi, dword [esp + 0x2c]
test edi, edi
jbe 0x4191be
mov esi, dword [esp + 0x14]
push esi
call fcn.00418ed0
xor ecx, ecx
add esp, 4
cmp edx, ecx
ja 0x4191be
jb 0x4190c1
cmp eax, edi
jae 0x4191be
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x13]
push ecx
push 0
call ebp
mov edi, eax
test edi, edi
je 0x41916b
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4190f9
push edi
lea ecx, [esp + 0x18]
call fcn.004020b0
mov esi, dword [esp + 0x14]
push esi
push edi
call ebp
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0059be8e
add esp, 8
test eax, eax
jl 0x4191b4
cmp eax, dword [esi - 8]
jg 0x4191b4
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
xor edi, edi
call fcn.00418ed0
add esp, 4
cmp edx, edi
ja 0x4191be
mov ebp, dword [esp + 0x2c]
jb 0x41913f
cmp eax, ebp
jae 0x4191be
lea ecx, [esp + 0x14]
push ecx
call fcn.004192c0
mov esi, dword [esp + 0x18]
add esp, 4
test al, al
je 0x41916b
test ebp, ebp
jbe 0x4191be
push esi
call fcn.00418ed0
add esp, 4
cmp edx, edi
ja 0x4191be
jb 0x41916b
cmp eax, ebp
jae 0x4191be
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x13]
push edx
mov ecx, edi
call fcn.00401de0
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41919f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push 0x80070057
call fcn.00402400
lea edi, [esp + 0x14]
call fcn.00403230
push 3
push 0x6350c8
mov ecx, edi
call fcn.0040d8b0
push 6
push str.XXXXXX
mov ecx, edi
call fcn.0040d8b0
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 0xc]
lea edi, [eax + 1]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x41920c
push edi
lea ecx, [esp + 0x18]
call fcn.004020b0
mov esi, dword [esp + 0x14]
push edi
push esi
call fcn.005ac45f
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0059be8e
add esp, 0x10
test eax, eax
jl 0x4191b4
cmp eax, dword [esi - 8]
jg 0x4191b4
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
test edi, edi
je 0x419263
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x13]
push ecx
mov ecx, edi
call fcn.00401de0
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x419193
add esi, 0xfffffff0
push esi
call fcn.004022d0
mov edi, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41919f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret