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

Disassembly:
push 0xffffffffffffffff
push 0x405b67
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xc4]
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
mov dword [esp + 0x14], ebx
je 0x4028bb
mov ebp, dword [esp + 0xc8]
cmp ebp, ebx
je 0x4028bb
push 0x4062a0
mov byte [esi + 0x20c2], 1
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov ecx, ebp
push eax
push ebx
push 0x4062a0
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::find_unsigned_short_int_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
je 0x402562
push eax
lea edx, [esp + 0x24]
push ebx
push edx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov dword [esp + 0xbc], ebx
mov edx, dword [ecx]
lea ecx, [esi + 0x2163]
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x24]
mov dword [esp + 0xbc], 0xffffffff
cmp eax, ebx
je 0x402562
mov cl, byte [eax - 1]
cmp cl, bl
je 0x402556
cmp cl, 0xff
je 0x402556
dec cl
mov byte [eax - 1], cl
jmp 0x402562
add eax, 0xfffffffe
push eax
call fcn.004058ac
add esp, 4
lea eax, [esi + 0x2157]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.00402ba0
push edi
mov ecx, esi
call fcn.00402d60
test eax, eax
jne 0x402594
push ebx
push 8
mov ecx, esi
call fcn.00402b70
jmp 0x4028bb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x20ba]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x18], edi
jl 0x40288c
mov edx, dword [esi]
push 5
mov ecx, esi
call dword [edx + 8]
test eax, eax
je 0x4028bb
cmp edi, ebx
jle 0x402613
push ebx
push 0x1c
mov ecx, esi
call fcn.00402b70
lea edi, [esi + 0x20c3]
mov eax, dword [edi + 0x54]
lea ebp, [edi + 4]
cmp eax, ebx
je 0x4025fe
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test eax, eax
jne 0x4025fe
push 2
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_]
cmp ebp, ebx
jne 0x402613
mov eax, dword [edi]
push ebx
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 4]
add ecx, edi
or al, 2
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov ecx, esi
call fcn.00403190
cmp eax, ebx
push ebx
jne 0x40262d
push 0xd
mov ecx, esi
call fcn.00402b70
jmp 0x402814
push 0xc
mov ecx, esi
call fcn.00402b70
mov edx, dword [esi + 0x20c3]
lea ebp, [esi + 0x20c3]
push ebx
mov eax, dword [edx + 4]
lea ecx, [eax + esi + 0x20c3]
mov eax, dword [eax + esi + 0x20eb]
neg eax
sbb eax, eax
and al, 0xfc
add eax, 4
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::ios_base::clear_int__bool_]
mov ecx, dword [esp + 0xc8]
mov edi, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x40267a
mov edi, eax
lea edx, [esp + 0x34]
cmp edi, ebx
mov dword [esp + 0x30], edx
jne 0x40268e
xor eax, eax
mov dword [esp + 0x30], eax
jmp 0x4026f1
push edi
mov dword [esp + 0x14], ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea eax, [esp + 0x18]
push edi
push eax
push ebx
call fcn.00402a00
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, 0x80
jb 0x4026c7
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x4026f1
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
push edx
call fcn.00402a00
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov byte [eax + ecx], bl
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x54]
lea edi, [ebp + 4]
cmp ecx, ebx
mov dword [esp + 0xbc], 1
jne 0x40272d
push 0x32
push eax
call dword [sym.imp.MSVCP60.dll_struct__iobuf____cdecl_std::__Fiopen_char_const___int_]
add esp, 8
cmp eax, ebx
je 0x40272d
push 1
push eax
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_]
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Initcvt_void_]
cmp edi, ebx
jne 0x40274c
mov edx, dword [ebp]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + ebp + 0x28]
add ecx, ebp
mov eax, dword [ecx + 4]
or al, 2
cmp edx, ebx
jne 0x402744
or al, 4
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::ios_base::clear_int__bool_]
mov eax, dword [esp + 0x30]
mov dword [esp + 0xbc], 0xffffffff
cmp eax, ebx
je 0x402771
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x402771
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [ebp]
mov eax, dword [edx + 4]
test byte [eax + esi + 0x20c7], 6
jne 0x402846
mov ecx, esi
call fcn.00403ea0
test eax, eax
jne 0x40279c
push ebx
push 0xf
mov ecx, esi
call fcn.00402b70
jmp 0x402814
mov ecx, esi
mov dword [esi + 0x214f], ebx
call fcn.00404840
test eax, eax
jne 0x4027cc
push ebx
push 0x10
mov ecx, esi
call fcn.00402b70
mov eax, dword [esi + 0x20be]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
push edx
jmp 0x402827
mov eax, dword [esi]
push 5
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x4028bb
mov ecx, dword [esi + 0x214f]
mov eax, dword [esi + 0x2157]
cmp ecx, eax
je 0x402804
mov edx, dword [esi + 0x20b6]
mov ecx, esi
push edx
call fcn.004051c0
cmp eax, 0xffffffff
je 0x402804
cmp eax, ebx
jg 0x4027cc
mov eax, dword [esi + 0x214f]
mov ecx, dword [esi + 0x2157]
cmp eax, ecx
je 0x402884
mov eax, dword [esi + 0x20be]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 3
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x20ba]
inc edi
cmp edi, eax
mov dword [esp + 0x18], edi
jle 0x4025b2
jmp 0x40288c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x27
je 0x402878
cmp eax, 0x70
je 0x402878
cmp eax, 0x13
je 0x40286c
cmp eax, 5
je 0x40286c
push ebx
push 0x18
mov ecx, esi
call fcn.00402b70
jmp 0x4028bb
push ebx
push 0x1b
mov ecx, esi
call fcn.00402b70
jmp 0x4028bb
push ebx
push 0x19
mov ecx, esi
call fcn.00402b70
jmp 0x4028bb
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x1c]
mov ecx, eax
jne 0x40289f
mov ecx, 1
mov eax, dword [esi + 0x214f]
xor edx, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
div ecx
mov dword [esi + 0x2008], eax
cmp byte [esi + 0x2175], bl
je 0x4028cb
cmp byte [esi + 0x2174], bl
je 0x4028df
mov ecx, esi
call fcn.004051a0
mov byte [esi + 0x2173], 1
mov byte [esi + 0x2174], bl
lea edi, [esi + 0x20c3]
cmp edi, ebx
jne 0x4028ed
xor eax, eax
jmp 0x4028f9
mov edx, dword [edi]
mov eax, dword [edx + 4]
lea eax, [eax + esi + 0x20c3]
mov ecx, dword [eax + 4]
and cl, 6
neg cl
sbb ecx, ecx
not ecx
test eax, ecx
je 0x402991
mov edx, dword [edi]
push ebx
mov eax, dword [edx + 4]
lea ecx, [eax + esi + 0x20c3]
mov eax, dword [eax + esi + 0x20eb]
neg eax
sbb eax, eax
and al, 0xfc
add eax, 4
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::ios_base::clear_int__bool_]
mov eax, dword [edi + 0x54]
lea ebp, [edi + 4]
cmp eax, ebx
je 0x402973
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test eax, eax
jne 0x402973
mov ecx, ebp
mov byte [ebp + 0x48], bl
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov dword [ebp + 0x50], ebx
mov ecx, dword [sym.imp.MSVCP60.dll_int__protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_::_2::_Stinit]
cmp ebp, ebx
mov edx, dword [ecx]
mov dword [ebp + 0x40], edx
mov eax, dword [sym.imp.MSVCP60.dll_int__protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_::_2::_Stinit]
mov ecx, dword [eax]
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x3c], ecx
jne 0x402991
mov edx, dword [edi]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + edi + 0x28]
add ecx, edi
mov eax, dword [ecx + 4]
or al, 2
cmp edx, ebx
jne 0x402989
or al, 4
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::ios_base::clear_int__bool_]
mov eax, dword [esi + 0x2157]
cmp eax, ebx
je 0x4029a7
cmp dword [esi + 0x214f], eax
jne 0x4029a7
push ebx
push ebx
jmp 0x4029d1
push ebx
push 0x1a
mov ecx, esi
call fcn.00402b70
mov eax, dword [esp + 0xc8]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x4029c4
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll__wremove]
add esp, 4
push ebx
push 1
mov ecx, esi
call fcn.00402b70
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret 8