Function at 0x407e80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4141d0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x41b008]
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.00402330
mov edi, eax
cmp dword [edi + 0x10], 0
jne 0x407ec1
xor al, al
jmp 0x4080ce
call fcn.00407de0
test al, al
je 0x407ed1
mov al, 1
jmp 0x4080ce
push 0
mov ecx, ebx
call fcn.00402110
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x407f44
lea ecx, [ebp - 0x28]
call fcn.00402340
call fcn.00402330
lea edx, [ebp - 0x44]
mov dword [ebp - 0x44], 0
mov ecx, eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.00402520
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0040dff0
test al, al
je 0x407f35
push 0
lea ecx, [ebp - 0x28]
call fcn.00402110
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004021a0
mov ecx, ebx
call fcn.00407de0
test al, al
jne 0x407eca
mov eax, dword [edi + 0x10]
xor esi, esi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x408049
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 8
jb 0x407f6f
mov eax, dword [edi]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x407f92
mov eax, edi
cmp ecx, 8
jb 0x407f88
mov eax, dword [edi]
cmp dx, word [eax + esi*2]
jne 0x40803f
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00407350
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402330
mov eax, dword [eax + 0x10]
test eax, eax
je 0x408030
call fcn.00407c00
test al, al
jne 0x408030
push 0
lea ecx, [ebp - 0x28]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408030
lea ecx, [ebp - 0x40]
call fcn.00402340
call fcn.00402330
lea edx, [ebp - 0x44]
mov dword [ebp - 0x44], 0
mov ecx, eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.00402520
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040dff0
test al, al
je 0x408024
push 0
lea ecx, [ebp - 0x40]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004021a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004021a0
inc esi
cmp esi, dword [ebp - 0x48]
jb 0x407f63
mov ecx, ebx
call fcn.00407c00
test al, al
jne 0x4080c7
push 0
mov ecx, ebx
call fcn.00402110
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x4080c7
lea ecx, [ebp - 0x40]
call fcn.00402340
call fcn.00402330
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], 0
mov ecx, eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.00402520
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, ebx
call fcn.0040dff0
test al, al
je 0x4080b8
push 0
lea ecx, [ebp - 0x40]
call fcn.00402110
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004021a0
mov ecx, ebx
call fcn.00407de0
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.00411f16
mov esp, ebp
pop ebp
ret