Function at 0x40a6a1
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0x158
mov eax, 0x52ca30
call fcn.00512375
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add ecx, 0xa04
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x164], ecx
call fcn.00411684
push 0x12c
xor ebx, ebx
lea eax, [ebp - 0x13c]
push ebx
push eax
call fcn.00512ea0
push 2
push ebx
push esi
call fcn.00407c17
add esp, 0x18
mov dword [ebp - 0x144], eax
cmp eax, ebx
je 0x40a945
lea ecx, [ebp - 0x13c]
push ecx
push 0xffffffffffffffff
push eax
call fcn.00406410
mov esi, dword [ebp - 0x13c]
add esp, 0xc
push ebx
push edi
mov dword [ebp - 0x160], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x148], ebx
cmp esi, ebx
jle 0x40a945
mov esi, 0x104
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x148]
push dword [ebp - 0x144]
call fcn.00406410
push esi
call fcn.00413fb5
push esi
mov edi, eax
push ebx
push edi
mov dword [ebp - 0x140], edi
call fcn.00512ea0
push dword [ebp - 0x15c]
push esi
push edi
call fcn.00515f69
lea eax, [ebp - 0x138]
push eax
push esi
push edi
call fcn.00515efc
mov ecx, dword [ebp - 0x164]
mov eax, dword [ecx]
add esp, 0x34
lea edx, [ebp - 0x140]
push edx
push eax
call fcn.0040eef2
push esi
push edi
call fcn.00411cd9
pop ecx
pop ecx
cmp al, bl
je 0x40a80c
push 0x5427a8
lea ecx, [ebp - 0x154]
call fcn.00401d42
mov dword [ebp - 4], ebx
push edi
lea ecx, [ebp - 0x154]
call fcn.00401c30
push ecx
lea eax, [ebp - 0x154]
mov ecx, esp
mov dword [ebp - 0x140], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 1
mov byte [ebp - 4], bl
call fcn.00402f79
push 4
push ebx
push edi
push dword [ebp - 0x148]
push dword [ebp - 0x144]
call fcn.00407c8b
add esp, 0x18
mov dword [ebp - 0x140], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x154]
jmp 0x40a879
push 0x5427a0
lea ecx, [ebp - 0x150]
call fcn.00401d42
mov dword [ebp - 4], 3
push edi
lea ecx, [ebp - 0x150]
call fcn.00401c30
push ecx
lea eax, [ebp - 0x150]
mov ecx, esp
mov dword [ebp - 0x140], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
call fcn.00402f79
push 2
push ebx
push edi
push dword [ebp - 0x148]
push dword [ebp - 0x144]
call fcn.00407c8b
add esp, 0x18
mov dword [ebp - 0x140], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x150]
add ecx, 0xfffffff0
call fcn.004010d2
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x140], ebx
je 0x40a92d
call fcn.00414e89
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040131c
mov dword [ebp - 4], 7
push dword [ebp - 0x140]
lea eax, [ebp - 0x14c]
push 0x542790
push eax
call fcn.00401b9f
add esp, 0xc
push edi
lea ecx, [ebp - 0x158]
call fcn.00401d42
mov byte [ebp - 4], 8
push ecx
mov eax, esp
mov dword [ebp - 0x140], esp
lea ecx, [ebp - 0x158]
push ecx
lea ecx, [ebp - 0x14c]
push ecx
push eax
call fcn.00401bb3
add esp, 0xc
mov byte [ebp - 4], 9
mov byte [ebp - 4], 8
call fcn.00402f79
pop ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x158]
add ecx, 0xfffffff0
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14c]
add ecx, 0xfffffff0
call fcn.004010d2
inc dword [ebp - 0x148]
mov eax, dword [ebp - 0x148]
cmp eax, dword [ebp - 0x160]
jl 0x40a734
push dword [ebp - 0x144]
call fcn.0040829f
pop ecx
push dword [ebp - 0x144]
test al, al
je 0x40a962
call fcn.004083ec
jmp 0x40a967
call fcn.00407cc3
pop ecx
call fcn.005123f8
ret 8