Function at 0x107e515
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 0x107e5f7
cmp byte [ebp + 0x10], bl
je 0x107e5e7
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jne 0x107e56a
push 0x10077bc
push 0x7d
push 0x1007780
call fcn.0107b644
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0107ba70
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x107e629
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push esi
call fcn.01083f91
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x107e629
cmp byte [ebp - 0x18], bl
jne 0x107e5bd
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.01084658
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x107e629
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
jmp 0x107e5c3
push ebx
lea eax, [ebp - 8]
push eax
push esi
call fcn.0107c9fc
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x107e629
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.01084753
jmp 0x107e5f0
lea eax, [ebp - 0x28]
push eax
call fcn.01083f36
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x107e629
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 0x107e629
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x107e626
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], ebx
je 0x107e651
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x107e634
mov ecx, dword [ebp - 0xc]
sub eax, edx
sar eax, 1
add eax, eax
cmp eax, ebx
je 0x107e651
mov byte [ecx], bl
inc ecx
dec eax
jne 0x107e64b
cmp dword [ebp - 0x10], ebx
je 0x107e679
mov eax, dword [ebp - 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x107e65c
mov ecx, dword [ebp - 0x10]
sub eax, edx
sar eax, 1
add eax, eax
cmp eax, ebx
je 0x107e679
mov byte [ecx], bl
inc ecx
dec eax
jne 0x107e673
cmp dword [ebp - 8], ebx
je 0x107e6a1
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x107e684
mov ecx, dword [ebp - 8]
sub eax, edx
sar eax, 1
add eax, eax
cmp eax, ebx
je 0x107e6a1
mov byte [ecx], bl
inc ecx
dec eax
jne 0x107e69b
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x14], ebx
je 0x107e6b4
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0xc], ebx
je 0x107e6c1
push dword [ebp - 0xc]
call esi
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x10], ebx
je 0x107e6ce
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 8], ebx
je 0x107e6db
push dword [ebp - 8]
call esi
mov dword [ebp - 8], ebx
lea eax, [ebp - 0x28]
push eax
call fcn.01084304
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10