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

Disassembly:
mov eax, 0x4303a9
call fcn.004301f0
mov eax, 0x264c
call fcn.004301c0
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.0040405f
sub eax, ebx
je 0x403a66
sub eax, 1
je 0x403a50
sub eax, 1
je 0x403634
cmp dword [edi + 0xc48], ebx
je 0x403a7d
push str.La_version_de_WDUpdate_nest_pas_compatible_avec_cet_ex
jmp 0x403a5d
mov ecx, edi
call fcn.00404937
test eax, eax
jne 0x403a7d
mov ecx, edi
call fcn.0040487a
test eax, eax
jne 0x403655
mov ebx, esi
jmp 0x403a7d
lea eax, [ebp - 0x23c]
mov ecx, edi
push eax
call fcn.00404dd3
test eax, eax
je 0x40364e
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 0x19
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.0040f5ed
add esp, 0x18
cmp byte [edi + 0x11b8], 0
je 0x4036bd
mov edx, str._RUNUPDATEONEXIT1
lea ecx, [ebp - 0x14]
call fcn.0040f1cc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x14]
push str.__CMD__s_
push eax
call fcn.0040f64b
add esp, 0xc
cmp dword [edi + 0xc48], ebx
je 0x403720
lea ecx, [ebp - 0x14]
call fcn.0040effc
mov esi, eax
call fcn.0040f265
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.0040effc
push eax
mov ecx, edi
call fcn.004032cc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040ef71
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403a27
cmp word [eax], bx
je 0x403a27
cmp dword [edi + 0xc48], ebx
je 0x4037b6
push str.102___Lancement_du_controleur_de_version
mov ecx, edi
call fcn.004032cc
lea ecx, [ebp - 0x14]
call fcn.0040effc
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.0040effc
push eax
mov ecx, edi
call fcn.004032cc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040ef71
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.0040effc
push eax
mov ecx, edi
call fcn.004032cc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040ef71
mov eax, dword [edi + 0x11b0]
lea ecx, [edi + 0x216]
sub eax, ebx
je 0x4037d4
sub eax, 1
jne 0x4037e3
lea eax, [ebp - 0x23c]
push eax
jmp 0x4037d5
push ecx
lea eax, [ebp - 0x448]
push eax
call fcn.0041fa56
pop ecx
pop ecx
cmp dword [edi + 0x11b0], 1
jne 0x4037f7
lea ecx, [edi + 0x11c0]
call fcn.00407120
lea ecx, [ebp - 0x14]
call fcn.0040effc
push ecx
lea ecx, [ebp - 0x448]
mov edx, eax
push ebx
push ecx
lea ecx, [ebp - 0x654]
call fcn.00412707
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4039aa
mov ecx, dword [edi + 0xf94]
test ecx, ecx
je 0x403836
push dword [edi + 0xf98]
call ecx
pop ecx
or dword [ebp - 0x18], 0xffffffff
cmp dword [edi + 0xc48], ebx
je 0x40384e
push str.105___Attente_de_la_terminaison
mov ecx, edi
call fcn.004032cc
push 0x2001
lea eax, [ebp - 0x2658]
push ebx
push eax
call fcn.00419dc0
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 0x403863
test eax, eax
je 0x4038cd
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.0040721a
push dword [edi + 0xf9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0xc48], ebx
je 0x403964
mov dword [ebp - 0x10], ebx
push ecx
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x18]
push ecx
mov ecx, dword [0x448248]
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.0040fff5
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.0040effc
push eax
mov ecx, edi
call fcn.004032cc
lea ecx, [ebp - 0x1c]
call fcn.0040ef71
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
call fcn.00406689
push dword [ebp - 0x18]
lea eax, [ebp - 0x2658]
push 0x43b3bc
push eax
call fcn.0041fc80
add esp, 0xc
test eax, eax
je 0x403a7a
push dword [ebp - 0x18]
lea eax, [ebp - 0x2658]
push str.RUNUPDATEONEXIT
push eax
call fcn.0041fc80
add esp, 0xc
test eax, eax
jne 0x403a7d
push 2
pop ebx
jmp 0x403a7d
lea ecx, [edi + 0x11c0]
call fcn.0040721a
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 0x403a0d
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.0040effc
push eax
mov ecx, edi
call fcn.004032cc
lea ecx, [ebp - 0x1c]
call fcn.0040ef71
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [edi + 0xf9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40364e
push dword [edi + 0xf9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0xc48], ebx
je 0x40364e
push str.151___Ligne_de_commande_trop_longue
mov ecx, edi
call fcn.004032cc
jmp 0x40364e
cmp dword [edi + 0xc48], ebx
je 0x403a7d
push str.108___Version_obsol
mov ecx, edi
call fcn.004032cc
jmp 0x403a7d
cmp dword [edi + 0xc48], ebx
je 0x403a7a
push str.107___Version
mov ecx, edi
call fcn.004032cc
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x14]
call fcn.0040ef71
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret