Function at 0x402a00
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x31c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x21c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x330]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x22c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x334]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x22c]
push eax
call fcn.00401230
push 0x3a
push 0x40c740
push eax
mov dword [0x40c780], eax
call fcn.00401490
add esp, 0x10
cmp eax, 0x3a
jb 0x402cb7
movsx edx, word [0x40c750]
push 0x3134
push 0x42
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x40c9c0], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x40c78c], eax
jne 0x402acb
push 0x30
push eax
push str.No_Enough_Memory_now_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x40c780]
push eax
call fcn.00401460
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x40c780]
push 0xa8
push 0x40c9e0
push ecx
call fcn.00401490
mov edi, dword [esp + 0x33c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40c9e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x30]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
push 0
push 0x80
push 2
push 0
push 3
lea ecx, [esp + 0x40]
push 0xc0000000
push ecx
call ebp
mov edx, dword [0x40c78c]
push 0
push edx
push 0x402d50
push 0x402ce0
mov dword [0x40c784], eax
mov dword [0x40c8a0], 0
call fcn.004033f0
add esp, 0x10
test eax, eax
jg 0x402c5e
cmp dword [0x40ca88], 1
je 0x402c5e
mov eax, dword [0x40ca70]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [0x40c784]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, dword [0x40c784]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov al, byte [0x40b1b4]
dec ecx
mov byte [esp + 0x130], al
mov dword [esp + 0x10], ecx
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [str.del]
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x12c], edx
sub edi, ecx
lea edx, [esp + 0x12c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x12c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004029c0
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x402c9e
jmp 0x402ad7
mov ecx, dword [0x40c780]
push ecx
call fcn.00401460
mov edx, dword [0x40c784]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x40c9c0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [0x40c9c0]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
mov edx, dword [0x40c9c0]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x40c9c0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x40c780]
push ecx
call fcn.00401460
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret