Function at 0x42781e
Capabilities:
Delete file

Disassembly:
mov eax, 0x446faf
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x678
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0xa4]
mov dword [ebp - 0x58], eax
add eax, 4
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
xor esi, esi
cmp dword [ebx + 0x74], edi
mov dword [ebp - 4], edi
jne 0x427863
cmp dword [ebx + 0x78], edi
jne 0x427863
cmp dword [ebx + 0x7c], edi
je 0x427b98
mov ecx, ebx
mov dword [ebp - 0x44], ebx
call fcn.00427bb2
mov dword [ebp - 0x40], eax
cmp eax, edi
mov byte [ebp - 4], 1
je 0x427b85
cmp dword [ebx + 0x78], edi
je 0x427adf
mov al, byte [ebp - 0x11]
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov esi, 0x45d0f4
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3c]
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_unsigned_short_int_const___unsigned_int_]
lea esi, [ebx + 8]
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov byte [ebp - 4], 2
movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x18]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp eax, dword [ebp - 0x1c]
je 0x427908
mov esi, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
add esi, 0x1a34
push esi
call edi
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3c]
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__::append_unsigned_short_int_const___unsigned_int_]
mov esi, 0x45b004
push esi
call edi
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3c]
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__::append_unsigned_short_int_const___unsigned_int_]
lea ecx, [ebp - 0x54]
call fcn.00406b35
jmp 0x4278bb
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x272]
mov word [ebp - 0x274], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0xc4]
cmp eax, esi
jne 0x427931
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]
lea ecx, [ebp - 0x274]
push 0x104
push ecx
push eax
mov ecx, ebx
call fcn.00429114
lea eax, [ebp - 0x274]
push str.gamerecord.txt
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
push esi
push 2
push esi
push 3
lea eax, [ebp - 0x274]
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x5c], edi
cmp edi, 0xffffffff
mov byte [ebp - 4], 3
je 0x427996
mov eax, dword [ebp - 0x38]
cmp eax, esi
jne 0x42798d
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
push edi
mov ecx, ebx
call fcn.00426427
mov eax, dword [ebx + 0x94]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x10], ecx
je 0x427abf
mov eax, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x24]
lea edi, [eax + 0xc]
mov al, byte [eax + 0xc]
mov byte [ebp - 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, 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]
lea ecx, [ebp - 0x24]
push dword [eax]
push esi
push edi
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 ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x682]
mov word [ebp - 0x684], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 4
cmp eax, esi
jne 0x4279f9
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]
mov edi, 0x208
push esi
lea ecx, [ebp - 0x684]
push edi
push ecx
push eax
mov ecx, ebx
call fcn.0042757e
lea eax, [ebp - 0x684]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__waccess]
pop ecx
test eax, eax
pop ecx
jne 0x427a30
lea eax, [ebp - 0x684]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x24]
push str.Operation
push eax
lea eax, [ebp - 0x6c]
push eax
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
add esp, 0xc
mov eax, dword [ebp - 0x68]
mov byte [ebp - 4], 5
cmp eax, esi
jne 0x427a55
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 esi
lea ecx, [ebp - 0x684]
push edi
push ecx
push eax
mov ecx, ebx
call fcn.0042757e
lea eax, [ebp - 0x684]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__waccess]
pop ecx
test eax, eax
pop ecx
jne 0x427a87
lea eax, [ebp - 0x684]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea ecx, [ebp - 0x10]
call fcn.0042ae43
mov eax, dword [ebx + 0x94]
cmp dword [ebp - 0x10], eax
jne 0x4279a9
mov edi, dword [ebp - 0x28]
push 1
cmp edi, 0xffffffff
pop esi
je 0x427ace
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
xor edi, edi
cmp dword [ebx + 0x74], edi
je 0x427b7e
mov eax, dword [ebx + 0x84]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x10], ecx
je 0x427b7b
push 0x410
lea eax, [ebp - 0x684]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [eax + 0x10]
cmp eax, edi
jne 0x427b1f
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 edi
lea ecx, [ebp - 0x684]
push 0x208
push ecx
push eax
mov ecx, ebx
call fcn.0042757e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
cmp eax, edi
jne 0x427b43
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
mov ecx, ebx
call fcn.00426903
cmp eax, edi
je 0x427b68
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x10]
cmp ecx, edi
jne 0x427b5f
mov ecx, 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
push ecx
mov ecx, ebx
call fcn.0042813c
lea ecx, [ebp - 0x10]
call fcn.0042ae43
mov eax, dword [ebx + 0x84]
cmp dword [ebp - 0x10], eax
jne 0x427afb
push 1
pop esi
mov ecx, ebx
call fcn.004291f8
mov ecx, ebx
call fcn.00428bcb
and byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00427bf0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret