Function at 0x410580
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b855
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x4da080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
push 0
push 0x4b59b3
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
mov byte [ebp - 4], 0
call fcn.00402970
mov byte [ebp - 4], 2
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x410616
mov eax, dword [esi]
lea ecx, [ebp - 0x17c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [ebp - 0x17c], 0x10
mov dword [ebp - 0x180], eax
jne 0x410644
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, 1
jmp 0x410831
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00408b50
mov ecx, dword [esi + 0x10]
add esp, 4
mov eax, dword [ebp - 0x20]
xor edi, edi
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x410732
cmp ecx, edi
jbe 0x4108ed
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 0x10
jb 0x41067a
mov ecx, dword [esi]
cmp byte [ecx + edi], 0x5c
je 0x4106c8
mov eax, esi
cmp edx, 0x10
jb 0x410689
mov eax, dword [esi]
mov dl, byte [eax + edi]
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
mov byte [ebp - 0x24], dl
cmp ecx, ebx
jae 0x4106b3
lea eax, [ecx + 1]
cmp ebx, 0x10
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x4106f4
push dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x180]
push 1
call fcn.00408880
jmp 0x4106f4
lea ecx, [ebp - 0x3c]
push ecx
cmp eax, dword [ebp - 0x18]
je 0x4106de
mov ecx, eax
call fcn.00406730
add dword [ebp - 0x1c], 0x18
jmp 0x4106e7
push eax
lea ecx, [ebp - 0x20]
call fcn.004125c0
push 0x4b5c68
lea ecx, [ebp - 0x3c]
call fcn.00406440
mov eax, dword [esi + 0x10]
dec eax
cmp edi, eax
mov eax, dword [ebp - 0x1c]
jne 0x410726
lea ecx, [ebp - 0x3c]
push ecx
cmp eax, dword [ebp - 0x18]
je 0x41071a
mov ecx, eax
call fcn.00406730
mov eax, dword [ebp - 0x1c]
add eax, 0x18
mov dword [ebp - 0x1c], eax
jmp 0x410726
push eax
lea ecx, [ebp - 0x20]
call fcn.004125c0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x10]
inc edi
cmp ecx, edi
ja 0x41066e
push dword [ebp - 0x180]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x20]
mov ebx, 1
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x4107eb
mov ecx, 0x18
mov dword [ebp - 0x24], ecx
nop dword [eax]
cmp eax, ebx
jbe 0x4108f2
lea eax, [edi + ecx]
lea ecx, [ebp - 0x3c]
cmp ecx, eax
je 0x410797
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x41078d
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402970
cmp dword [ebp - 0x28], 0x10
lea eax, [ebp - 0x3c]
push 0
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4107c6
cmp dword [ebp - 0x28], 0x10
lea eax, [ebp - 0x3c]
push 0x80
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x20]
inc ebx
add dword [ebp - 0x24], 0x18
sub ecx, edi
imul ecx
mov ecx, dword [ebp - 0x24]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x410770
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, edi
call fcn.00408b50
mov eax, dword [ebp - 0x20]
add esp, 4
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x1c], eax
jb 0x410807
mov esi, dword [esi]
lea eax, [ebp - 0x17c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [ebp - 0x17c], 0x10
push eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
jne 0x41082d
call eax
mov edi, 1
jmp 0x410831
call eax
xor edi, edi
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x410865
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41085b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4108f7
push edx
push ecx
call fcn.00472dd6
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
test ecx, ecx
je 0x4108cd
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.00408b50
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x20]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4108c3
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4108f7
push ecx
push esi
call fcn.00472dd6
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00472d8e
mov esp, ebp
pop ebp
ret 4
call fcn.00407b40
call fcn.00410b10
call fcn.0047a550
int3