Function at 0x417458
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x28
push 0
push 0
dec ecx
jne 0x417460
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x41770f
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x4174ac
cmp byte [esi], 0
je 0x4174ac
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.004040bc
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x41772c
call fcn.00404194
mov eax, dword [ebp - 0xc]
call fcn.0040430c
mov esi, eax
test ebx, ebx
je 0x4174d9
cmp byte [ebx], 0
je 0x4174d9
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.004040bc
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x41772c
call fcn.00404194
mov eax, dword [ebp - 0x14]
call fcn.0040430c
mov ebx, eax
push 0
push esi
call sub.kernel32.dll_SetFileAttributesA
push 0
push ebx
call sub.kernel32.dll_SetFileAttributesA
push 7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
mov edx, 0x417734
call fcn.004040bc
mov edx, dword [ebp - 0x1c]
mov ecx, 0x417770
mov eax, 0x80000002
call fcn.00417020
lea eax, [ebp - 0x120]
mov edx, ebx
call fcn.0040325c
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x20]
call fcn.004040ec
push dword [ebp - 0x20]
push 0x417794
lea eax, [ebp - 0x124]
mov edx, esi
call fcn.004040bc
push dword [ebp - 0x124]
push 0x417794
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404210
lea edx, [ebp - 0x128]
mov eax, dword [ebp - 4]
call fcn.00406268
mov eax, dword [ebp - 0x128]
push eax
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 8]
call fcn.00406268
mov eax, dword [ebp - 0x12c]
pop edx
call fcn.00404458
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x417593
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
test edx, edx
je 0x41759f
sub edx, 4
mov edx, dword [edx]
sub eax, edx
inc eax
cmp edi, eax
je 0x417616
movzx eax, byte [0x417798]
push eax
lea eax, [ebp - 0x130]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004172fc
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 4]
call fcn.00403f5c
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404148
push 0x4177a4
push 0x4177c4
mov edx, 0x417734
mov ecx, 4
mov eax, 0x80000002
call fcn.00417198
push 0x417770
mov eax, dword [ebp - 4]
push eax
mov edx, 0x417734
mov ecx, 7
mov eax, 0x80000002
call fcn.00417198
push 7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x134]
mov edx, 0x417734
call fcn.004040bc
mov edx, dword [ebp - 0x134]
mov ecx, 0x417770
mov eax, 0x80000002
call fcn.00417020
lea eax, [ebp - 0x120]
mov edx, ebx
call fcn.0040325c
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x138]
call fcn.004040ec
push dword [ebp - 0x138]
push 0x417794
lea eax, [ebp - 0x13c]
mov edx, esi
call fcn.004040bc
push dword [ebp - 0x13c]
push 0x417794
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404210
lea edx, [ebp - 0x140]
mov eax, dword [ebp - 4]
call fcn.00406268
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 8]
call fcn.00406268
mov eax, dword [ebp - 0x144]
pop edx
call fcn.00404458
mov ecx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4176cc
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
test edx, edx
je 0x4176d8
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 0x417716
lea eax, [ebp - 0x144]
mov edx, 9
call fcn.00403ee8
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00403ee8
ret