Function at 0x402160
Capabilities:
Check for time delay via gettickcount
Delete file

Disassembly:
mov eax, 0x404420
call fcn.00403fa0
sub esp, 0x944
push ebx
push esi
mov esi, ecx
push edi
lea eax, [ebp - 0x30]
lea ebx, [esi + 0x20]
push ebx
push eax
call fcn.0040328c
pop ecx
pop ecx
xor edi, edi
lea eax, [ebp - 0x30]
push edi
mov dword [ebp - 4], edi
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 1
call fcn.004038a3
add esp, 0x18
lea ecx, [ebp - 0x950]
call fcn.00401000
mov eax, dword [esi + 4]
or dword [ebp - 0x14], 0xffffffff
cmp eax, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jne 0x4021c8
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]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x950]
push eax
push esi
push ebx
call fcn.004018c9
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x402234
cmp dword [ebp - 0x1c], 5
jle 0x402208
call edi
sub eax, dword [ebp - 0x10]
cmp eax, 0x927c0
ja 0x40222e
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
lea ecx, [ebp - 0x950]
call fcn.004018c9
test eax, eax
mov dword [ebp - 0x20], eax
je 0x4021f6
cmp dword [ebp - 0x20], 0
je 0x40227d
push 0
lea eax, [ebp - 0x30]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 2
call fcn.004038a3
mov eax, dword [esi + 0x14]
mov edx, 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]
add esp, 0x18
test eax, eax
jne 0x402261
mov eax, edx
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x40226a
mov ecx, edx
push 0
push 0
push eax
push ecx
call fcn.00403126
add esp, 0x10
mov dword [ebp - 0x18], eax
jmp 0x40229c
push dword [ebp - 0x14]
lea eax, [ebp - 0x30]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 4
call fcn.004038a3
add esp, 0x18
cmp dword [ebp - 0x18], 0
jne 0x4022b6
mov esi, dword [esi + 4]
test esi, esi
jne 0x4022af
mov esi, 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]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [ebp - 0x30]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 3
call fcn.004038a3
and byte [ebp - 4], 0
add esp, 0x18
lea ecx, [ebp - 0x950]
call fcn.0040108c
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4