Function at 0x40bc50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a6ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push esi
push edi
mov dword [ebp - 0x14], 0
push 1
lea ecx, [ebp - 0x198]
call fcn.00402b40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004028a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004028a0
mov byte [ebp - 4], 2
mov byte [ebp - 0x25], 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040fff0
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0040fea0
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40bd02
mov dword [ebp - 0x50], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004039e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004039e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
call fcn.004044c0
mov eax, dword [ebp - 0x50]
jmp 0x40c034
mov dword [ebp - 0x20], 0
jmp 0x40bd14
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x80]
cmp dword [ebp - 0x20], ecx
jae 0x40bff7
push 0
push 0
push 0
push 0
push 0x104
lea edx, [ebp - 0x320]
push edx
lea eax, [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040fe70
test eax, eax
je 0x40bd81
mov dword [ebp - 0x64], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004039e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004039e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
call fcn.004044c0
mov eax, dword [ebp - 0x64]
jmp 0x40c034
mov edx, dword [ebp - 0x9c]
and edx, 0x10
jne 0x40bd98
mov eax, dword [ebp - 0x14]
push eax
call fcn.00410280
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.0040c90c
add esp, 4
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00410750
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x424]
call fcn.0040b400
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x44]
sub esp, 0x104
mov ecx, 0x41
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push str.._s
lea edx, [ebp - 0x10]
push edx
call fcn.00405880
add esp, 0x10c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x424]
call fcn.00403a00
push 0x42ba18
push 0x42ba1c
lea ecx, [ebp - 0x10]
call fcn.004067a0
lea ecx, [ebp - 0x10]
call fcn.00405c90
push eax
lea ecx, [ebp - 0x21c]
call fcn.004028c0
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
call fcn.00405c90
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea ecx, [ebp - 0x21c]
call fcn.00403a00
push 0x80
lea ecx, [ebp - 0x10]
call fcn.00405c90
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x42ba20
push 1
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004069d0
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x68]
push edx
call fcn.0040b520
add esp, 8
mov byte [ebp - 0x15], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.004039e0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x40bf45
push 0x40
push 0x33
lea ecx, [ebp - 0x10]
call fcn.00405c90
push eax
lea ecx, [ebp - 0x198]
call fcn.00409f30
lea ecx, [ebp - 0x198]
call fcn.00409b20
movzx ecx, al
test ecx, ecx
je 0x40bf0a
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x188]
call fcn.0040b020
lea ecx, [ebp - 0x198]
call fcn.00408d80
jmp 0x40bf45
mov edx, dword [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x10]
call fcn.00405c90
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ba20
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040fdd0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
push edx
call fcn.00413c12
add esp, 4
mov eax, dword [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405c90
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ba20
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040fdd0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00413c12
add esp, 4
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 0x80]
sub eax, 1
mov esi, dword [ebp - 0x7c]
sbb esi, 0
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], esi
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp - 0x54]
ja 0x40bff2
jb 0x40bfaf
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x58]
jae 0x40bff2
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040ff40
test eax, eax
je 0x40bff2
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004039e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004039e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
call fcn.004044c0
mov eax, dword [ebp - 0x38]
jmp 0x40c034
jmp 0x40bd0b
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040fd90
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004039e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004039e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
call fcn.004044c0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret