Function at 0x40b5f0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [0x4f7510], ebx
jne 0x40b628
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x40b622
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
jmp 0x40b628
mov dword [0x4f7510], ebx
mov edi, str.softwareGamePP
lea ecx, [ebp - 8]
call fcn.004155f0
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], ebx
jne 0x40b69e
cmp dword [0x4f7510], ebx
jne 0x40b66a
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x40b664
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
jmp 0x40b66a
mov dword [0x4f7510], ebx
mov edi, str.softwarePUBGTools
lea ecx, [ebp - 4]
call fcn.004155f0
lea edi, [ebp - 8]
call fcn.00404050
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b69e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4f36ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f36ec
call eax
mov ecx, dword [ebp - 8]
push ecx
add eax, 0x10
push str._sUninstall.exe
lea edi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00404650
mov edi, dword [ebp - 4]
add esp, 8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b7d4
mov eax, dword [0x4f7510]
cmp eax, ebx
jne 0x40b704
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x40b6fd
mov esi, eax
call fcn.00415ef0
jmp 0x40b6ff
xor eax, eax
mov dword [0x4f7510], eax
cmp dword [eax + 0x22c4], ebx
je 0x40b720
mov edx, dword [ebp + 8]
mov esi, dword [edx + 4]
push 2
push str.Now_uninstall_the_old_version_
push str.Found_that_there_is_an_old_version_of_GamePP_
jmp 0x40b732
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
push 1
push 0x4cb44c
push 0x4cd524
call fcn.00417b40
add esp, 0xc
cmp eax, 1
jne 0x40b7d4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edx
call ebx
cmp dword [edi - 4], 1
jle 0x40b769
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00403690
mov edi, dword [ebp - 4]
cmp dword [0x4f7510], 0
jne 0x40b79b
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40b791
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
jmp 0x40b79b
mov dword [0x4f7510], 0
push 1
push edi
call fcn.00412d70
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00423a17
add esp, 8
test eax, eax
js 0x40b818
cmp eax, dword [edi - 8]
jg 0x40b818
xor edx, edx
mov dword [edi - 0xc], eax
push edi
mov word [edi + eax*2], dx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push 5
push ecx
call ebx
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
pop esi
pop ebx
test ecx, ecx
jg 0x40b7f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b812
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402e50
int3