Function at 0x412a30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4431a6
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x467fd4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x444]
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x458]
push 0
push 0x108
push 2
push eax
mov dword [ebp - 0x45c], ebx
call fcn.004031c0
mov eax, dword [ebp - 0x448]
xor ecx, ecx
mov word [eax], cx
push ebx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x458]
push esi
call fcn.00408c90
test al, al
je 0x412d07
mov eax, dword [ebp + 0x10]
test al, 8
je 0x412abf
push 0
lea ecx, [ebp - 0x458]
call fcn.004088e0
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x448]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x460], esi
test al, 1
je 0x412bf9
push 0
push 0x108
push 2
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x234]
call fcn.004031c0
mov eax, dword [ebp - 0x224]
xor ecx, ecx
mov word [eax], cx
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.004089d0
test al, al
je 0x412c42
mov esi, dword [ebp - 0x224]
mov eax, 0x5c
test esi, esi
je 0x412b4f
cmp ax, word [esi]
jne 0x412b4f
cmp ax, word [esi + 2]
jne 0x412b4f
push eax
lea eax, [esi + 4]
push eax
call fcn.0040bd00
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x412b4f
sub ebx, esi
add ebx, 2
sar ebx, 1
jmp 0x412b51
xor ebx, ebx
lea eax, [esi + ebx*2]
push 0x5c
push eax
call fcn.0040bd00
mov edi, eax
add esp, 8
cmp edi, esi
jbe 0x412b81
cmp word [edi - 2], 0x3a
je 0x412b71
cmp ebx, 4
jbe 0x412b81
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.0040bd00
add esp, 8
mov edi, eax
test edi, edi
je 0x412bd4
mov ebx, dword [ebp - 0x45c]
nop dword [eax + eax]
xor eax, eax
push eax
push esi
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x412c12
test byte [ebp + 0x10], 2
je 0x412bb9
mov eax, dword [0x469b9c]
test eax, eax
je 0x412bb9
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.0040bd00
add esp, 8
mov edi, eax
test edi, edi
jne 0x412b90
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xa
call fcn.00403250
mov ebx, dword [ebp - 0x45c]
mov esi, dword [ebp - 0x460]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 0
push esi
call fcn.0040bde0
add esp, 4
cmp eax, 3
ja 0x412c7d
push esi
call fcn.00413c00
add esp, 4
jmp 0x412c87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0xb7
jne 0x412c6b
call fcn.00414c60
add esp, 4
test al, al
jne 0x412bb9
test byte [ebp + 0x10], 4
je 0x412c58
push 4
push ebx
push esi
call fcn.004138a0
add esp, 0xc
test al, al
jne 0x412bd0
xor bl, bl
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 8
call fcn.00403250
jmp 0x412d09
mov eax, dword [ebx]
push esi
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x1c]
add esp, 0xc
mov bl, al
jmp 0x412c44
mov eax, dword [ebx]
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x1c]
add esp, 0xc
mov bl, al
jmp 0x412c44
push 0
push esi
call edi
test eax, eax
setne al
test al, al
jne 0x412cc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x412cf8
push esi
call fcn.00414c60
add esp, 4
test al, al
jne 0x412ce1
test byte [ebp + 0x10], 4
je 0x412ce5
push 4
push ebx
push esi
call fcn.004138a0
add esp, 0xc
test al, al
je 0x412d07
push 0
push esi
call edi
test eax, eax
setne al
test al, al
je 0x412cf8
test byte [ebp + 0x10], 2
je 0x412ce1
mov eax, dword [0x469b9c]
test eax, eax
je 0x412ce1
push 0
push esi
push 5
push 8
call eax
mov bl, 1
jmp 0x412d09
mov eax, dword [ebx]
push esi
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x1c]
add esp, 0xc
mov bl, al
jmp 0x412d09
mov eax, dword [ebx]
push esi
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x1c]
add esp, 0xc
xor bl, bl
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 0xf
call fcn.00403250
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422c85
mov esp, ebp
pop ebp
ret