Function at 0x6707e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x749a40
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x857060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x6709e4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x6709e4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x670849
shr eax, 4
and al, 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 4
push esi
call fcn.007064d2
mov edi, eax
push 0x5c
push edi
call fcn.006e87b3
add esp, 0xc
push edi
test eax, eax
je 0x670a8f
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
call fcn.006707e0
push edi
test al, al
jne 0x670883
call fcn.006f6ded
add esp, 4
jmp 0x6709e4
call fcn.006f6ded
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne cl
xor edi, edi
test eax, eax
jne 0x67098f
inc edi
cmp edi, 0x14
jge 0x67098f
cmp dword [ebx + 0x248], 0
je 0x6708d7
lea ecx, [ebp - 0x24]
call fcn.0064b8b0
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x6708cf
mov edx, dword [edx]
mov eax, dword [ebx + 0x248]
jmp 0x670946
cmp dword [0x87d0dc], 0
je 0x67091f
lea ecx, [ebp - 0x24]
call fcn.0064b8b0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x6708f7
mov eax, dword [eax]
push eax
push esi
push str.Failed_to_create_directory:__s_with_code__s
push 0x799430
push 0x799430
push str.UnzipHandler
push str.OOBEUtils
push 0xa
call dword [0x87d0dc]
add esp, 0x20
jmp 0x670962
cmp dword [0x87d0e0], 0
je 0x670971
lea ecx, [ebp - 0x24]
call fcn.0064b8b0
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 8
jb 0x670941
mov edx, dword [edx]
mov eax, dword [0x87d0e0]
mov ecx, dword [eax]
push edx
push esi
push str.Failed_to_create_directory:__s_with_code__s
push str.UnzipHandler
push 0x799430
push 0xa
push eax
call dword [ecx + 0x34]
add esp, 0x1c
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00426ce0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne cl
test eax, eax
je 0x6708a3
test cl, cl
jne 0x670a97
cmp dword [ebx + 0x248], 0
je 0x6709fa
lea ecx, [ebp - 0x24]
call fcn.0064b8b0
mov edx, eax
mov dword [ebp - 4], 3
cmp dword [edx + 0x14], 8
jb 0x6709b9
mov edx, dword [edx]
mov eax, dword [ebx + 0x248]
push edx
push esi
push edi
mov ecx, dword [eax]
push str.Failed_to_create_directory_after__d_retry_attempts:__s_with_code__s
push str.UnzipHandler
push 0x799430
push 0x28
push eax
call dword [ecx + 0x34]
add esp, 0x20
lea ecx, [ebp - 0x24]
call fcn.00426ce0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [0x87d0dc], 0
je 0x670a43
lea ecx, [ebp - 0x24]
call fcn.0064b8b0
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x670a1a
mov eax, dword [eax]
push eax
push esi
push edi
push str.Failed_to_create_directory_after__d_retry_attempts:__s_with_code__s
push 0x799430
push 0x799430
push str.UnzipHandler
push str.OOBEUtils
push 0x28
call dword [0x87d0dc]
add esp, 0x24
jmp 0x6709dc
cmp dword [0x87d0e0], 0
je 0x6709e4
lea ecx, [ebp - 0x3c]
call fcn.0064b8b0
mov edx, eax
mov dword [ebp - 4], 5
cmp dword [edx + 0x14], 8
jb 0x670a65
mov edx, dword [edx]
mov eax, dword [0x87d0e0]
push edx
push esi
push edi
mov ecx, dword [eax]
push str.Failed_to_create_directory_after__d_retry_attempts:__s_with_code__s
push str.UnzipHandler
push 0x799430
push 0x28
push eax
call dword [ecx + 0x34]
add esp, 0x20
lea ecx, [ebp - 0x3c]
jmp 0x6709df
call fcn.006f6ded
add esp, 4
mov al, 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 4