Function at 0x40f010
Capabilities:
Create directory

Disassembly:
push 0x18
mov eax, 0x449b40
call fcn.00418ffa
mov ebx, ecx
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x24], ebx
lea eax, [eax + edx*2]
mov dword [ebp - 0x20], eax
xor eax, eax
mov word [ebp - 0x1c], ax
and dword [ebp - 4], eax
mov eax, dword [ebx]
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov edi, 0x80010103
call fcn.0040eda5
mov esi, eax
mov dword [ebp - 0x18], eax
test esi, esi
je 0x40f152
cmp esi, 0x80010102
je 0x40f063
cmp esi, edi
jne 0x40f069
xor esi, esi
inc esi
mov dword [ebp - 0x18], esi
test esi, esi
js 0x40f14a
je 0x40f157
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov edi, dword [eax]
mov ecx, edi
call fcn.0040cf63
mov edx, eax
sub eax, edi
sar eax, 1
cmp eax, 1
jbe 0x40f0af
lea eax, [edx - 2]
mov cx, word [eax]
mov dword [ebp - 0x10], eax
call fcn.0040ed73
test al, al
je 0x40f0af
push 0x3a
pop eax
cmp ax, word [edx - 4]
je 0x40f0af
mov edx, dword [ebp - 0x10]
mov eax, edi
cmp edi, edx
je 0x40f0d8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x20]
cmp edi, ecx
je 0x40f0db
movzx ecx, word [eax]
movzx eax, word [edi]
add edi, 2
add dword [ebp - 0x10], 2
cmp cx, ax
jne 0x40f0e3
mov eax, dword [ebp - 0x10]
cmp eax, edx
jne 0x40f0b8
mov ecx, dword [ebp - 0x20]
cmp eax, edx
jne 0x40f0e3
cmp edi, ecx
je 0x40f140
push edx
lea ecx, [ebp - 0x24]
call fcn.0040ed3c
cmp esi, 1
jne 0x40f0ff
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp dword [ecx], eax
jne 0x40f035
lea ecx, [ebp - 0x24]
call fcn.0040efe2
mov edx, dword [ebx + 4]
mov edi, eax
mov eax, dword [ebx]
lea ecx, [eax + edx*2]
mov dword [ebp - 0x14], ecx
cmp edi, ecx
je 0x40f1a8
mov esi, dword [ebx]
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov cx, word [edi]
call fcn.0040ed73
test al, al
je 0x40f1a2
mov edx, dword [ebx + 4]
add edi, 2
mov ecx, esi
mov eax, esi
cmp edi, dword [ebp - 0x14]
jne 0x40f120
jmp 0x40f1a5
mov esi, 0x80010103
jmp 0x40f20e
mov dword [ebp - 0x10], esi
jmp 0x40f20e
xor esi, esi
mov dword [ebp - 0x18], esi
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.0040edce
test eax, eax
je 0x40f0ff
mov eax, dword [ebx]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0040eda5
test eax, eax
jne 0x40f19b
mov eax, dword [ebp - 0x10]
shr eax, 0xa
test al, 1
je 0x40f190
test byte [ebp - 0x10], 0x10
je 0x40f190
xor eax, eax
jmp 0x40f193
xor eax, eax
inc eax
test eax, eax
je 0x40f0ff
mov esi, 0x80010109
jmp 0x40f20e
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
lea edx, [eax + edx*2]
mov ecx, edi
call fcn.0040ed89
push eax
lea ecx, [ebp - 0x24]
call fcn.0040ed3c
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0040edce
test eax, eax
je 0x40f1f0
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40f1de
xor esi, esi
jmp 0x40f1ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0040edf7
mov esi, eax
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x24]
call fcn.0040efe2
mov edx, dword [ebx + 4]
mov edi, eax
mov eax, dword [ebx]
lea ecx, [eax + edx*2]
cmp edi, ecx
je 0x40f20e
test esi, esi
jns 0x40f10e
lea ecx, [ebp - 0x24]
call fcn.0040efe2
mov eax, esi
call fcn.00418fc3
ret