Function at 0x404240
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4590b0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x47b008]
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, ecx
call fcn.00402420
mov edi, eax
cmp dword [edi + 0x10], 0
jne 0x404281
xor al, al
jmp 0x4044ae
mov ecx, ebx
call fcn.004041a0
test al, al
je 0x404293
mov al, 1
jmp 0x4044ae
push 0
mov ecx, ebx
call fcn.00402360
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x40430c
lea ecx, [ebp - 0x28]
call fcn.00402430
lea ecx, [ebp - 0x28]
call fcn.00402420
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push ecx
push eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.004025b0
add esp, 8
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0040d050
test al, al
je 0x4042fd
push 0
lea ecx, [ebp - 0x28]
call fcn.00402360
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402370
mov ecx, ebx
call fcn.004041a0
test al, al
jne 0x40428c
mov eax, dword [edi + 0x10]
xor esi, esi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x404423
nop dword [eax + eax]
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 8
jb 0x40433c
mov eax, dword [edi]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x40435f
mov eax, edi
cmp ecx, 8
jb 0x404355
mov eax, dword [edi]
cmp dx, word [eax + esi*2]
jne 0x404419
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00404500
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402420
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40440a
lea ecx, [ebp - 0x28]
call fcn.00403fb0
test al, al
jne 0x40440a
push 0
lea ecx, [ebp - 0x28]
call fcn.00402360
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40440a
lea ecx, [ebp - 0x40]
call fcn.00402430
lea ecx, [ebp - 0x40]
call fcn.00402420
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push ecx
push eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.004025b0
add esp, 8
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040d050
test al, al
je 0x4043fe
push 0
lea ecx, [ebp - 0x40]
call fcn.00402360
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402370
inc esi
cmp esi, dword [ebp - 0x48]
jb 0x404330
mov ecx, ebx
call fcn.00403fb0
test al, al
jne 0x4044a7
push 0
mov ecx, ebx
call fcn.00402360
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x4044a7
lea ecx, [ebp - 0x40]
call fcn.00402430
lea ecx, [ebp - 0x40]
call fcn.00402420
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push ecx
push eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.004025b0
add esp, 8
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, ebx
call fcn.0040d050
test al, al
je 0x404498
push 0
lea ecx, [ebp - 0x40]
call fcn.00402360
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402370
mov ecx, ebx
call fcn.004041a0
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.0043bff8
mov esp, ebp
pop ebp
ret