Function at 0x6705a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70a7f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x82d084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
test edi, edi
je 0x6707cb
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
test eax, eax
je 0x6707cb
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x67060c
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 edi
call fcn.006ab0eb
mov esi, eax
push 0x5c
push esi
call fcn.006d0be9
add esp, 0xc
push esi
test eax, eax
je 0x67088a
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
call fcn.006705a0
push esi
test al, al
jne 0x670646
call fcn.00690e3e
add esp, 4
jmp 0x6707cb
call fcn.00690e3e
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
setne cl
xor ebx, ebx
test eax, eax
jne 0x670769
inc ebx
cmp ebx, 0x14
jge 0x670769
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x248], 0
je 0x67069d
lea ecx, [ebp - 0x28]
call fcn.00611e20
mov ecx, eax
mov dword [ebp - 4], 0
cmp dword [ecx + 0x14], 8
jb 0x670695
mov ecx, dword [ecx]
mov eax, dword [esi + 0x248]
jmp 0x670716
cmp dword [0x853a78], 0
je 0x6706ef
lea ecx, [ebp - 0x28]
call fcn.00611e20
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x6706bd
mov eax, dword [eax]
mov esi, dword [0x853a78]
mov ecx, esi
push eax
push edi
push str.Failed_to_create_directory:__s_with_code__s
push 0x75b10c
push 0x75b10c
push str.UnzipHandler
push str.OOBEUtils
push 0xa
call dword [0x747368]
call esi
add esp, 0x20
jmp 0x67073c
cmp dword [0x853a7c], 0
je 0x67074b
lea ecx, [ebp - 0x28]
call fcn.00611e20
mov ecx, eax
mov dword [ebp - 4], 2
cmp dword [ecx + 0x14], 8
jb 0x670711
mov ecx, dword [ecx]
mov eax, dword [0x853a7c]
mov esi, dword [eax]
push ecx
push edi
push str.Failed_to_create_directory:__s_with_code__s
mov esi, dword [esi + 0x34]
mov ecx, esi
push str.UnzipHandler
push 0x75b10c
push 0xa
push eax
call dword [0x747368]
call esi
add esp, 0x1c
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0042fd70
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
setne cl
test eax, eax
je 0x670666
test cl, cl
jne 0x670892
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x248], 0
je 0x6707e1
lea ecx, [ebp - 0x28]
call fcn.00611e20
mov ecx, eax
mov dword [ebp - 4], 3
cmp dword [ecx + 0x14], 8
jb 0x670796
mov ecx, dword [ecx]
mov eax, dword [esi + 0x248]
push ecx
push edi
push ebx
mov esi, dword [eax]
push str.Failed_to_create_directory_after__d_retry_attempts:__s_with_code__s
push str.UnzipHandler
push 0x75b10c
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x28
push eax
call dword [0x747368]
call esi
add esp, 0x20
lea ecx, [ebp - 0x28]
call fcn.0042fd70
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 [0x853a78], 0
je 0x670834
lea ecx, [ebp - 0x28]
call fcn.00611e20
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x670801
mov eax, dword [eax]
mov esi, dword [0x853a78]
mov ecx, esi
push eax
push edi
push ebx
push str.Failed_to_create_directory_after__d_retry_attempts:__s_with_code__s
push 0x75b10c
push 0x75b10c
push str.UnzipHandler
push str.OOBEUtils
push 0x28
call dword [0x747368]
call esi
add esp, 0x24
jmp 0x6707c3
cmp dword [0x853a7c], 0
je 0x6707cb
lea ecx, [ebp - 0x40]
call fcn.00611e20
mov ecx, eax
mov dword [ebp - 4], 5
cmp dword [ecx + 0x14], 8
jb 0x670856
mov ecx, dword [ecx]
mov eax, dword [0x853a7c]
push ecx
push edi
push ebx
mov esi, dword [eax]
push str.Failed_to_create_directory_after__d_retry_attempts:__s_with_code__s
push str.UnzipHandler
push 0x75b10c
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x28
push eax
call dword [0x747368]
call esi
add esp, 0x20
lea ecx, [ebp - 0x40]
jmp 0x6707c6
call fcn.00690e3e
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