Function at 0x1400241d0
Capabilities:
Check if file exists
Delete file
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2b0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov qword [rsp + 0x78], rdx
mov rdi, rcx
mov byte [rsp + 0x30], 0
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140023690
or r12, 0xffffffffffffffff
test al, al
je 0x140024977
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14002497c
xor r14d, r14d
mov word [rbp - 0x70], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
call sub.MSVCR100.dll_memset
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x70]
lea r8, [0x1400de328]
lea rdx, str.TotalCount
lea rcx, str.PatchCount
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea rax, [rbp - 0x70]
lea r13, [rbp - 0x70]
shr r13, 0x10
mov qword [rsp + 0x68], r13
lea r15d, [r12 + 2]
test r13, r13
jne 0x14002430e
movzx edi, ax
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x140024413
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140001f70
mov rbx, qword [rsp + 0x48]
jmp 0x140024413
xor eax, eax
mov rcx, r12
lea rdi, [rbp - 0x70]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14002438c
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140024413
cmp dword [rdx + 0x10], eax
jge 0x140024359
cmp dword [rbx - 0xc], eax
jge 0x14002434c
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x140024413
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140024370
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov rsi, qword [rsp + 0x38]
jmp 0x140024413
mov r14d, dword [rbx - 0x10]
lea r13, [rbp - 0x70]
sub r13, rbx
sar r13, 1
test ecx, ecx
jns 0x1400243a9
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400243c9
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140001c20
mov rbx, qword [rsp + 0x48]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r13, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x1400243ee
lea r8, [rbx + r13*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x1400243f8
lea r8, [rbp - 0x70]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x14002496c
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r14 + rbx], ax
mov r13, qword [rsp + 0x68]
xor r14d, r14d
cmp dword [rbx - 0x10], 0
je 0x14002494f
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll__wtoi]
mov dword [rsp + 0x70], eax
test eax, eax
jle 0x14002494f
lea rdi, [rbp - 0x70]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x70]
lea r8, [0x1400de328]
lea rdx, str.InstalledCount
lea rcx, str.PatchCount
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x70]
test r13, r13
jne 0x1400244bd
movzx edi, ax
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x1400245bf
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140001f70
mov rbx, qword [rsp + 0x40]
jmp 0x1400245bf
xor eax, eax
mov rcx, r12
lea rdi, [rbp - 0x70]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14002453b
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400245bf
cmp dword [rdx + 0x10], eax
jge 0x140024508
cmp dword [rbx - 0xc], eax
jge 0x1400244fb
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x1400245bf
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002451f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
mov rsi, qword [rsp + 0x38]
jmp 0x1400245bf
mov r14d, dword [rbx - 0x10]
lea r13, [rbp - 0x70]
sub r13, rbx
sar r13, 1
test ecx, ecx
jns 0x140024558
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140024578
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140001c20
mov rbx, qword [rsp + 0x40]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r13, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14002459d
lea r8, [rbx + r13*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x1400245a7
lea r8, [rbp - 0x70]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x140024944
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r14 + rbx], ax
mov r13, qword [rsp + 0x68]
cmp dword [rbx - 0x10], 0
je 0x140024922
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll__wtoi]
mov r14d, eax
mov dword [rsp + 0x68], eax
lea rcx, [0x14011d880]
mov rdx, qword [0x14011d880]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
mov r8d, r14d
lea rdx, str.Patch_d
lea rcx, [rsp + 0x60]
call fcn.140004440
lea rdi, [rbp - 0x70]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x70]
lea r8, [0x1400de328]
mov rdx, qword [rsp + 0x60]
lea rcx, [0x1400e2c38]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rax, [rbp - 0x70]
test r13, r13
jne 0x140024690
movzx edi, ax
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x14002478f
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001f70
mov rbx, qword [rsp + 0x50]
jmp 0x14002478f
xor eax, eax
mov rcx, r12
lea rdi, [rbp - 0x70]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14002470c
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14002478f
cmp dword [rdx + 0x10], eax
jge 0x1400246d9
cmp dword [rbx - 0xc], eax
jge 0x1400246ce
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x14002478f
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400246f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov rsi, qword [rsp + 0x38]
jmp 0x14002478f
mov r14d, dword [rbx - 0x10]
lea r13, [rbp - 0x70]
sub r13, rbx
sar r13, 1
test ecx, ecx
jns 0x140024729
mov ecx, 0x80070057
call fcn.140001000
int3
sub r15d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ecx
or eax, r15d
jge 0x140024748
mov edx, ecx
lea rcx, [rsp + 0x50]
call fcn.140001c20
mov rbx, qword [rsp + 0x50]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r13, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14002476d
lea r8, [rbx + r13*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x140024777
lea r8, [rbp - 0x70]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x140024917
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r14 + rbx], ax
mov r14d, dword [rsp + 0x68]
mov r8d, dword [rbx - 0x10]
test r8d, r8d
je 0x1400248d4
lea rcx, [rbx - 0x18]
mov r13, qword [rsp + 0x78]
mov rdi, qword [r13]
sub rdi, 0x18
cmp rcx, rdi
je 0x1400247fc
cmp dword [rdi + 0x10], 0
jl 0x1400247f1
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400247f1
call fcn.140001b90
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400247e2
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
lea rax, [rbx + 0x18]
mov qword [r13], rax
mov rsi, qword [rsp + 0x38]
jmp 0x1400247fc
mov rdx, rbx
mov rcx, r13
call fcn.140001e80
mov r9, rsi
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
lea rcx, [0x1400e2c38]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea r8d, [r14 + 1]
lea rdx, [0x1400de14c]
lea rcx, [rsp + 0x58]
call fcn.140004440
mov r9, rsi
mov r8, qword [rsp + 0x58]
lea rdx, str.InstalledCount
lea rcx, str.PatchCount
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x58]
call fcn.140001a60
mov ebx, dword [rsp + 0x70]
dec ebx
mov r8d, ebx
lea rdx, [0x1400de14c]
lea rcx, [rsp + 0x58]
call fcn.140004440
mov r9, rsi
mov rdi, qword [rsp + 0x58]
mov r8, rdi
lea rdx, str.TotalCount
lea rcx, str.PatchCount
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test ebx, ebx
jne 0x1400248af
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [rsp + 0x30], 1
lea rdx, [rdi - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400248cf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x50]
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400248f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140024910
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x40]
jmp 0x140024922
mov ecx, 0x80070057
call fcn.140001000
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002493d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x48]
jmp 0x14002494f
mov ecx, 0x80070057
call fcn.140001000
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140024977
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140024977
mov ecx, 0x80070057
call fcn.140001000
nop
mov rsi, qword [rsp + 0x38]
lea rdx, [rsi - 0x18]
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x140024997
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400cafa0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret