Function at 0x403ee4
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x408917
call fcn.004050c0
mov eax, 0x1828
call fcn.004053c0
push ebx
push esi
push edi
push 0x3ed
push dword [0x40d13c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x34], eax
xor esi, esi
xor eax, eax
cmp dword [0x40d148], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
sete al
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], esi
cmp dword [0x40d018], esi
mov dword [ebp - 0x18], esi
jl 0x40424a
push dword [ebp - 0x18]
mov edi, 0x40d018
mov ecx, edi
call fcn.00401d01
push esi
mov ebx, eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x2c8]
mov ecx, edi
mov dword [ebp - 0x2c], ebx
push eax
call fcn.00401c65
mov edi, dword [ebp - 0x18]
cmp edi, esi
je 0x403f7f
cmp dword [ebp - 0x14], esi
je 0x403f7f
cmp dword [ebx + 0x10], esi
jne 0x403f7f
cmp dword [ebp - 0x10], esi
jne 0x403f7b
mov dword [ebp - 0x10], edi
jmp 0x403f7f
or byte [ebp - 0xd], 0x10
test byte [ebx + 8], 0x10
je 0x403fad
cmp dword [ebp - 0x14], esi
je 0x404238
lea eax, [ebp - 0x2c8]
push eax
call fcn.00401e2d
cmp edi, esi
pop ecx
jne 0x404238
call fcn.004031f0
jmp 0x404238
lea ecx, [ebp - 0x668]
call fcn.00401ea9
cmp dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
je 0x4041d6
test byte [ebx + 8], 0x20
mov dword [ebp - 0x28], 1
jne 0x403ff6
lea eax, [ebp - 0x2c8]
push esi
push eax
lea ecx, [ebp - 0x668]
call fcn.00401f13
test eax, eax
je 0x403ff6
lea ecx, [ebp - 0x668]
call fcn.004021c9
mov dword [ebp - 0x28], esi
mov edi, dword [ebx + 4]
cmp dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], edi
je 0x4041ce
push dword [ebx + 0xc]
mov ecx, 0x40cc68
call fcn.00402155
test eax, eax
jl 0x4042b0
push 0x3ffe
mov ecx, 0x40cc68
call fcn.004022d4
cmp dword [0x40a044], esi
je 0x40405e
lea eax, [edi + 0x384]
mov ecx, 0x400
cdq
idiv ecx
push eax
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x834]
push 0x40a3c8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x404065
and byte [ebp - 0x834], 0
lea eax, [ebp - 0x834]
push esi
push eax
call fcn.00402aeb
pop ecx
push eax
push 0x186
push dword [0x40c9cc]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x2c8]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x2c8]
push 1
push eax
lea ecx, [ebp - 0x668]
call fcn.00401f13
test eax, eax
je 0x4042d0
cmp edi, esi
mov dword [0x40cdd8], 1
jle 0x404166
mov esi, 0x1000
cmp edi, esi
jge 0x4040d0
mov esi, edi
lea eax, [ebp - 0x1834]
push esi
push eax
mov ecx, 0x40cc68
sub edi, esi
call fcn.0040239c
cmp dword [0x40cffc], 0
jne 0x404164
lea eax, [ebp - 0x1834]
push esi
push eax
lea ecx, [ebp - 0x668]
call fcn.004022a6
mov eax, dword [ebp - 0x24]
push 1
pop ebx
cmp eax, ebx
jge 0x40410c
mov eax, ebx
cmp dword [ebp - 0x1c], ebx
jl 0x404114
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
sub esi, edi
add eax, esi
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
push ebx
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x834]
push 0x40a394
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ebx, dword [ebp - 0x2c]
test edi, edi
jg 0x4040c5
xor esi, esi
cmp dword [0x40cffc], esi
mov dword [0x40cdd8], esi
jne 0x4042b7
lea ecx, [ebp - 0x668]
call fcn.004021c9
push esi
push esi
push 3
push esi
push esi
lea eax, [ebp - 0x2c8]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4041b6
lea eax, [ebx + 0x14]
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 8]
and eax, 0xff
push eax
lea eax, [ebp - 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor esi, esi
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x20], eax
jmp 0x404229
mov eax, dword [ebx + 4]
add dword [ebp - 0x24], eax
cmp dword [ebp - 0x30], esi
je 0x404229
lea eax, [ebp - 0x2c8]
push esi
push eax
lea ecx, [ebp - 0x668]
call fcn.00401f13
test eax, eax
je 0x404229
lea ecx, [ebp - 0x668]
call fcn.004021c9
lea eax, [ebp - 0x2c8]
push 1
push eax
push 0x40a370
push dword [0x40d13c]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x4042ea
mov dword [ebp - 0x30], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x668]
call fcn.00401ed2
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [0x40d018]
jle 0x403f3a
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x403f2b
test byte [ebp - 0xd], 0x10
je 0x404260
mov dword [ebp - 0x10], esi
push esi
lea eax, [ebp - 0x2c8]
push dword [ebp - 0x10]
mov ecx, 0x40d018
push eax
call fcn.00401c65
lea eax, [ebp - 0x2c8]
push 0x40a36c
push eax
call fcn.00404b60
pop ecx
pop ecx
call fcn.00402d3f
call fcn.004030bc
cmp dword [0x40d148], esi
je 0x40429f
call fcn.0040317c
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
call fcn.00402b7e
jmp 0x4042ea
call fcn.00402b7e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x668]
call fcn.00401ed2
push 1
pop eax
jmp 0x4042a1
lea eax, [ebp - 0x2c8]
push 0x10
push eax
push 0x40a358
push dword [0x40d13c]
call dword [sym.imp.USER32.dll_MessageBoxA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x668]
call fcn.00401ed2
or eax, 0xffffffff
jmp 0x4042a1