Function at 0x4041d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4589c0
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.00402400
mov edi, eax
cmp dword [edi + 0x10], 0
jne 0x404211
xor al, al
jmp 0x40443e
mov ecx, ebx
call fcn.00404130
test al, al
je 0x404223
mov al, 1
jmp 0x40443e
push 0
mov ecx, ebx
call fcn.00402340
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x40429c
lea ecx, [ebp - 0x28]
call fcn.00402410
lea ecx, [ebp - 0x28]
call fcn.00402400
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.00402590
add esp, 8
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0040cfe0
test al, al
je 0x40428d
push 0
lea ecx, [ebp - 0x28]
call fcn.00402340
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402350
mov ecx, ebx
call fcn.00404130
test al, al
jne 0x40421c
mov eax, dword [edi + 0x10]
xor esi, esi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4043b3
nop dword [eax + eax]
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 8
jb 0x4042cc
mov eax, dword [edi]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x4042ef
mov eax, edi
cmp ecx, 8
jb 0x4042e5
mov eax, dword [edi]
cmp dx, word [eax + esi*2]
jne 0x4043a9
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00404490
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402400
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40439a
lea ecx, [ebp - 0x28]
call fcn.00403f40
test al, al
jne 0x40439a
push 0
lea ecx, [ebp - 0x28]
call fcn.00402340
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40439a
lea ecx, [ebp - 0x40]
call fcn.00402410
lea ecx, [ebp - 0x40]
call fcn.00402400
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.00402590
add esp, 8
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040cfe0
test al, al
je 0x40438e
push 0
lea ecx, [ebp - 0x40]
call fcn.00402340
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402350
inc esi
cmp esi, dword [ebp - 0x48]
jb 0x4042c0
mov ecx, ebx
call fcn.00403f40
test al, al
jne 0x404437
push 0
mov ecx, ebx
call fcn.00402340
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x404437
lea ecx, [ebp - 0x40]
call fcn.00402410
lea ecx, [ebp - 0x40]
call fcn.00402400
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.00402590
add esp, 8
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, ebx
call fcn.0040cfe0
test al, al
je 0x404428
push 0
lea ecx, [ebp - 0x40]
call fcn.00402340
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402350
mov ecx, ebx
call fcn.00404130
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.0043b918
mov esp, ebp
pop ebp
ret