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

Disassembly:
mov eax, 0x42ff59
call fcn.0042fda0
mov eax, 0x264c
call fcn.0042fd70
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea eax, [edi + 0x420]
push eax
push ebx
lea ecx, [edi + 0x834]
push str.SILENTCHECKVERSION
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], ebx
xor ecx, ecx
mov dword [ebp - 4], ebx
inc ecx
mov esi, ebx
cmp dword [edi + 0x11b0], ecx
push eax
cmove esi, ecx
mov ecx, edi
mov dword [ebp - 0x18], esi
call fcn.00404066
sub eax, ebx
je 0x403a6d
sub eax, 1
je 0x403a57
sub eax, 1
je 0x40363b
cmp dword [edi + 0xc48], ebx
je 0x403a84
push str.La_version_de_WDUpdate_nest_pas_compatible_avec_cet_ex
jmp 0x403a64
mov ecx, edi
call fcn.0040493e
test eax, eax
jne 0x403a84
mov ecx, edi
call fcn.00404881
test eax, eax
jne 0x40365c
mov ebx, esi
jmp 0x403a84
lea eax, [ebp - 0x23c]
mov ecx, edi
push eax
call fcn.00404dda
test eax, eax
je 0x403655
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x654]
push str.__sWDSETUP.EXE_
push eax
call fcn.004029e8
add esp, 0xc
lea eax, [edi + 0xc]
push eax
push 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [edi + 0x834]
push eax
lea eax, [ebp - 0x14]
push str.__CHECK__s____PID_d___VERSION_PARENT_d__PATHCLT__s_
push eax
call fcn.0040f518
add esp, 0x18
cmp byte [edi + 0x11b8], 0
je 0x4036c4
mov edx, str._RUNUPDATEONEXIT1
lea ecx, [ebp - 0x14]
call fcn.0040f0f7
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x14]
push str.__CMD__s_
push eax
call fcn.0040f576
add esp, 0xc
cmp dword [edi + 0xc48], ebx
je 0x403727
lea ecx, [ebp - 0x14]
call fcn.0040ef3e
mov esi, eax
call fcn.0040f190
push eax
push esi
lea eax, [ebp - 0x10]
push str.101___Ligne_de_commande_de_v
push eax
call fcn.00402a02
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040ef3e
push eax
mov ecx, edi
call fcn.004032d3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040eeb5
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403a2e
cmp word [eax], bx
je 0x403a2e
cmp dword [edi + 0xc48], ebx
je 0x4037bd
push str.102___Lancement_du_controleur_de_version
mov ecx, edi
call fcn.004032d3
lea ecx, [ebp - 0x14]
call fcn.0040ef3e
push eax
lea eax, [ebp - 0x10]
push str.103___Ligne_de_commande_:__s
push eax
call fcn.00402a02
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040ef3e
push eax
mov ecx, edi
call fcn.004032d3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040eeb5
lea eax, [edi + 0x216]
push eax
lea eax, [ebp - 0x10]
push str.104___R
push eax
call fcn.00402a02
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040ef3e
push eax
mov ecx, edi
call fcn.004032d3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040eeb5
mov eax, dword [edi + 0x11b0]
lea ecx, [edi + 0x216]
sub eax, ebx
je 0x4037db
sub eax, 1
jne 0x4037ea
lea eax, [ebp - 0x23c]
push eax
jmp 0x4037dc
push ecx
lea eax, [ebp - 0x448]
push eax
call fcn.0041f716
pop ecx
pop ecx
cmp dword [edi + 0x11b0], 1
jne 0x4037fe
lea ecx, [edi + 0x11c0]
call fcn.0040711b
lea ecx, [ebp - 0x14]
call fcn.0040ef3e
push ecx
lea ecx, [ebp - 0x448]
mov edx, eax
push ebx
push ecx
lea ecx, [ebp - 0x654]
call fcn.004124a8
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4039b1
mov ecx, dword [edi + 0xf94]
test ecx, ecx
je 0x40383d
push dword [edi + 0xf98]
call ecx
pop ecx
or dword [ebp - 0x18], 0xffffffff
cmp dword [edi + 0xc48], ebx
je 0x403855
push str.105___Attente_de_la_terminaison
mov ecx, edi
call fcn.004032d3
push 0x2001
lea eax, [ebp - 0x2658]
push ebx
push eax
call fcn.00419a80
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [edi + 0xf9c]
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
xor eax, eax
cmp dword [ebp - 0x18], 0xffffffff
setne al
je 0x40386a
test eax, eax
je 0x4038d4
lea eax, [edi + 0x834]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], ebx
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], esi
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x2658]
push eax
push dword [edi + 0xf9c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 0x11c0]
call fcn.00407215
push dword [edi + 0xf9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0xc48], ebx
je 0x40396b
mov dword [ebp - 0x10], ebx
push ecx
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x18]
push ecx
mov ecx, dword [0x447244]
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
push ecx
push esi
lea eax, [ebp - 0x2658]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040ff20
cmp dword [ebp - 0x10], 0
mov eax, 0x43ad64
cmovne eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push str.106___Code_de_retour_de_WDUpdate_:__s
push eax
call fcn.00402a02
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040ef3e
push eax
mov ecx, edi
call fcn.004032d3
lea ecx, [ebp - 0x1c]
call fcn.0040eeb5
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
call fcn.00406672
push dword [ebp - 0x18]
lea eax, [ebp - 0x2658]
push 0x43b3bc
push eax
call fcn.0041f940
add esp, 0xc
test eax, eax
je 0x403a81
push dword [ebp - 0x18]
lea eax, [ebp - 0x2658]
push str.RUNUPDATEONEXIT
push eax
call fcn.0041f940
add esp, 0xc
test eax, eax
jne 0x403a84
push 2
pop ebx
jmp 0x403a84
lea ecx, [edi + 0x11c0]
call fcn.00407215
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [edi + 0xc48], ebx
je 0x403a14
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
push str.Impossible_de_lancer_lapplication_de_contr
push eax
call fcn.00402a02
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040ef3e
push eax
mov ecx, edi
call fcn.004032d3
lea ecx, [ebp - 0x1c]
call fcn.0040eeb5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [edi + 0xf9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403655
push dword [edi + 0xf9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0xc48], ebx
je 0x403655
push str.151___Ligne_de_commande_trop_longue
mov ecx, edi
call fcn.004032d3
jmp 0x403655
cmp dword [edi + 0xc48], ebx
je 0x403a84
push str.108___Version_obsol
mov ecx, edi
call fcn.004032d3
jmp 0x403a84
cmp dword [edi + 0xc48], ebx
je 0x403a81
push str.107___Version
mov ecx, edi
call fcn.004032d3
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x14]
call fcn.0040eeb5
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret