Function at 0x41c460
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42a290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 0x28]
lea esi, [ebx + 0x24]
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0041d090
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.0041d0a0
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0041d090
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.0041d0a0
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0041d090
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.0041d0a0
lea eax, [ebx + 4]
push ebx
push eax
lea eax, [esp + 0x14]
push eax
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0xc]
push 0
push 0
push str.update.txt
push ecx
mov dword [esp + 0xd8], 0
call fcn.0041cbc0
add esp, 0x10
test al, al
jne 0x41c534
lea ecx, [esp + 0xc]
mov dword [esp + 0xc8], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x41cb0d
lea ecx, [esp + 0x48]
call fcn.004263ea
push 0
push 0x4000
push str.update.txt
lea ecx, [esp + 0x54]
mov byte [esp + 0xd4], 1
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x41c589
lea ecx, [esp + 0x48]
mov byte [esp + 0xc8], al
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0xc]
mov dword [esp + 0xc8], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x41cb0d
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc8], 2
call fcn.004263f6
lea edx, [esp + 0x1f]
lea ecx, [esp + 0x5c]
push edx
mov byte [esp + 0xcc], 3
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::allocator_char__const__]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x6c]
push eax
mov byte [esp + 0xcc], 4
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::allocator_char__const__]
lea ecx, [esp + 0x1e]
mov byte [esp + 0xc8], 5
push ecx
lea ecx, [esp + 0x80]
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::allocator_char__const__]
lea edx, [esp + 0x23]
lea ecx, [esp + 0x8c]
push edx
mov byte [esp + 0xcc], 6
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::allocator_char__const__]
lea eax, [esp + 0x22]
lea ecx, [esp + 0x9c]
push eax
mov byte [esp + 0xcc], 7
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::allocator_char__const__]
lea ecx, [esp + 0x21]
mov byte [esp + 0xc8], 8
push ecx
lea ecx, [esp + 0xb0]
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::allocator_char__const__]
lea edx, [esp + 8]
lea ecx, [esp + 0x48]
push edx
mov byte [esp + 0xcc], 9
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x41ca21
push ebp
push edi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.0041ccc0
mov eax, dword [esp + 0x44]
add esp, 8
cmp eax, 3
jl 0x41ca09
mov edx, dword [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [edx]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [esp + 0x38]
lea esi, [ebx + 8]
push eax
lea ecx, [esp + 0x20]
push esi
push ecx
call sub.MFC42.DLL_operator_1
mov edx, dword [eax]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0xd0], 0xa
push ecx
push edx
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], 9
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [edx + 4]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x8c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [esp + 0x38]
or ecx, 0xffffffff
mov edx, dword [eax + 8]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x18]
add ecx, 8
push ecx
push esi
push edx
call sub.MFC42.DLL_operator_1
mov esi, dword [eax]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0xb8]
push ebp
mov byte [esp + 0xd8], 0xb
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41c784
mov edi, dword [esp + 0xb8]
mov ecx, ebp
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea ecx, [esp + 0x18]
mov byte [esp + 0xd0], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], 0xc
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x4e]
push edx
lea edx, [esp + 0x30]
mov eax, dword [ecx + 8]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0xcc]
push edx
push ecx
push eax
mov byte [esp + 0xe4], 0xd
call sub.MFC42.DLL_AfxParseURL
test eax, eax
je 0x41c833
mov edx, dword [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
push 1
mov esi, dword [edx + 8]
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x98]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41c8af
mov edi, dword [esp + 0x98]
mov ecx, ebp
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
jmp 0x41c8af
mov ecx, dword [esp + 0x38]
lea eax, [ebx + 4]
add ecx, 8
lea edx, [esp + 0x48]
push ecx
push eax
push edx
call sub.MFC42.DLL_operator_1
mov esi, dword [eax]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x98]
push ebp
mov byte [esp + 0xd8], 0xe
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41c89e
mov edi, dword [esp + 0x98]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x9c], ebp
mov byte [ecx + ebp], 0
lea ecx, [esp + 0x48]
mov byte [esp + 0xd0], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x78]
mov byte [esp + 0xd0], 0xf
test eax, eax
jne 0x41c8cd
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 edx, [esp + 0x20]
push edx
push eax
call fcn.0041ce10
add esp, 8
test eax, eax
je 0x41c993
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x41c8f3
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
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x41c94e
mov esi, dword [ebx + 0x10]
push 0x68
mov edi, dword [esi + 4]
call sub.MFC42.DLL_operatornew
add esp, 4
mov ecx, esi
test esi, esi
jne 0x41c91e
mov ecx, eax
test edi, edi
mov dword [eax], ecx
jne 0x41c926
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x64]
add eax, 8
push ecx
push eax
call fcn.0041d100
mov eax, dword [ebx + 0x14]
add esp, 8
inc eax
mov dword [ebx + 0x14], eax
jmp 0x41c9d6
mov esi, dword [ebx + 0x1c]
push 0x68
mov edi, dword [esi + 4]
call sub.MFC42.DLL_operatornew
add esp, 4
mov ecx, esi
test esi, esi
jne 0x41c966
mov ecx, eax
test edi, edi
mov dword [eax], ecx
jne 0x41c96e
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
lea edx, [esp + 0x64]
push edx
mov dword [ecx], eax
add eax, 8
push eax
call fcn.0041d100
mov eax, dword [ebx + 0x20]
add esp, 8
inc eax
mov dword [ebx + 0x20], eax
jmp 0x41c9d6
mov esi, dword [ebx + 0x28]
push 0x68
mov edi, dword [esi + 4]
call sub.MFC42.DLL_operatornew
add esp, 4
mov ecx, esi
test esi, esi
jne 0x41c9ab
mov ecx, eax
test edi, edi
mov dword [eax], ecx
jne 0x41c9b3
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x64]
add eax, 8
push ecx
push eax
call fcn.0041d100
mov eax, dword [ebx + 0x2c]
add esp, 8
inc eax
mov dword [ebx + 0x2c], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xd0], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd0], 9
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
lea ecx, [esp + 0x50]
push edx
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x41c659
pop edi
pop ebp
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CStdioFile::Close
mov al, byte [esp + 0xd0]
test al, al
je 0x41ca40
push str.update.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [esp + 0xb0]
mov byte [esp + 0xcc], 0x14
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xa0]
mov byte [esp + 0xcc], 0x13
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x90]
mov byte [esp + 0xcc], 0x12
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x80]
mov byte [esp + 0xcc], 0x11
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0xcc], 0x10
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0xcc], 3
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 ecx, [esp + 0x2c]
mov byte [esp + 0xc8], 2
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 8]
mov byte [esp + 0xc8], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0xc8], 0
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0xc]
mov dword [esp + 0xc8], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0xc0]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xc4
ret 4