Function at 0x40f8f0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4354c8
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebp
mov ebp, dword [esp + 0x58]
push esi
push edi
test ebp, ebp
je 0x40fc48
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x40fc48
mov al, byte [esp + 0x60]
push 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], al
call fcn.00401d50
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x14]
call fcn.00402160
mov cl, byte [esp + 0x60]
push 0
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0
call fcn.00401d50
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x24]
call fcn.00402160
mov eax, dword [esp + 0x14]
mov byte [esp + 0x54], 1
test eax, eax
je 0x40fc25
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40fc25
lea esi, [eax - 1]
cmp eax, esi
ja 0x40f9a8
call fcn.004242bc
lea ecx, [esp + 0x1c]
call fcn.004056d0
mov edx, dword [esp + 0x20]
cmp byte [edx + esi], 0x5c
jne 0x40f9e7
mov ecx, dword [esp + 0x24]
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x40f9d9
mov ecx, dword [0x4375d4]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00409560
jmp 0x40f9e7
sub eax, ecx
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00403cd0
mov eax, dword [esp + 0x14]
lea esi, [eax - 1]
cmp eax, esi
ja 0x40f9f7
call fcn.004242bc
lea ecx, [esp + 0xc]
call fcn.004056d0
mov edx, dword [esp + 0x10]
cmp byte [edx + esi], 0x5c
jne 0x40fa36
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x40fa28
mov ecx, dword [0x4375d4]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00409560
jmp 0x40fa36
sub eax, ecx
push 0
push eax
lea ecx, [esp + 0x14]
call fcn.00403cd0
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x40fa43
call fcn.004242bc
lea ecx, [esp + 0xc]
call fcn.004056d0
mov edx, dword [esp + 0x10]
cmp byte [edx], 0x5c
jne 0x40fa93
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
dec eax
push eax
push 1
push ecx
lea ecx, [esp + 0x18]
call fcn.00405380
mov edx, dword [0x4375d4]
lea ecx, [esp + 0xc]
push edx
push 0
push eax
mov byte [esp + 0x60], 2
call fcn.00401b50
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 1
call fcn.00401d50
mov al, byte [esp + 0x60]
xor esi, esi
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.00401d50
mov byte [esp + 0x54], 3
push 1
lea ecx, [esp + 0x64]
push esi
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 0x5c
call fcn.00403da0
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40facd
mov ebp, dword [esp + 0x14]
mov edx, ebp
lea eax, [esp + 0x3c]
sub edx, esi
lea ecx, [esp + 0xc]
push edx
push esi
push eax
call fcn.00405380
mov ecx, dword [0x4375d4]
xor esi, esi
push ecx
push esi
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 4
call fcn.00401b50
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 3
call fcn.00401d50
mov edi, 0x4420e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4420e0
lea ecx, [esp + 0x24]
call fcn.004020a0
mov edx, dword [0x4375d4]
lea eax, [esp + 0x2c]
push edx
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.00401fc0
mov eax, dword [esp + 0x20]
cmp eax, esi
jne 0x40fb4b
mov eax, 0x4375d0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
cmp edi, esi
jne 0x40fb66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40fb7b
mov eax, dword [esp + 0x14]
lea esi, [ebp + 1]
cmp esi, eax
ja 0x40fb79
test esi, esi
jge 0x40faac
xor esi, esi
mov ecx, dword [esp + 0x30]
cmp ecx, esi
je 0x40fb9f
mov al, byte [ecx - 1]
test al, al
je 0x40fb95
cmp al, 0xff
je 0x40fb95
dec al
mov byte [ecx - 1], al
jmp 0x40fb9f
dec ecx
push ecx
call fcn.0042912a
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], esi
cmp ecx, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
je 0x40fbcf
mov al, byte [ecx - 1]
test al, al
je 0x40fbc5
cmp al, 0xff
je 0x40fbc5
dec al
mov byte [ecx - 1], al
jmp 0x40fbcf
dec ecx
push ecx
call fcn.0042912a
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], esi
cmp ecx, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
je 0x40fc11
mov al, byte [ecx - 1]
test al, al
je 0x40fc07
cmp al, 0xff
je 0x40fc07
dec al
mov byte [ecx - 1], al
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
dec ecx
push ecx
call fcn.0042912a
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 0
call fcn.00401d50
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0xffffffff
call fcn.00401d50
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x4c
ret