Function at 0x140003fb4
Capabilities:
Accept command line arguments
Read .ini file
Read file on windows
Read from mailslot

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x25e8]
mov eax, 0x26e8
call fcn.140037ab0
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rsi, rcx
lea r12, [rcx + 0x840]
lea r9, [rcx + 0x42c]
xor r8d, r8d
lea rdx, str.SILENTCHECKVERSION
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor edi, edi
mov qword [rbp + 0x2640], rdi
mov r14d, edi
lea r15d, [rdi + 1]
cmp dword [rsi + 0x11d0], r15d
cmove r14d, r15d
mov edx, eax
mov rcx, rsi
call fcn.140004be8
test eax, eax
je 0x14000454d
sub eax, r15d
je 0x140004534
cmp eax, r15d
je 0x14000405e
cmp dword [rsi + 0xc54], edi
je 0x140004576
lea rdx, str.La_version_de_WDUpdate_nest_pas_compatible_avec_cet_ex
mov rcx, rsi
call fcn.140003c50
jmp 0x140004576
mov rcx, rsi
call fcn.140005718
test eax, eax
jne 0x140004567
mov rcx, rsi
call fcn.140005640
test eax, eax
je 0x14000456a
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.140005cec
test eax, eax
je 0x14000456a
lea r8, [rbp - 0x60]
lea rdx, str.__sWDSETUP.EXE_
lea rcx, [rbp + 0x3c0]
call fcn.140003170
lea rbx, [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x19
mov r8, r12
lea rdx, str.__CHECK__s____PID_d___VERSION_PARENT_d__PATHCLT__s_
lea rcx, [rbp + 0x2640]
call fcn.1400142bc
cmp byte [rsi + 0x11d8], dil
je 0x1400040f5
lea rdx, str._RUNUPDATEONEXIT1
lea rcx, [rbp + 0x2640]
call fcn.140013d10
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8, rax
lea rdx, str.__CMD__s_
lea rcx, [rbp + 0x2640]
call fcn.14001433c
cmp dword [rsi + 0xc54], edi
je 0x14000416a
lea rcx, [rbp + 0x2640]
call fcn.140013a24
mov rbx, rax
lea rcx, [rbp + 0x2640]
call fcn.140013dfc
mov r9d, eax
mov r8, rbx
lea rdx, str.101___Ligne_de_commande_de_v
lea rcx, [rsp + 0x48]
call fcn.1400031c4
nop
mov rcx, rax
call fcn.140013a24
mov rdx, rax
mov rcx, rsi
call fcn.140003c50
nop
lea rcx, [rsp + 0x48]
call fcn.140013988
mov rax, qword [rbp + 0x2640]
test rax, rax
je 0x14000450e
cmp word [rax], di
je 0x14000450e
cmp dword [rsi + 0xc54], edi
je 0x140004219
lea rdx, str.102___Lancement_du_controleur_de_version
mov rcx, rsi
call fcn.140003c50
lea rcx, [rbp + 0x2640]
call fcn.140013a24
mov r8, rax
lea rdx, str.103___Ligne_de_commande_:__s
lea rcx, [rsp + 0x50]
call fcn.1400031c4
nop
mov rcx, rax
call fcn.140013a24
mov rdx, rax
mov rcx, rsi
call fcn.140003c50
nop
lea rcx, [rsp + 0x50]
call fcn.140013988
lea rbx, [rsi + 0x222]
mov r8, rbx
lea rdx, str.104___R
lea rcx, [rsp + 0x58]
call fcn.1400031c4
nop
mov rcx, rax
call fcn.140013a24
mov rdx, rax
mov rcx, rsi
call fcn.140003c50
nop
lea rcx, [rsp + 0x58]
call fcn.140013988
jmp 0x140004220
lea rbx, [rsi + 0x222]
mov ecx, dword [rsi + 0x11d0]
test ecx, ecx
je 0x140004235
cmp ecx, 1
jne 0x140004244
lea rdx, [rbp - 0x60]
jmp 0x140004238
mov rdx, rbx
lea rcx, [rbp + 0x1b0]
call fcn.1400266bc
lea r12, [rsi + 0x11e0]
cmp dword [rsi + 0x11d0], r15d
jne 0x14000425c
mov rcx, r12
call fcn.1400091b4
lea rcx, [rbp + 0x2640]
call fcn.140013a24
xor r9d, r9d
lea r8, [rbp + 0x1b0]
mov rdx, rax
lea rcx, [rbp + 0x3c0]
call fcn.1400180b8
mov r13, rax
test rax, rax
je 0x14000447d
mov rdx, qword [rsi + 0xfa0]
test rdx, rdx
je 0x1400042a2
mov rcx, qword [rsi + 0xfa8]
call rdx
or ebx, 0xffffffff
mov dword [rbp + 0x2630], ebx
cmp dword [rsi + 0xc54], edi
je 0x1400042c2
lea rdx, str.105___Attente_de_la_terminaison
mov rcx, rsi
call fcn.140003c50
xor edx, edx
mov r8d, 0x2001
lea rcx, [rbp + 0x5d0]
call fcn.140021310
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp + 0x2630]
xor edx, edx
mov rcx, qword [rsi + 0xfb0]
call qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
mov eax, edi
cmp dword [rbp + 0x2630], ebx
setne al
je 0x1400042d6
test eax, eax
je 0x140004364
lea r9, [rsi + 0x840]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x2638]
mov r8d, dword [rbp + 0x2630]
lea rdx, [rbp + 0x5d0]
mov rcx, qword [rsi + 0xfb0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call fcn.14000931c
mov rcx, qword [rsi + 0xfb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsi + 0xc54], edi
je 0x140004430
mov qword [rbp + 0x2648], rdi
mov ebx, dword [rbp + 0x2630]
mov rcx, qword [0x140058168]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rsp + 0x20], eax
mov r8d, ebx
lea rdx, [rbp + 0x5d0]
lea rcx, [rbp + 0x2648]
call fcn.140014ed0
lea r8, [0x1400446c8]
cmp qword [rbp + 0x2648], rdi
cmovne r8, qword [rbp + 0x2648]
lea rdx, str.106___Code_de_retour_de_WDUpdate_:__s
lea rcx, [rsp + 0x60]
call fcn.1400031c4
nop
mov rcx, rax
call fcn.140013a24
mov rdx, rax
mov rcx, rsi
call fcn.140003c50
nop
lea rcx, [rsp + 0x60]
call fcn.140013988
nop
mov rdx, qword [rbp + 0x2648]
test rdx, rdx
je 0x140004430
or eax, 0xffffffff
lock xadd dword [rdx - 0xc], eax
cmp eax, 1
jne 0x140004430
mov rcx, qword [0x140058170]
mov rax, qword [rcx]
call qword [rax + 0x18]
nop
mov r8d, dword [rbp + 0x2630]
lea rdx, [0x140044dac]
lea rcx, [rbp + 0x5d0]
call fcn.1400268f0
test eax, eax
je 0x14000456d
mov r8d, dword [rbp + 0x2630]
lea rdx, str.RUNUPDATEONEXIT
lea rcx, [rbp + 0x5d0]
call fcn.1400268f0
test eax, eax
jne 0x140004570
lea r15d, [rax + 2]
jmp 0x14000456d
mov rcx, r12
call fcn.14000931c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [rsi + 0xc54], edi
je 0x1400044f4
mov r8, qword [rsp + 0x40]
mov r9, r8
lea rdx, str.Impossible_de_lancer_lapplication_de_contr
lea rcx, [rsp + 0x68]
call fcn.1400031c4
nop
mov rcx, rax
call fcn.140013a24
mov rdx, rax
mov rcx, rsi
call fcn.140003c50
nop
lea rcx, [rsp + 0x68]
call fcn.140013988
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsi + 0xfb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004573
mov rcx, qword [rsi + 0xfb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsi + 0xc54], edi
je 0x14000456a
lea rdx, str.151___Ligne_de_commande_trop_longue
mov rcx, rsi
call fcn.140003c50
jmp 0x14000456a
cmp dword [rsi + 0xc54], edi
je 0x140004567
lea rdx, str.108___Version_obsol
mov rcx, rsi
call fcn.140003c50
jmp 0x140004567
cmp dword [rsi + 0xc54], edi
je 0x140004564
lea rdx, str.107___Version
mov rcx, rsi
call fcn.140003c50
mov edi, r15d
mov r14d, edi
mov r15d, r14d
mov edi, r15d
mov r14d, edi
mov edi, r14d
lea rcx, [rbp + 0x2640]
call fcn.140013988
mov eax, edi
add rsp, 0x26e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret