Function at 0x405190
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x41c038]
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.00402170
mov edi, eax
cmp dword [edi + 0x10], 0
jne 0x4051d1
xor al, al
jmp 0x4053f9
push ebx
call fcn.004050f0
add esp, 4
test al, al
je 0x4051e5
mov al, 1
jmp 0x4053f9
push 0
mov ecx, ebx
call fcn.00401fa0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x405258
lea ecx, [ebp - 0x28]
call fcn.00402430
call fcn.00402170
lea edx, [ebp - 0x44]
mov dword [ebp - 0x44], 0
mov ecx, eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.00402250
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0040d6d0
test al, al
je 0x405249
push 0
lea ecx, [ebp - 0x28]
call fcn.00401fa0
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402030
push ebx
call fcn.004050f0
add esp, 4
test al, al
jne 0x4051de
mov eax, dword [edi + 0x10]
xor esi, esi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x405370
nop dword [eax]
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 8
jb 0x40528c
mov eax, dword [edi]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x4052af
mov eax, edi
cmp ecx, 8
jb 0x4052a5
mov eax, dword [edi]
cmp dx, word [eax + esi*2]
jne 0x405366
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00404650
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402170
mov eax, dword [eax + 0x10]
test eax, eax
je 0x405357
mov eax, ecx
push eax
call fcn.00404f00
add esp, 4
test al, al
jne 0x405357
push 0
lea ecx, [ebp - 0x28]
call fcn.00401fa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405357
lea ecx, [ebp - 0x40]
call fcn.00402430
call fcn.00402170
lea edx, [ebp - 0x44]
mov dword [ebp - 0x44], 0
mov ecx, eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.00402250
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040d6d0
test al, al
je 0x40534b
push 0
lea ecx, [ebp - 0x40]
call fcn.00401fa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402030
inc esi
cmp esi, dword [ebp - 0x48]
jb 0x405280
push ebx
call fcn.00404f00
add esp, 4
test al, al
jne 0x4053f0
push 0
mov ecx, ebx
call fcn.00401fa0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x4053f0
lea ecx, [ebp - 0x40]
call fcn.00402430
call fcn.00402170
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], 0
mov ecx, eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.00402250
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, ebx
call fcn.0040d6d0
test al, al
je 0x4053e1
push 0
lea ecx, [ebp - 0x40]
call fcn.00401fa0
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402030
push ebx
call fcn.004050f0
add esp, 4
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.00412c8c
mov esp, ebp
pop ebp
ret