Function at 0x40f030
Capabilities:
Create directory

Disassembly:
push 0x18
mov eax, 0x449b40
call fcn.0041903a
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.0040edc5
mov esi, eax
mov dword [ebp - 0x18], eax
test esi, esi
je 0x40f172
cmp esi, 0x80010102
je 0x40f083
cmp esi, edi
jne 0x40f089
xor esi, esi
inc esi
mov dword [ebp - 0x18], esi
test esi, esi
js 0x40f16a
je 0x40f177
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov edi, dword [eax]
mov ecx, edi
call fcn.0040cf83
mov edx, eax
sub eax, edi
sar eax, 1
cmp eax, 1
jbe 0x40f0cf
lea eax, [edx - 2]
mov cx, word [eax]
mov dword [ebp - 0x10], eax
call fcn.0040ed93
test al, al
je 0x40f0cf
push 0x3a
pop eax
cmp ax, word [edx - 4]
je 0x40f0cf
mov edx, dword [ebp - 0x10]
mov eax, edi
cmp edi, edx
je 0x40f0f8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x20]
cmp edi, ecx
je 0x40f0fb
movzx ecx, word [eax]
movzx eax, word [edi]
add edi, 2
add dword [ebp - 0x10], 2
cmp cx, ax
jne 0x40f103
mov eax, dword [ebp - 0x10]
cmp eax, edx
jne 0x40f0d8
mov ecx, dword [ebp - 0x20]
cmp eax, edx
jne 0x40f103
cmp edi, ecx
je 0x40f160
push edx
lea ecx, [ebp - 0x24]
call fcn.0040ed5c
cmp esi, 1
jne 0x40f11f
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp dword [ecx], eax
jne 0x40f055
lea ecx, [ebp - 0x24]
call fcn.0040f002
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 0x40f1c8
mov esi, dword [ebx]
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov cx, word [edi]
call fcn.0040ed93
test al, al
je 0x40f1c2
mov edx, dword [ebx + 4]
add edi, 2
mov ecx, esi
mov eax, esi
cmp edi, dword [ebp - 0x14]
jne 0x40f140
jmp 0x40f1c5
mov esi, 0x80010103
jmp 0x40f22e
mov dword [ebp - 0x10], esi
jmp 0x40f22e
xor esi, esi
mov dword [ebp - 0x18], esi
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.0040edee
test eax, eax
je 0x40f11f
mov eax, dword [ebx]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0040edc5
test eax, eax
jne 0x40f1bb
mov eax, dword [ebp - 0x10]
shr eax, 0xa
test al, 1
je 0x40f1b0
test byte [ebp - 0x10], 0x10
je 0x40f1b0
xor eax, eax
jmp 0x40f1b3
xor eax, eax
inc eax
test eax, eax
je 0x40f11f
mov esi, 0x80010109
jmp 0x40f22e
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
lea edx, [eax + edx*2]
mov ecx, edi
call fcn.0040eda9
push eax
lea ecx, [ebp - 0x24]
call fcn.0040ed5c
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0040edee
test eax, eax
je 0x40f210
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40f1fe
xor esi, esi
jmp 0x40f20d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0040ee17
mov esi, eax
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x24]
call fcn.0040f002
mov edx, dword [ebx + 4]
mov edi, eax
mov eax, dword [ebx]
lea ecx, [eax + edx*2]
cmp edi, ecx
je 0x40f22e
test esi, esi
jns 0x40f12e
lea ecx, [ebp - 0x24]
call fcn.0040f002
mov eax, esi
call fcn.00419003
ret