Function at 0x409eb0
Capabilities:
Create directory

Disassembly:
sub esp, 0x450
mov eax, dword [0x451aa8]
xor eax, esp
mov dword [esp + 0x44c], eax
mov eax, dword [esp + 0x458]
lea ecx, [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x458]
push ebp
push esi
push edi
mov dword [esp + 0x24], ecx
xor ecx, ecx
push ebx
mov word [esp + 0x2c], cx
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], 0x108
call fcn.00413810
test al, al
je 0x40a1a9
mov eax, dword [esp + 0x46c]
test al, 8
je 0x409f4a
mov eax, dword [esp + 0x24]
cmp word [eax], 0
je 0x409f3a
lea ecx, [ecx]
cmp word [eax + 2], 0
lea eax, [eax + 2]
jne 0x409f30
lea ecx, [esp + 0x14]
call fcn.00407f60
mov eax, dword [esp + 0x46c]
mov ebp, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test al, 1
je 0x40a05a
lea eax, [esp + 0x24c]
mov dword [esp + 0x238], 0
mov dword [esp + 0x248], eax
lea ecx, [esp + 0x238]
push 0xffffffffffffffff
xor eax, eax
mov dword [esp + 0x240], 0
push ebp
mov dword [esp + 0x248], 2
mov dword [esp + 0x24c], 0x108
mov word [esp + 0x254], ax
call fcn.00412f40
test al, al
je 0x40a0c2
mov esi, dword [esp + 0x248]
push esi
call fcn.0040f970
push 0x5c
mov dword [esp + 0x18], eax
lea ecx, [esi + eax*2]
push ecx
call fcn.004215d2
mov edi, eax
add esp, 0xc
cmp edi, esi
jbe 0x409ffa
cmp word [edi - 2], 0x3a
je 0x409fea
cmp dword [esp + 0x10], 4
jbe 0x409ffa
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.004215d2
add esp, 8
mov edi, eax
test edi, edi
je 0x40a048
mov edi, edi
xor eax, eax
push eax
push esi
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40a08e
test byte [esp + 0x46c], 2
je 0x40a02d
mov eax, dword [0x454b44]
test eax, eax
je 0x40a02d
push 0
push esi
push 5
push 8
call eax
mov eax, 0x5c
push eax
mov word [edi], ax
lea eax, [edi + 2]
push eax
call fcn.004215d2
add esp, 8
mov edi, eax
test edi, edi
jne 0x40a000
lea ecx, [esp + 0x238]
call fcn.00405c10
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test ebp, ebp
je 0x40a118
mov ecx, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a067
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x40a118
push 0
push ebp
call esi
test eax, eax
setne al
jmp 0x40a121
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0xb7
jne 0x40a0f7
call fcn.0040f770
add esp, 4
test al, al
jne 0x40a02d
test byte [esp + 0x46c], 4
je 0x40a0d5
push 4
push ebx
push esi
call fcn.0040aad0
add esp, 0xc
test al, al
jne 0x40a044
lea ecx, [esp + 0x238]
xor bl, bl
call fcn.0040ba00
jmp 0x40a1ab
mov eax, dword [ebx]
push esi
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x20]
add esp, 0xc
lea ecx, [esp + 0x238]
mov bl, al
call fcn.0040ba00
jmp 0x40a1ab
mov eax, dword [ebx]
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x20]
add esp, 0xc
lea ecx, [esp + 0x238]
mov bl, al
call fcn.0040ba00
jmp 0x40a1ab
push ebp
call fcn.0040ae90
add esp, 4
test al, al
jne 0x40a167
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a19a
push ebp
call fcn.0040f770
add esp, 4
test al, al
jne 0x40a183
test byte [esp + 0x46c], 4
je 0x40a187
push 4
push ebx
push ebp
call fcn.0040aad0
add esp, 0xc
test al, al
je 0x40a1a9
push 0
push ebp
call esi
test eax, eax
setne al
test al, al
je 0x40a19a
test byte [esp + 0x46c], 2
je 0x40a183
mov eax, dword [0x454b44]
test eax, eax
je 0x40a183
push 0
push ebp
push 5
push 8
call eax
mov bl, 1
jmp 0x40a1ab
mov eax, dword [ebx]
push ebp
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x20]
add esp, 0xc
mov bl, al
jmp 0x40a1ab
mov eax, dword [ebx]
push ebp
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x20]
add esp, 0xc
xor bl, bl
lea ecx, [esp + 0x14]
call fcn.0040ba00
mov ecx, dword [esp + 0x45c]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422b84
add esp, 0x450
ret