Function at 0x10011b80
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x42d4
call fcn.1006f8b0
mov eax, dword [0x10138e70]
xor eax, esp
mov dword [esp + 0x42d0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [esp + 0x1c], eax
xor eax, eax
push 0x206
push eax
mov word [esp + 0x40d8], ax
lea eax, [esp + 0x40da]
push eax
mov dword [esp + 0x34], ebx
call fcn.1006ff30
add esp, 0xc
mov dword [esp + 0xc], 0x100123a0
mov dword [esp + 0x10], 0x100123c0
mov dword [esp + 0x4c], 0x100123a0
mov dword [esp + 0x50], 0x100123c0
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x5c], eax
cmp eax, 0xffffffff
jne 0x10011c21
call esi
test eax, eax
jne 0x10012162
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x10012310
mov dword [esp + 0x58], 0x10012330
mov dword [esp + 0xb0], 0x10014c30
mov dword [esp + 0xb4], 0x10014c90
mov dword [esp + 0xb8], 0x10014ca0
mov dword [esp + 0xbc], 0x10014cf0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xc4], ebx
call fcn.10014d10
lea ecx, [esp + 0x60]
call fcn.100126d0
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0xb8]
call fcn.100145c0
mov edi, eax
add esp, 8
test edi, edi
je 0x10011cb8
lea edx, [esp + 0xc]
lea ecx, [esp + 0x60]
call fcn.10012740
test edi, edi
jne 0x10012086
xor ecx, ecx
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x7c], ecx
jbe 0x10012076
mov eax, dword [esp + 0x70]
add eax, 0x19
mov dword [esp + 0x14], eax
jmp 0x10011cf0
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], 0
mov esi, dword [edi + ecx*4 + 4]
sub esi, dword [edi + ecx*4]
cmp esi, dword [esp + 0x28]
jbe 0x10011d40
push ebx
call fcn.1006da71
add esp, 4
mov dword [esp + 0x28], esi
add esi, esi
je 0x1001214c
push esi
call fcn.1006daa9
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1001214e
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + ecx*4 + 4]
mov eax, dword [edi + ecx*4]
sub edx, eax
test ebx, ebx
je 0x10011d6d
mov ecx, dword [esp + 0xa4]
lea esi, [ecx + eax*2]
test edx, edx
je 0x10011d6d
mov ecx, ebx
sub esi, ebx
nop
mov ax, word [esi + ecx]
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x10011d60
push ecx
mov edx, ebx
mov dword [esp + 0x34], 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], 0
call fcn.10011ac0
mov esi, dword [esp + 0x34]
mov edi, eax
add esp, 4
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x10011dac
call fcn.10073130
add eax, 0x20
push eax
push esi
call fcn.10092dce
add esp, 8
push esi
push 0x1013a5c0
call dword [0x1013a5c4]
add esp, 8
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
test edi, edi
jne 0x10012070
mov esi, dword [esp + 0x14]
cmp byte [esi], 0
je 0x10011deb
push 0x100afe54
call fcn.10073d97
add esp, 4
jmp 0x10011e36
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x34]
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x80]
call fcn.10014960
mov edi, eax
mov dword [esp + 0x4c], eax
add esp, 0x20
test edi, edi
jne 0x10012070
xor edi, edi
cmp word [ebx], di
je 0x10011eea
mov esi, ebx
cmp word [esi], 0x2f
jne 0x10011ed7
push dword [esp + 0x1c]
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x40d4]
push 0x104
push eax
call fcn.1006e6e1
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0x100afc1c
push 0x104
push eax
call fcn.1006e675
add esp, 0xc
lea eax, [esp + 0x40d0]
push ebx
push 0x104
push eax
call fcn.1006e675
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0x100afc1c
push 0x104
push eax
call fcn.1006e675
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10011ecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x5c
mov word [esi], ax
inc edi
cmp word [ebx + edi*2], 0
lea esi, [ebx + edi*2]
jne 0x10011e43
mov esi, dword [esp + 0x14]
cmp byte [esi], 0
lea eax, [esp + 0x40d0]
push dword [esp + 0x1c]
push 0x104
push eax
je 0x10011f77
call fcn.1006e6e1
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0x100afc1c
push 0x104
push eax
call fcn.1006e675
add esp, 0xc
lea eax, [esp + 0x40d0]
push ebx
push 0x104
push eax
call fcn.1006e675
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0x100afc1c
push 0x104
push eax
call fcn.1006e675
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10012052
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
jmp 0x10012052
call fcn.1006e6e1
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0x100afc1c
push 0x104
push eax
call fcn.1006e675
add esp, 0xc
lea eax, [esp + 0x40d0]
push ebx
push 0x104
push eax
call fcn.1006e675
add esp, 0xc
lea eax, [esp + 0x40d0]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0x44], esi
cmp esi, 0xffffffff
jne 0x10011fea
call edi
test eax, eax
jne 0x10012158
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
lea edx, [edx + ecx]
lea ecx, [esp + 0x48]
call fcn.10012200
add esp, 4
test eax, eax
jne 0x10012158
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], eax
jne 0x10012158
cmp esi, 0xffffffff
je 0x1001203e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1001203e
call edi
test eax, eax
jne 0x10012158
mov esi, dword [esp + 0x14]
cmp byte [esi + 4], 0
je 0x10012052
push dword [esi - 5]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x18]
add esi, 0x20
inc ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x7c]
jb 0x10011cf0
mov edi, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
call dword [esp + 0x18]
add esp, 8
push dword [esp + 0x90]
lea eax, [esp + 0x10]
push eax
call dword [esp + 0x18]
push dword [esp + 0x9c]
lea eax, [esp + 0x18]
push eax
call dword [esp + 0x20]
push dword [esp + 0xa8]
lea eax, [esp + 0x20]
push eax
call dword [esp + 0x28]
push dword [esp + 0xb4]
lea eax, [esp + 0x28]
push eax
call dword [esp + 0x30]
push dword [esp + 0xc0]
lea eax, [esp + 0x30]
push eax
call dword [esp + 0x38]
push dword [esp + 0xcc]
lea eax, [esp + 0x38]
push eax
call dword [esp + 0x40]
lea edx, [esp + 0x3c]
mov dword [esp + 0xd4], 0
lea ecx, [esp + 0x90]
mov dword [esp + 0xd8], 0
call fcn.10012620
push ebx
call fcn.1006da71
mov eax, dword [esp + 0x90]
add esp, 0x34
cmp eax, 0xffffffff
je 0x1001212e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1001212e
call esi
test edi, edi
jne 0x10012162
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x42d0]
xor ecx, esp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 8
xor ebx, ebx
mov edi, 2
jmp 0x10012070
mov edi, 0xb
jmp 0x10012070
mov ecx, dword [esp + 0x42dc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 8