Function at 0x404e7f
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x431fd9
call fcn.00431d00
sub esp, 0x51c
push ebx
mov ebx, ecx
lea eax, [ebx + 0x420]
push eax
push 0x104
lea eax, [ebp - 0x528]
push eax
push str.WDUPDATE.NET
push str.FICUPDATE
lea eax, [ebx + 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, ebx
call fcn.00405a51
test eax, eax
je 0x4051e4
push esi
push edi
push ecx
lea ecx, [ebp - 0xe4]
call fcn.00410cf6
xor edi, edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], edi
call fcn.00409fb7
push ecx
push edi
lea eax, [ebp - 0xe4]
push eax
mov eax, ecx
lea ecx, [ebp - 0x60]
push eax
call fcn.004092ba
push ecx
mov byte [ebp - 4], 2
call fcn.00409a24
push ecx
call fcn.00409a35
mov eax, dword [ebx + 0x11dc]
mov esi, 0x43cc84
mov edx, dword [ebx + 0x11d0]
test eax, eax
mov ecx, esi
cmovne ecx, eax
mov eax, dword [ebx + 0x11d8]
mov dword [ebp - 0x18], ecx
test eax, eax
mov ecx, esi
cmovne ecx, eax
mov eax, dword [ebx + 0x11cc]
mov dword [ebp - 0x14], ecx
test eax, eax
mov ecx, esi
cmovne ecx, eax
mov dword [ebp - 0x10], ecx
test edx, edx
je 0x404f5c
cmp dword [edx - 4], 2
jb 0x404f5c
mov eax, dword [ebx + 0x11d4]
test eax, eax
cmovne esi, eax
jmp 0x404f5e
mov esi, edi
test edx, edx
je 0x404f68
cmp dword [edx - 4], 2
jae 0x404f6a
mov edx, edi
push dword [ebp - 0x18]
mov eax, dword [ebx + 0x11c4]
mov ecx, 0x43cc84
push dword [ebp - 0x14]
test eax, eax
cmovne ecx, eax
imul eax, dword [ebx + 0x11e4], 0x3e8
push ecx
push ecx
push dword [ebp - 0x10]
push eax
push dword [ebx + 0x11c8]
push esi
push edx
push ecx
lea ecx, [ebp - 0x60]
call fcn.0040934c
test eax, eax
jne 0x404fee
cmp dword [ebx + 0xc48], edi
je 0x4051c5
lea ecx, [ebp - 0xe4]
call fcn.004111fe
push eax
push str.134___Echec_de_linit_de_WinSock
lea eax, [ebp - 0x18]
push str._s_:__s
push eax
call fcn.004029fb
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040f58a
push eax
mov ecx, ebx
call fcn.004032a6
lea ecx, [ebp - 0x18]
jmp 0x4051c0
mov eax, dword [ebx + 0x11e0]
mov esi, 0x43cc84
test eax, eax
mov ecx, esi
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040f4c0
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0040fd6e
cmp ax, 0x2f
jne 0x405035
mov eax, dword [ebx + 0x11e0]
mov ecx, esi
test eax, eax
cmovne ecx, eax
lea eax, [ecx + 2]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f87b
lea ecx, [ebp - 0x10]
call fcn.0040fa21
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0040f852
dec eax
cmp esi, eax
jne 0x405082
lea ecx, [ebp - 0x10]
call fcn.0040f852
dec eax
lea edx, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f9aa
mov esi, eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0040f52d
mov ecx, dword [esi]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x18]
mov dword [esi], edi
mov byte [ebp - 4], 4
call fcn.0040f501
lea eax, [ebp - 0x528]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f58a
push eax
lea eax, [ebp - 0x24]
push 0x43eb30
push eax
call fcn.004029fb
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebx + 0x11c0]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.00405e5e
push ecx
push ecx
push edi
push eax
push 0x43cc84
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040f58a
push eax
lea ecx, [ebp - 0x60]
call fcn.0040952d
mov esi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4050e4
lock inc dword [eax - 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 8
jmp 0x405176
push 0x43eb54
lea ecx, [ebp - 0x20]
call fcn.00405e9d
test eax, eax
jne 0x4051f1
mov ecx, ebx
call fcn.00405bd0
test eax, eax
je 0x40519d
mov eax, dword [ebx + 0x11dc]
mov esi, 0x43cc84
test eax, eax
mov edx, esi
mov ecx, esi
cmovne edx, eax
mov eax, dword [ebx + 0x11d8]
test eax, eax
push edx
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.00409489
push ecx
push ecx
lea ecx, [ebx + 0x11c0]
call fcn.00405e5e
push ecx
push ecx
push edi
push eax
push esi
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040f58a
push eax
lea ecx, [ebp - 0x60]
call fcn.0040952d
mov esi, eax
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
call fcn.004066f9
lea eax, [ebp - 0x20]
push eax
push 0x43eb50
push 1
lea ecx, [ebp - 0x14]
call fcn.00405ff9
test esi, esi
jne 0x4050f3
mov esi, edi
lea ecx, [ebp - 0x60]
call fcn.004094cf
mov edi, esi
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x20]
call fcn.004066dc
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x14]
call fcn.004066dc
lea ecx, [ebp - 0x24]
call fcn.0040f501
lea ecx, [ebp - 0x10]
call fcn.0040f501
lea ecx, [ebp - 0x60]
call fcn.00409309
lea ecx, [ebp - 0x38]
call fcn.00409fed
lea ecx, [ebp - 0xe4]
call fcn.00410db9
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
test esi, esi
je 0x405191
push 0x43eb5c
lea ecx, [ebp - 0x20]
call fcn.00405e9d
test eax, eax
jne 0x405191
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
call fcn.004106f9
lea ecx, [ebp - 0x31c]
mov byte [ebp - 4], 0xb
call fcn.0040ae19
push edi
push 0x10000000
push 4
push 3
push 0xc0000000
lea eax, [ebx + 0x62a]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x31c]
call fcn.0040bc42
test eax, eax
je 0x405275
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x405256
mov ecx, dword [eax - 4]
jmp 0x405258
mov ecx, edi
push edi
push ecx
push eax
lea ecx, [ebp - 0x31c]
call fcn.0040b1ad
lea ecx, [ebp - 0x31c]
test eax, eax
jne 0x405291
call fcn.0040b0af
lea ecx, [ebp - 0x31c]
call fcn.0040aeb5
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x18]
call fcn.004066dc
jmp 0x40519d
call fcn.0040b0af
lea ecx, [ebp - 0x31c]
call fcn.0040aeb5
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x18]
call fcn.004066dc
mov byte [ebp - 4], 8
jmp 0x405193