Function at 0x4177d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x29
push 0
push 0
dec ecx
jne 0x4177d8
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x417ac1
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x417824
cmp byte [ebx], 0
je 0x417824
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004040bc
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x417adc
call fcn.00404194
mov eax, dword [ebp - 0xc]
call fcn.0040430c
mov ebx, eax
test esi, esi
je 0x417851
cmp byte [esi], 0
je 0x417851
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.004040bc
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x417adc
call fcn.00404194
mov eax, dword [ebp - 0x14]
call fcn.0040430c
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, 0x417ae4
call fcn.004040bc
mov edx, dword [ebp - 0x1c]
mov ecx, 0x417b20
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 0x417b44
push 0x417b44
lea eax, [ebp - 0x124]
mov edx, esi
call fcn.004040bc
push dword [ebp - 0x124]
push 0x417b44
lea eax, [ebp - 0x128]
mov edx, ebx
call fcn.004040bc
push dword [ebp - 0x128]
push 0x417b44
lea eax, [ebp - 8]
mov edx, 7
call fcn.00404210
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 4]
call fcn.00406268
mov eax, dword [ebp - 0x12c]
push eax
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 8]
call fcn.00406268
mov eax, dword [ebp - 0x130]
pop edx
call fcn.00404458
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x417928
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
test edx, edx
je 0x417934
sub edx, 4
mov edx, dword [edx]
sub eax, edx
inc eax
cmp edi, eax
je 0x4179ab
movzx eax, byte [0x417b48]
push eax
lea eax, [ebp - 0x134]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004172fc
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 4]
call fcn.00403f5c
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404148
push 0x417b54
push 0x417b74
mov edx, 0x417ae4
mov ecx, 4
mov eax, 0x80000002
call fcn.00417198
push 0x417b20
mov eax, dword [ebp - 4]
push eax
mov edx, 0x417ae4
mov ecx, 7
mov eax, 0x80000002
call fcn.00417198
push 7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x138]
mov edx, 0x417ae4
call fcn.004040bc
mov edx, dword [ebp - 0x138]
mov ecx, 0x417b20
mov eax, 0x80000002
call fcn.00417020
lea eax, [ebp - 0x120]
mov edx, ebx
call fcn.0040325c
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x13c]
call fcn.004040ec
push dword [ebp - 0x13c]
push 0x417b44
push 0x417b44
lea eax, [ebp - 0x140]
mov edx, esi
call fcn.004040bc
push dword [ebp - 0x140]
push 0x417b44
lea eax, [ebp - 0x144]
mov edx, ebx
call fcn.004040bc
push dword [ebp - 0x144]
push 0x417b44
lea eax, [ebp - 8]
mov edx, 7
call fcn.00404210
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00406268
mov eax, dword [ebp - 0x148]
push eax
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 8]
call fcn.00406268
mov eax, dword [ebp - 0x14c]
pop edx
call fcn.00404458
mov ecx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x417a7e
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
test edx, edx
je 0x417a8a
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 0x417ac8
lea eax, [ebp - 0x14c]
mov edx, 0xb
call fcn.00403ee8
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00403ee8
ret