Function at 0x421b70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x29
push 0
push 0
dec ecx
jne 0x421b78
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x421e61
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x421bc4
cmp byte [ebx], 0
je 0x421bc4
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404768
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x421e7c
call fcn.00404888
mov eax, dword [ebp - 0xc]
call fcn.00404a00
mov ebx, eax
test esi, esi
je 0x421bf1
cmp byte [esi], 0
je 0x421bf1
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00404768
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x421e7c
call fcn.00404888
mov eax, dword [ebp - 0x14]
call fcn.00404a00
mov esi, eax
push 0
push ebx
call sub.kernel32.dll_SetFileAttributesA
push 0
push esi
call sub.kernel32.dll_SetFileAttributesA
push 7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
mov edx, 0x421e84
call fcn.00404768
mov edx, dword [ebp - 0x1c]
mov ecx, 0x421ec0
mov eax, 0x80000002
call fcn.00421738
lea eax, [ebp - 0x120]
mov edx, ebx
call fcn.00403478
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x20]
call fcn.004047d4
push dword [ebp - 0x20]
push 0x421ee4
push 0x421ee4
lea eax, [ebp - 0x124]
mov edx, esi
call fcn.00404768
push dword [ebp - 0x124]
push 0x421ee4
lea eax, [ebp - 0x128]
mov edx, ebx
call fcn.00404768
push dword [ebp - 0x128]
push 0x421ee4
lea eax, [ebp - 8]
mov edx, 7
call fcn.00404904
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 4]
call fcn.00407058
mov eax, dword [ebp - 0x12c]
push eax
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 8]
call fcn.00407058
mov eax, dword [ebp - 0x130]
pop edx
call fcn.00404b4c
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x421cc8
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
test edx, edx
je 0x421cd4
sub edx, 4
mov edx, dword [edx]
sub eax, edx
inc eax
cmp edi, eax
je 0x421d4b
movzx eax, byte [0x421ee8]
push eax
lea eax, [ebp - 0x134]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00421a14
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 4]
call fcn.00404608
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040483c
push 0x421ef4
push 0x421f14
mov edx, 0x421e84
mov ecx, 4
mov eax, 0x80000002
call fcn.004218b0
push 0x421ec0
mov eax, dword [ebp - 4]
push eax
mov edx, 0x421e84
mov ecx, 7
mov eax, 0x80000002
call fcn.004218b0
push 7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x138]
mov edx, 0x421e84
call fcn.00404768
mov edx, dword [ebp - 0x138]
mov ecx, 0x421ec0
mov eax, 0x80000002
call fcn.00421738
lea eax, [ebp - 0x120]
mov edx, ebx
call fcn.00403478
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x13c]
call fcn.004047d4
push dword [ebp - 0x13c]
push 0x421ee4
push 0x421ee4
lea eax, [ebp - 0x140]
mov edx, esi
call fcn.00404768
push dword [ebp - 0x140]
push 0x421ee4
lea eax, [ebp - 0x144]
mov edx, ebx
call fcn.00404768
push dword [ebp - 0x144]
push 0x421ee4
lea eax, [ebp - 8]
mov edx, 7
call fcn.00404904
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00407058
mov eax, dword [ebp - 0x148]
push eax
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 8]
call fcn.00407058
mov eax, dword [ebp - 0x14c]
pop edx
call fcn.00404b4c
mov ecx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x421e1e
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
test edx, edx
je 0x421e2a
sub edx, 4
mov edx, dword [edx]
sub eax, edx
inc eax
cmp ecx, eax
sete al
neg al
sbb ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421e68
lea eax, [ebp - 0x14c]
mov edx, 0xb
call fcn.00404594
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00404594
ret