Function at 0x404000
Capabilities:
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x154
push ebx
mov ebx, dword [0x55b0d8]
test ebx, ebx
push ebp
push esi
push edi
jg 0x4040d0
mov dword [0x55b0d8], 0
call fcn.00403d40
lea eax, [esp + 0x24]
push eax
push 0x55afc0
call dword [sym.imp.kernel32.dll_FindFirstFileA]
push eax
call dword [sym.imp.kernel32.dll_FindClose]
mov ecx, dword [0x55b208]
cmp ecx, dword [esp + 0x44]
jne 0x404057
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x154
ret
cmp dword [esp + 0x168], 1
jne 0x4040c0
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x55b220
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, 0x55b0e0
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x45f178
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
or ecx, 0xffffffff
mov esi, edi
mov edi, 0x55b0e0
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x30
push 0x55b0e0
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x154
ret
mov eax, dword [0x55b20c]
cmp ebx, eax
jle 0x4040db
mov ebx, eax
mov ecx, dword [0x465e74]
mov edx, dword [0x45f0dc]
lea eax, [esp + 0x10]
push eax
push ebx
push ecx
push edx
call fcn.004170f0
mov ebp, dword [esp + 0x178]
add esp, 0x10
test eax, eax
jne 0x40419d
cmp ebp, 1
jne 0x4042ce
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x55b220
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, 0x55b0e0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x45f1c0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
or ecx, 0xffffffff
mov esi, edi
mov edi, 0x55b0e0
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x35
push 0x55b0e0
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x4042ce
mov ecx, dword [0x465e74]
mov edx, dword [0x45f0dc]
lea eax, [esp + 0x10]
push eax
push ebx
push ecx
push edx
call fcn.004170f0
add esp, 0x10
test eax, eax
je 0x404106
mov ecx, dword [esp + 0x10]
mov edx, dword [0x465e74]
mov ebx, dword [sym.imp.kernel32.dll_WriteFile]
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [0x45f0e0]
push ecx
push edx
push eax
call ebx
test eax, eax
jne 0x40425a
cmp ebp, 1
jne 0x4042ce
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x55afc0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, 0x55b0e0
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x45f130
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
or ecx, 0xffffffff
mov esi, edi
mov edi, 0x55b0e0
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x35
push 0x55b0e0
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x4042ce
mov ecx, dword [esp + 0x10]
mov edx, dword [0x465e74]
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [0x45f0e0]
push ecx
push edx
push eax
call ebx
test eax, eax
je 0x4041c6
mov edx, dword [0x55b0d8]
mov ecx, dword [esp + 0x10]
sub edx, ecx
mov dword [0x55b0d8], edx
call fcn.00403540
mov eax, dword [0x55b0d8]
test eax, eax
jg 0x4042e3
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push 0x55b220
call fcn.00418e40
mov edx, dword [0x45f0e0]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push edx
call dword [sym.imp.kernel32.dll_SetFileTime]
call fcn.00403d40
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4042c1
push eax
push 0x55afc0
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x154
ret
call fcn.00403d40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x154
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x154
ret