Function at 0x464850
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d8048
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x513330]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
push edi
lea eax, [esp + 0x30]
push eax
mov ebx, 0x4f3628
mov dword [esp + 0x2c], edi
call fcn.00471780
lea ecx, [esp + 0x2c]
push str.____________________Entrance____________________
lea edx, [esp + 0x14]
push edx
mov eax, ecx
mov dword [esp + 0x88], 0
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], str.CreateTempFile
call fcn.00471a00
add esp, 0xc
mov byte [esp + 0x80], 1
test edi, edi
jne 0x464908
push str.______________________Exit______________________
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 0
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00471810
xor al, al
jmp 0x464bb1
lea esi, [esp + 0x1c]
mov eax, edi
call fcn.00484920
mov byte [esp + 0x80], 2
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00405a00
mov byte [esp + 0x80], 3
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [esp + 0x18]
test eax, eax
push edx
sete bl
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x464a3e
lea esi, [esp + 0x20]
mov eax, edi
mov bl, 1
call fcn.00484920
mov ecx, eax
lea esi, [esp + 0x28]
mov byte [esp + 0x80], 4
call fcn.0046bc10
add edi, 0x24
mov byte [esp + 0x80], 5
call fcn.004082a0
mov byte [esp + 0x80], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4649ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4649d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x20]
call fcn.00484920
lea edi, [esp + 0x1c]
mov byte [esp + 0x80], 6
call fcn.004082a0
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464a1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
push esi
push str.Its_only_directory_so_new_temp_file_name_generated_to_be__s.
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004719c0
mov edi, dword [esp + 0x34]
add esp, 0x10
jmp 0x464a42
test bl, bl
je 0x464a54
lea ecx, [edi + 0x148]
mov dword [edi + 0x48], 0
call fcn.004680d0
xor eax, eax
test bl, bl
sete al
push 0
push 0x80
add eax, 2
push eax
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x464b16
call fcn.00405b90
mov edi, eax
test edi, edi
jge 0x464b1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.Failed_to_create_temp_file__s_with_hResult_x_lastError_d
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.004719c0
mov byte [esp + 0x98], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464ad6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0x80], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464afa
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
push str.______________________Exit______________________
lea eax, [esp + 0x14]
mov byte [esp + 0x84], 0
mov ecx, dword [esp + 0x18]
push eax
push ecx
jmp 0x4648f0
mov dword [edi + 0xe8], eax
xor edi, edi
movzx edx, bl
push edx
push edi
push esi
push str.Succeeded_to_create_open_temp_file__s__CREATE_ALWAYS_d
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.004719c0
mov byte [esp + 0x98], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x18
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x464b63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0x80], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464b87
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
push str.______________________Exit______________________
lea eax, [esp + 0x14]
mov byte [esp + 0x84], 0
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00471a00
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00471810
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004a52a5
mov esp, ebp
pop ebp
ret