Function at 0x401db0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4054cd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x409040]
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.004031b0
call fcn.004023f0
test al, al
jne 0x401eb3
cmp dword [esi + 0x5c], 7
lea edx, [esi + 0x48]
mov eax, dword [esi + 0x58]
jbe 0x401e23
mov ecx, dword [edx]
mov edx, ecx
lea eax, [ecx + eax*2]
jmp 0x401e26
lea eax, [edx + eax*2]
push ecx
push eax
push edx
lea ecx, [ebp - 0x38]
call fcn.00403890
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.00403670
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x401e54
mov edx, dword [edi]
push 0x4039a0
push ecx
push dword [edi + 0x10]
mov ecx, eax
call fcn.004041f0
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 0x402198
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401ea4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4021d2
push ecx
push edx
call fcn.004045bd
add esp, 8
jmp 0x402198
sub esp, 0x18
mov ecx, esp
push esi
call fcn.004031b0
call fcn.004023f0
mov edx, dword [ebp - 0x1c]
add edx, edi
test al, al
jne 0x401f74
cmp dword [edx + 0x14], 7
mov eax, dword [edx + 0x10]
jbe 0x401ee2
mov ecx, dword [edx]
lea eax, [ecx + eax*2]
mov ecx, dword [esi]
jmp 0x401ee7
lea eax, [edx + eax*2]
mov ecx, esi
push ecx
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.00403890
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.00403670
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x401f15
mov edx, dword [edi]
push 0x4039a0
push ecx
push dword [edi + 0x10]
mov ecx, eax
call fcn.004041f0
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 0x402198
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401f65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4021d2
push ecx
push edx
call fcn.004045bd
add esp, 8
jmp 0x402198
cmp dword [edx + 0x14], 7
jbe 0x401f7c
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 0x40202e
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
jbe 0x401f9e
mov ecx, dword [esi]
lea eax, [ecx + eax*2]
jmp 0x401fa3
lea eax, [esi + eax*2]
mov ecx, esi
push ecx
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.00403890
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.00403670
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x401fd1
mov edx, dword [edi]
push 0x4039a0
push ecx
push dword [edi + 0x10]
mov ecx, eax
call fcn.004041f0
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 0x402027
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40201d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4021d2
push ecx
push edx
call fcn.004045bd
add esp, 8
mov edi, dword [ebp - 0x18]
inc ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x402038
mov ecx, dword [esi]
cmp dword [esi + 0x5c], 7
lea eax, [esi + 0x48]
jbe 0x402043
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 0x40219f
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
jbe 0x402066
mov ecx, dword [esi]
lea eax, [ecx + eax*2]
jmp 0x40206b
lea eax, [esi + eax*2]
mov ecx, esi
push ecx
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00403890
mov ebx, eax
mov dword [ebp - 4], 3
cmp dword [esi + 0x5c], 7
mov eax, dword [esi + 0x58]
jbe 0x402090
mov ecx, dword [esi + 0x48]
lea eax, [ecx + eax*2]
jmp 0x402099
add eax, 0x24
lea ecx, [esi + 0x48]
lea eax, [esi + eax*2]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.00403890
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.00403670
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x4020c4
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.004041f0
add esp, 4
mov edx, str.____
mov ecx, eax
call fcn.00403670
cmp dword [ebx + 0x14], 0xf
mov edx, ebx
jbe 0x4020e7
mov edx, dword [ebx]
push 0x4039a0
push ecx
push dword [ebx + 0x10]
mov ecx, eax
call fcn.004041f0
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 0x40213a
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402130
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4021d2
push ecx
push edx
call fcn.004045bd
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 0x402183
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402179
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4021d2
push ecx
push edx
call fcn.004045bd
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 0x401df3
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.0040446a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3