Function at 0x4065d0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, 0x4086bc
xor eax, eax
push ebp
push 0x406986
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x408650]
mov dword [0x4086e4], eax
mov dword [ebx], 0xc0
mov dword [ebx + 4], 0x406504
mov eax, dword [0x4086e4]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x1c], 0x10
mov eax, 0x406994
mov dword [ebx + 0x24], eax
push 0x40699c
mov eax, dword [0x4086e4]
push eax
call sub.user32.dll_LoadIconA
mov dword [ebx + 0x14], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebx + 0x18], eax
push ebx
call sub.user32.dll_RegisterClassA
test ax, ax
je 0x40696b
push 0x80000
push 0
call sub.user32.dll_GetSystemMetrics
sub eax, 0x12c
sar eax, 1
jns 0x406664
adc eax, 0
push eax
push 1
call sub.user32.dll_GetSystemMetrics
sub eax, 0x12c
sar eax, 1
jns 0x406678
adc eax, 0
push eax
push 0xc8
push 0x78
push 0
push 0
mov eax, dword [0x4086e4]
push eax
push 0
mov ecx, 0x4069a8
mov edx, 0x406994
mov eax, pe_nt_image_headers32
call fcn.004045c0
mov dword [0x4086e8], eax
cmp dword [0x4086e8], 0
je 0x40696b
mov eax, dword [0x4086e8]
push eax
call sub.user32.dll_UpdateWindow
lea edx, [ebp - 4]
mov eax, dword [0x408744]
call fcn.0040642c
mov edx, dword [ebp - 4]
mov eax, 0x40874c
call fcn.0040369c
xor eax, eax
push ebp
push 0x406714
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x80
mov eax, dword [0x40874c]
call fcn.004039c0
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
mov eax, dword [0x40874c]
call fcn.004039c0
push eax
call sub.KERNEL32.DLL_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40671e
mov eax, dword [0x40874c]
call fcn.00404cf4
test al, al
je 0x406746
lea edx, [ebp - 8]
mov eax, dword [0x40874c]
call fcn.0040494c
mov edx, dword [ebp - 8]
mov eax, 0x40874c
call fcn.0040369c
mov ecx, dword [0x40874c]
mov edx, 0x4069b4
mov eax, 0x4069c4
call fcn.00406318
mov eax, dword [0x40874c]
call fcn.004039c0
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x408750], eax
xor eax, eax
push ebp
push 0x4067e5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x408750], 0
je 0x4067db
push 0x4069cc
mov eax, dword [0x408750]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x408754], eax
push 0x4069d8
mov eax, dword [0x408750]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x408758], eax
push 0x4069e4
mov eax, dword [0x408750]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x40875c], eax
push 0x4069fc
mov eax, dword [0x408750]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x408760], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4067ff
push 0x406a18
push 0
push 2
call sub.KERNEL32.DLL_OpenFileMappingA
mov dword [0x408768], eax
cmp dword [0x408768], 0
jne 0x40682b
mov eax, dword [0x408750]
push eax
call sub.KERNEL32.DLL_FreeLibrary
call fcn.00403558
push 0
push 0
push 0
push 2
mov eax, dword [0x408768]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [0x408764], eax
cmp dword [0x408764], 0
jne 0x40685c
mov eax, dword [0x408768]
push eax
call sub.KERNEL32.DLL_CloseHandle
call fcn.00403558
mov eax, dword [0x408764]
xor ecx, ecx
mov edx, 0x441a
call fcn.00402b48
mov eax, dword [0x408764]
mov edx, dword [0x4086e8]
mov dword [eax], edx
cmp dword [0x408730], 0
je 0x4068a2
mov eax, dword [0x408764]
mov byte [eax + 0x440d], 1
mov eax, dword [0x408764]
mov edx, dword [0x408734]
mov dword [eax + 0x440e], edx
jmp 0x4068bf
mov eax, dword [0x408764]
mov byte [eax + 0x440d], 0
mov eax, dword [0x408764]
mov edx, dword [0x408738]
mov dword [eax + 0x4412], edx
cmp dword [0x40872c], 0
je 0x4068eb
mov eax, dword [0x408764]
mov byte [eax + 0x3809], 1
mov eax, dword [0x408764]
add eax, 0x380a
mov edx, dword [0x408708]
call fcn.004064e0
jmp 0x40690c
mov eax, dword [0x408764]
mov byte [eax + 0x3809], 0
mov eax, dword [0x408764]
add eax, 0x3c0b
mov edx, dword [0x40870c]
call fcn.004064e0
mov eax, dword [0x408764]
add eax, 0x400c
mov edx, dword [0x408710]
call fcn.004064e0
cmp dword [0x408718], 1
sbb eax, eax
inc eax
mov edx, dword [0x408764]
mov byte [edx + 0x3808], al
call dword [0x408754]
jmp 0x406953
push 0x4086ec
call sub.user32.dll_TranslateMessage
push 0x4086ec
call sub.user32.dll_DispatchMessageA
push 0
push 0
mov eax, dword [0x4086e8]
push eax
push 0x4086ec
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x40693f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40698d
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040366c
ret