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

Disassembly:
mov eax, 0x431487
call fcn.00431274
mov eax, 0x264c
call fcn.004311d0
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
call fcn.0040443f
sub eax, ebx
je 0x403e43
sub eax, 1
je 0x403e2d
sub eax, 1
je 0x403a11
cmp dword [edi + 0xc48], ebx
je 0x403e5a
push str.La_version_de_WDUpdate_nest_pas_compatible_avec_cet_ex
jmp 0x403e3a
mov ecx, edi
call fcn.00404d2e
test eax, eax
jne 0x403e5a
mov ecx, edi
call fcn.00404c71
test eax, eax
jne 0x403a32
mov ebx, esi
jmp 0x403e5a
lea eax, [ebp - 0x23c]
mov ecx, edi
push eax
call fcn.004051d1
test eax, eax
je 0x403a2b
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x654]
push str.__sWDSETUP.EXE_
push eax
call fcn.00402de0
add esp, 0xc
lea eax, [edi + 0xc]
push eax
push 0x1d
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.00410380
add esp, 0x18
cmp byte [edi + 0x11b8], 0
je 0x403a9a
mov edx, str._RUNUPDATEONEXIT1
lea ecx, [ebp - 0x14]
call fcn.0040fdd1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x14]
push str.__CMD__s_
push eax
call fcn.00410475
add esp, 0xc
cmp dword [edi + 0xc48], ebx
je 0x403afd
lea ecx, [ebp - 0x14]
call fcn.0040fead
lea ecx, [ebp - 0x14]
mov edx, eax
call fcn.0040fb17
push edx
push eax
lea eax, [ebp - 0x10]
push str.101___Ligne_de_commande_de_v
push eax
call fcn.00402dfa
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040fb17
push eax
mov ecx, edi
call fcn.004036a4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040fa89
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403e04
cmp word [eax], bx
je 0x403e04
cmp dword [edi + 0xc48], ebx
je 0x403b93
push str.102___Lancement_du_controleur_de_version
mov ecx, edi
call fcn.004036a4
lea ecx, [ebp - 0x14]
call fcn.0040fb17
push eax
lea eax, [ebp - 0x10]
push str.103___Ligne_de_commande_:__s
push eax
call fcn.00402dfa
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040fb17
push eax
mov ecx, edi
call fcn.004036a4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040fa89
lea eax, [edi + 0x216]
push eax
lea eax, [ebp - 0x10]
push str.104___R
push eax
call fcn.00402dfa
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040fb17
push eax
mov ecx, edi
call fcn.004036a4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040fa89
mov eax, dword [edi + 0x11b0]
lea ecx, [edi + 0x216]
sub eax, ebx
je 0x403bb1
sub eax, 1
jne 0x403bc0
lea eax, [ebp - 0x23c]
push eax
jmp 0x403bb2
push ecx
lea eax, [ebp - 0x448]
push eax
call fcn.004206a4
pop ecx
pop ecx
cmp dword [edi + 0x11b0], 1
jne 0x403bd4
lea ecx, [edi + 0x11c0]
call fcn.0040760a
lea ecx, [ebp - 0x14]
call fcn.0040fb17
push ecx
lea ecx, [ebp - 0x448]
mov edx, eax
push ebx
push ecx
lea ecx, [ebp - 0x654]
call fcn.00413763
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x403d87
mov ecx, dword [edi + 0xf94]
test ecx, ecx
je 0x403c13
push dword [edi + 0xf98]
call ecx
pop ecx
or dword [ebp - 0x18], 0xffffffff
cmp dword [edi + 0xc48], ebx
je 0x403c2b
push str.105___Attente_de_la_terminaison
mov ecx, edi
call fcn.004036a4
push 0x2001
lea eax, [ebp - 0x2658]
push ebx
push eax
call fcn.0041b240
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 0x403c40
test eax, eax
je 0x403caa
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.004076fb
push dword [edi + 0xf9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0xc48], ebx
je 0x403d41
mov dword [ebp - 0x10], ebx
push ecx
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x18]
push ecx
mov ecx, dword [0x44a4bc]
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.00410e04
cmp dword [ebp - 0x10], 0
mov eax, 0x43c0ec
cmovne eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push str.106___Code_de_retour_de_WDUpdate_:__s
push eax
call fcn.00402dfa
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040fb17
push eax
mov ecx, edi
call fcn.004036a4
lea ecx, [ebp - 0x1c]
call fcn.0040fa89
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
call fcn.00406a78
push dword [ebp - 0x18]
lea eax, [ebp - 0x2658]
push 0x43c744
push eax
call fcn.00420cc0
add esp, 0xc
test eax, eax
je 0x403e57
push dword [ebp - 0x18]
lea eax, [ebp - 0x2658]
push str.RUNUPDATEONEXIT
push eax
call fcn.00420cc0
add esp, 0xc
test eax, eax
jne 0x403e5a
push 2
pop ebx
jmp 0x403e5a
lea ecx, [edi + 0x11c0]
call fcn.004076fb
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 0x403dea
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
push str.Impossible_de_lancer_lapplication_de_contr
push eax
call fcn.00402dfa
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040fb17
push eax
mov ecx, edi
call fcn.004036a4
lea ecx, [ebp - 0x1c]
call fcn.0040fa89
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [edi + 0xf9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403a2b
push dword [edi + 0xf9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0xc48], ebx
je 0x403a2b
push str.151___Ligne_de_commande_trop_longue
mov ecx, edi
call fcn.004036a4
jmp 0x403a2b
cmp dword [edi + 0xc48], ebx
je 0x403e5a
push str.108___Version_obsol
mov ecx, edi
call fcn.004036a4
jmp 0x403e5a
cmp dword [edi + 0xc48], ebx
je 0x403e57
push str.107___Version
mov ecx, edi
call fcn.004036a4
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x14]
call fcn.0040fa89
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret