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

Disassembly:
mov eax, 0x431eb7
call fcn.00431d00
mov eax, 0x264c
call fcn.00431cd0
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.00404055
sub eax, ebx
je 0x403a51
sub eax, 1
je 0x403a3b
sub eax, 1
je 0x40361f
cmp dword [edi + 0xc48], ebx
je 0x403a68
push str.La_version_de_WDUpdate_nest_pas_compatible_avec_cet_ex
jmp 0x403a48
mov ecx, edi
call fcn.00404939
test eax, eax
jne 0x403a68
mov ecx, edi
call fcn.0040487c
test eax, eax
jne 0x403640
mov ebx, esi
jmp 0x403a68
lea eax, [ebp - 0x23c]
mov ecx, edi
push eax
call fcn.00404dd5
test eax, eax
je 0x403639
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x654]
push str.__sWDSETUP.EXE_
push eax
call fcn.004029e1
add esp, 0xc
lea eax, [edi + 0xc]
push eax
push 0x1b
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.0040fd1e
add esp, 0x18
cmp byte [edi + 0x11b8], 0
je 0x4036a8
mov edx, str._RUNUPDATEONEXIT1
lea ecx, [ebp - 0x14]
call fcn.0040f777
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x14]
push str.__CMD__s_
push eax
call fcn.0040fe15
add esp, 0xc
cmp dword [edi + 0xc48], ebx
je 0x40370b
lea ecx, [ebp - 0x14]
call fcn.0040f58a
mov esi, eax
call fcn.0040f852
push eax
push esi
lea eax, [ebp - 0x10]
push str.101___Ligne_de_commande_de_v
push eax
call fcn.004029fb
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040f58a
push eax
mov ecx, edi
call fcn.004032a6
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040f501
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403a12
cmp word [eax], bx
je 0x403a12
cmp dword [edi + 0xc48], ebx
je 0x4037a1
push str.102___Lancement_du_controleur_de_version
mov ecx, edi
call fcn.004032a6
lea ecx, [ebp - 0x14]
call fcn.0040f58a
push eax
lea eax, [ebp - 0x10]
push str.103___Ligne_de_commande_:__s
push eax
call fcn.004029fb
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040f58a
push eax
mov ecx, edi
call fcn.004032a6
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040f501
lea eax, [edi + 0x216]
push eax
lea eax, [ebp - 0x10]
push str.104___R
push eax
call fcn.004029fb
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040f58a
push eax
mov ecx, edi
call fcn.004032a6
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040f501
mov eax, dword [edi + 0x11b0]
lea ecx, [edi + 0x216]
sub eax, ebx
je 0x4037bf
sub eax, 1
jne 0x4037ce
lea eax, [ebp - 0x23c]
push eax
jmp 0x4037c0
push ecx
lea eax, [ebp - 0x448]
push eax
call fcn.00420b01
pop ecx
pop ecx
cmp dword [edi + 0x11b0], 1
jne 0x4037e2
lea ecx, [edi + 0x11c0]
call fcn.00407181
lea ecx, [ebp - 0x14]
call fcn.0040f58a
push ecx
lea ecx, [ebp - 0x448]
mov edx, eax
push ebx
push ecx
lea ecx, [ebp - 0x654]
call fcn.0041324b
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x403995
mov ecx, dword [edi + 0xf94]
test ecx, ecx
je 0x403821
push dword [edi + 0xf98]
call ecx
pop ecx
or dword [ebp - 0x18], 0xffffffff
cmp dword [edi + 0xc48], ebx
je 0x403839
push str.105___Attente_de_la_terminaison
mov ecx, edi
call fcn.004032a6
push 0x2001
lea eax, [ebp - 0x2658]
push ebx
push eax
call fcn.0041ab90
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 0x40384e
test eax, eax
je 0x4038b8
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.0040727b
push dword [edi + 0xf9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0xc48], ebx
je 0x40394f
mov dword [ebp - 0x10], ebx
push ecx
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x18]
push ecx
mov ecx, dword [0x44a3b8]
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.004108e5
cmp dword [ebp - 0x10], 0
mov eax, 0x43cc84
cmovne eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push str.106___Code_de_retour_de_WDUpdate_:__s
push eax
call fcn.004029fb
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040f58a
push eax
mov ecx, edi
call fcn.004032a6
lea ecx, [ebp - 0x1c]
call fcn.0040f501
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
call fcn.004066dc
push dword [ebp - 0x18]
lea eax, [ebp - 0x2658]
push 0x43d2dc
push eax
call fcn.00421100
add esp, 0xc
test eax, eax
je 0x403a65
push dword [ebp - 0x18]
lea eax, [ebp - 0x2658]
push str.RUNUPDATEONEXIT
push eax
call fcn.00421100
add esp, 0xc
test eax, eax
jne 0x403a68
push 2
pop ebx
jmp 0x403a68
lea ecx, [edi + 0x11c0]
call fcn.0040727b
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 0x4039f8
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
push str.Impossible_de_lancer_lapplication_de_contr
push eax
call fcn.004029fb
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040f58a
push eax
mov ecx, edi
call fcn.004032a6
lea ecx, [ebp - 0x1c]
call fcn.0040f501
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [edi + 0xf9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403639
push dword [edi + 0xf9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0xc48], ebx
je 0x403639
push str.151___Ligne_de_commande_trop_longue
mov ecx, edi
call fcn.004032a6
jmp 0x403639
cmp dword [edi + 0xc48], ebx
je 0x403a68
push str.108___Version_obsol
mov ecx, edi
call fcn.004032a6
jmp 0x403a68
cmp dword [edi + 0xc48], ebx
je 0x403a65
push str.107___Version
mov ecx, edi
call fcn.004032a6
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x14]
call fcn.0040f501
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret