Function at 0x107e463
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x28]
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x18], 1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
cmp byte [ebp + 0xc], bl
je 0x107e545
cmp byte [ebp + 0x10], bl
je 0x107e535
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jne 0x107e4b8
push 0x10077ac
push 0x7d
push 0x1007770
call fcn.0107b4be
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0107b8ea
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x107e577
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push esi
call fcn.01083fce
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x107e577
cmp byte [ebp - 0x18], bl
jne 0x107e50b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.01084695
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x107e577
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
jmp 0x107e511
push ebx
lea eax, [ebp - 8]
push eax
push esi
call fcn.0107c871
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x107e577
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.01084790
jmp 0x107e53e
lea eax, [ebp - 0x28]
push eax
call fcn.01083f73
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x107e577
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x28]
and eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x107e577
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x107e574
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], ebx
je 0x107e59f
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x107e582
mov ecx, dword [ebp - 0xc]
sub eax, edx
sar eax, 1
add eax, eax
cmp eax, ebx
je 0x107e59f
mov byte [ecx], bl
inc ecx
dec eax
jne 0x107e599
cmp dword [ebp - 0x10], ebx
je 0x107e5c7
mov eax, dword [ebp - 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x107e5aa
mov ecx, dword [ebp - 0x10]
sub eax, edx
sar eax, 1
add eax, eax
cmp eax, ebx
je 0x107e5c7
mov byte [ecx], bl
inc ecx
dec eax
jne 0x107e5c1
cmp dword [ebp - 8], ebx
je 0x107e5ef
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x107e5d2
mov ecx, dword [ebp - 8]
sub eax, edx
sar eax, 1
add eax, eax
cmp eax, ebx
je 0x107e5ef
mov byte [ecx], bl
inc ecx
dec eax
jne 0x107e5e9
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x14], ebx
je 0x107e602
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0xc], ebx
je 0x107e60f
push dword [ebp - 0xc]
call esi
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x10], ebx
je 0x107e61c
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 8], ebx
je 0x107e629
push dword [ebp - 8]
call esi
mov dword [ebp - 8], ebx
lea eax, [ebp - 0x28]
push eax
call fcn.01084341
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10