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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101942a0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x101f62b4]
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 0x10107779
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10107779
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10107744
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.10175afc
mov esi, eax
push 0x5c
push esi
call fcn.10160753
add esp, 0xc
push esi
test eax, eax
je 0x10107a56
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
call fcn.101076e0
push esi
test al, al
jne 0x1010778f
call fcn.1016845e
add esp, 4
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
call fcn.1016845e
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 0x101078e9
nop
inc ebx
cmp ebx, 0x14
jge 0x101078e9
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x248], 0
je 0x101077e7
lea ecx, [ebp - 0x28]
call fcn.10101380
mov ecx, eax
mov dword [ebp - 4], 0
cmp dword [ecx + 0x14], 8
jb 0x101077df
mov ecx, dword [ecx]
mov eax, dword [esi + 0x248]
jmp 0x10107864
cmp dword [0x101fc354], 0
je 0x10107839
lea ecx, [ebp - 0x28]
call fcn.10101380
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x10107807
mov eax, dword [eax]
mov esi, dword [0x101fc354]
mov ecx, esi
push eax
push edi
push str.Failed_to_create_directory:__s_with_code__s
push 0x101ace8c
push 0x101ace8c
push str.UnzipHandler
push str.OOBEUtils
push 0xa
call dword [0x1019a4f8]
call esi
add esp, 0x20
jmp 0x1010788a
cmp dword [0x101fc358], 0
je 0x101078cb
lea ecx, [ebp - 0x28]
call fcn.10101380
mov ecx, eax
mov dword [ebp - 4], 2
cmp dword [ecx + 0x14], 8
jb 0x1010785f
mov ecx, dword [ecx]
mov eax, dword [0x101fc358]
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 0x101ace8c
push 0xa
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x101078cb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x101078c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10107a74
push edx
push ecx
call fcn.1015cb05
add esp, 8
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 0x101077b0
test cl, cl
jne 0x10107a5e
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x248], 0
je 0x10107984
lea ecx, [ebp - 0x28]
call fcn.10101380
mov ecx, eax
mov dword [ebp - 4], 3
cmp dword [ecx + 0x14], 8
jb 0x1010791a
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 0x101ace8c
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x28
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x20
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10107779
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10107a47
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10107a74
jmp 0x10107a47
cmp dword [0x101fc354], 0
je 0x101079da
lea ecx, [ebp - 0x28]
call fcn.10101380
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x101079a4
mov eax, dword [eax]
mov esi, dword [0x101fc354]
mov ecx, esi
push eax
push edi
push ebx
push str.Failed_to_create_directory_after__d_retry_attempts:__s_with_code__s
push 0x101ace8c
push 0x101ace8c
push str.UnzipHandler
push str.OOBEUtils
push 0x28
call dword [0x1019a4f8]
call esi
add esp, 0x24
jmp 0x10107947
cmp dword [0x101fc358], 0
je 0x10107779
lea ecx, [ebp - 0x40]
call fcn.10101380
mov ecx, eax
mov dword [ebp - 4], 5
cmp dword [ecx + 0x14], 8
jb 0x10107a00
mov ecx, dword [ecx]
mov eax, dword [0x101fc358]
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 0x101ace8c
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x28
push eax
call dword [0x1019a4f8]
call esi
mov edx, dword [ebp - 0x2c]
add esp, 0x20
cmp edx, 8
jb 0x10107779
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
jmp 0x1010795d
push edx
push ecx
call fcn.1015cb05
add esp, 8
jmp 0x10107779
call fcn.1016845e
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
call fcn.10168635
int3