Function at 0x42ae80
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x579d2e
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x60bd28]
xor eax, esp
mov dword [esp + 0x15c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x174]
mov dword fs:[0], eax
xor ebp, ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x17c], ebp
call fcn.005167d7
mov byte [esp + 0x17c], 1
call fcn.00512f10
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x42aeef
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x184]
lea ecx, [esp + 0x30]
push ecx
push edi
mov byte [esp + 0x184], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [esp + 0x30], 0x10
mov esi, eax
mov dword [esp + 0x2c], esi
jne 0x42af95
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42af56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 0
call fcn.00516b0e
lea eax, [edi - 0x10]
mov dword [esp + 0x17c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42af8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x42b24f
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x20]
call fcn.005168b9
mov eax, dword [edi - 0xc]
cmp eax, ebp
jle 0x42b097
test ebp, ebp
jl 0x42b10e
cmp ebp, eax
jg 0x42b10e
mov ecx, dword [esp + 0x184]
mov bl, byte [ecx + ebp]
cmp bl, 0x5c
je 0x42b001
cmp ebp, eax
jg 0x42b10e
mov edx, dword [esp + 0x14]
mov edi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x42affc
push esi
lea ecx, [esp + 0x18]
call fcn.00401b20
mov edx, dword [esp + 0x14]
mov byte [edi + edx], bl
jmp 0x42b041
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00516cb3
mov edx, dword [esp + 0x14]
mov edi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x42b03d
push esi
lea ecx, [esp + 0x18]
call fcn.00401b20
mov edx, dword [esp + 0x14]
mov byte [edi + edx], 0x5c
test esi, esi
jl 0x42b10e
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x42b10e
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
mov byte [esi + edx], 0
mov esi, dword [esp + 0x184]
mov eax, dword [esi - 0xc]
add eax, 0xffffffff
cmp ebp, eax
jne 0x42b085
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00516cb3
mov eax, dword [esi - 0xc]
add ebp, 1
cmp ebp, eax
jl 0x42afac
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x20]
mov ebp, 1
cmp eax, ebp
jle 0x42b167
nop
test ebp, ebp
jl 0x42b1ea
cmp ebp, eax
jge 0x42b1ea
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + ebp*4]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x42b126
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x42b118
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42b118
push eax
call fcn.00401b70
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x42b105
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x42b126
push 0x80070057
call fcn.00401010
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402290
lea ecx, [esp + 0x14]
push ecx
call fcn.0042ada0
add esp, 4
test al, al
jne 0x42b158
mov edx, dword [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x42b167
mov eax, dword [esp + 0x14]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x20]
add ebp, 1
cmp ebp, eax
jl 0x42b0b0
mov edi, dword [esp + 0x184]
lea ecx, [esp + 0x30]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
or ebx, 0xffffffff
push ebx
push 0
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.005168b9
test byte [esp + 0x30], 0x10
push esi
je 0x42b1ef
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 1
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42b1c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 0
call fcn.00516b0e
lea eax, [edi - 0x10]
mov dword [esp + 0x17c], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jmp 0x42af82
jmp fcn.0050b21f
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 1
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b21c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 0
call fcn.00516b0e
lea eax, [edi - 0x10]
mov dword [esp + 0x17c], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x42b24d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.0053fab2
add esp, 0x16c
ret