Function at 0x402520
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40840d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x40c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
xor ebx, ebx
lea esi, [eax + 0x1818]
mov edi, 0x1818
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
sub esp, 0x18
lea eax, [esi + 0x48]
mov ecx, esp
push eax
call fcn.00403c10
call fcn.00402b60
test al, al
jne 0x402623
cmp dword [esi + 0x5c], 7
lea edx, [esi + 0x48]
mov eax, dword [esi + 0x58]
jbe 0x402593
mov ecx, dword [edx]
mov edx, ecx
lea eax, [ecx + eax*2]
jmp 0x402596
lea eax, [edx + eax*2]
push ecx
push eax
push edx
lea ecx, [ebp - 0x38]
call fcn.00405170
mov edi, eax
mov dword [ebp - 4], 0
mov edx, str.Upgrade_GameLaucher__new_file_not_exist:
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00404f50
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x4025c4
mov edx, dword [edi]
push 0x405280
push ecx
push dword [edi + 0x10]
mov ecx, eax
call fcn.004063c0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x402908
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402614
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402942
push ecx
push edx
call fcn.004072cf
add esp, 8
jmp 0x402908
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00403c10
call fcn.00402b60
mov edx, dword [ebp - 0x1c]
add edx, edi
test al, al
jne 0x4026e4
cmp dword [edx + 0x14], 7
mov eax, dword [edx + 0x10]
jbe 0x402652
mov ecx, dword [edx]
lea eax, [ecx + eax*2]
mov ecx, dword [esi]
jmp 0x402657
lea eax, [edx + eax*2]
mov ecx, esi
push ecx
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.00405170
mov edi, eax
mov dword [ebp - 4], 1
mov edx, str.Upgrade_GameLaucher__current_file_not_exist:
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00404f50
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x402685
mov edx, dword [edi]
push 0x405280
push ecx
push dword [edi + 0x10]
mov ecx, eax
call fcn.004063c0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x402908
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4026d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402942
push ecx
push edx
call fcn.004072cf
add esp, 8
jmp 0x402908
cmp dword [edx + 0x14], 7
jbe 0x4026ec
mov edx, dword [edx]
push edx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
add esp, 4
test eax, eax
je 0x40279e
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
jbe 0x40270e
mov ecx, dword [esi]
lea eax, [ecx + eax*2]
jmp 0x402713
lea eax, [esi + eax*2]
mov ecx, esi
push ecx
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.00405170
mov edi, eax
mov dword [ebp - 4], 2
mov edx, str.Upgrade_GameLaucher___wremove:
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00404f50
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x402741
mov edx, dword [edi]
push 0x405280
push ecx
push dword [edi + 0x10]
mov ecx, eax
call fcn.004063c0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x402797
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40278d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402942
push ecx
push edx
call fcn.004072cf
add esp, 8
mov edi, dword [ebp - 0x18]
inc ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x4027a8
mov ecx, dword [esi]
cmp dword [esi + 0x5c], 7
lea eax, [esi + 0x48]
jbe 0x4027b3
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
add esp, 8
test eax, eax
je 0x40290f
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
jbe 0x4027d6
mov ecx, dword [esi]
lea eax, [ecx + eax*2]
jmp 0x4027db
lea eax, [esi + eax*2]
mov ecx, esi
push ecx
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00405170
mov ebx, eax
mov dword [ebp - 4], 3
cmp dword [esi + 0x5c], 7
mov eax, dword [esi + 0x58]
jbe 0x402800
mov ecx, dword [esi + 0x48]
lea eax, [ecx + eax*2]
jmp 0x402809
add eax, 0x24
lea ecx, [esi + 0x48]
lea eax, [esi + eax*2]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.00405170
mov edi, eax
mov byte [ebp - 4], 4
mov edx, str.Upgrade_GameLaucher___wrename:
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00404f50
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x402834
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.004063c0
add esp, 4
mov edx, str.____
mov ecx, eax
call fcn.00404f50
cmp dword [ebx + 0x14], 0xf
mov edx, ebx
jbe 0x402857
mov edx, dword [ebx]
push 0x405280
push ecx
push dword [ebx + 0x10]
mov ecx, eax
call fcn.004063c0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x4028aa
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4028a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402942
push ecx
push edx
call fcn.004072cf
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
cmp ecx, 0xf
jbe 0x4028f3
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4028e9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402942
push ecx
push edx
call fcn.004072cf
add esp, 8
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
mov edi, dword [ebp - 0x18]
inc ebx
mov dword [ebp - 0x14], ebx
add edi, 0x18
add esi, 0x18
mov dword [ebp - 0x18], edi
cmp edi, 0x1860
jl 0x402563
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040717c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3