Function at 0x40d646
Capabilities:
Create directory

Disassembly:
push 0xf0
mov eax, 0x428569
call fcn.004261bd
mov esi, ecx
mov dword [ebp - 0xcc], esi
lea ecx, [ebp - 0xfc]
call fcn.0040e604
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
inc eax
mov ecx, esi
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], al
call fcn.0040db40
test al, al
je 0x40d69a
xor eax, eax
inc eax
jmp 0x40d8ff
mov ecx, esi
call fcn.0040db18
test al, al
jne 0x40d8fd
push esi
lea ecx, [ebp - 0xc8]
call fcn.0040cec7
push ecx
lea edx, [ebp - 0xfc]
call fcn.0040ee59
pop ecx
test al, al
je 0x40d8fd
cmp dword [ebp - 0xfc], 3
mov edi, 0x430294
jne 0x40d714
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xf4]
call fcn.0040ceeb
push 0x430298
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00409a70
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00409020
lea ecx, [ebp - 0x40]
call fcn.00408fc0
lea ecx, [ebp - 0x58]
jmp 0x40d7e8
cmp dword [ebp - 0xfc], 4
jne 0x40d8fd
cmp dword [ebp - 0xe8], 0
je 0x40d8fd
cmp dword [ebp - 0xe0], 0
je 0x40d8fd
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0040ceeb
mov esi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xec]
call fcn.0040ceeb
push eax
mov edx, 0x4302a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.00409b20
pop ecx
push edi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.00409a70
pop ecx
push esi
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.0040dbca
pop ecx
push edi
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.00409a70
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00409020
lea ecx, [ebp - 0x58]
call fcn.00408fc0
lea ecx, [ebp - 0x40]
call fcn.00408fc0
lea ecx, [ebp - 0xa0]
call fcn.00408fc0
lea ecx, [ebp - 0xb8]
call fcn.00408fc0
lea ecx, [ebp - 0x70]
call fcn.00408fc0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00408fc0
mov edi, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xdc]
sub edi, eax
sar edi, 3
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xc4], eax
test edi, edi
je 0x40d907
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.0040ceeb
push 0x430294
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x88]
call fcn.00409a70
pop ecx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00409450
lea ecx, [ebp - 0x88]
call fcn.00408fc0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00408fc0
lea ecx, [ebp - 0x28]
call fcn.0040db40
test al, al
jne 0x40d8d7
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], ebx
cmovae ecx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.0040fe46
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.00408fc0
test esi, esi
jne 0x40d8d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40d8c4
mov ecx, dword [ebp - 0xcc]
call fcn.0040db40
test al, al
je 0x40d901
jmp 0x40d8d7
cmp eax, 0xb7
jne 0x40d901
lea ecx, [ebp - 0x28]
call fcn.0040db18
test al, al
jne 0x40d901
mov ecx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xc4]
inc ecx
add eax, 8
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc4], eax
cmp ecx, edi
jb 0x40d816
jmp 0x40d907
mov al, bl
mov bl, al
mov byte [ebp - 0xc0], bl
lea ecx, [ebp - 0x28]
call fcn.00408fc0
lea ecx, [ebp - 0xdc]
call fcn.0040cea5
mov al, byte [ebp - 0xc0]
call fcn.00426178
ret