Function at 0x40ec30
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x42f26e
call fcn.0042ef64
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, 0x442290
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
inc ebx
jmp 0x40ec56
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push esi
call edi
test eax, eax
jne 0x40ec4f
mov eax, dword [0x442294]
inc eax
mov dword [0x442294], eax
cmp eax, ebx
jne 0x40eed2
cmp dword [0x442298], 0
jne 0x40eed2
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040b300
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040b37e
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x442298], eax
test eax, eax
jne 0x40ece0
push esi
lea eax, [ebp - 0x14]
push str.Chargement_de_la_biblioth
push eax
call fcn.00402d4f
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040b37e
push eax
xor ecx, ecx
call fcn.0040cde8
lea ecx, [ebp - 0x14]
call fcn.0040b313
push ebx
push 0x442290
call edi
jmp 0x40eec6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FtpCommandW
push eax
call esi
push str.InternetWriteFile
push dword [0x442298]
call esi
push str.FtpOpenFileW
push dword [0x442298]
mov dword [0x44228c], eax
call esi
push str.InternetReadFile
push dword [0x442298]
mov dword [0x442288], eax
call esi
push str.FtpSetCurrentDirectoryW
push dword [0x442298]
mov dword [0x44223c], eax
call esi
push str.FtpGetCurrentDirectoryW
push dword [0x442298]
mov dword [0x442284], eax
call esi
push str.FtpRemoveDirectoryW
push dword [0x442298]
mov dword [0x442280], eax
call esi
push str.FtpCreateDirectoryW
push dword [0x442298]
mov dword [0x44227c], eax
call esi
push str.FtpRenameFileW
push dword [0x442298]
mov dword [0x442278], eax
call esi
push str.FtpDeleteFileW
push dword [0x442298]
mov dword [0x442274], eax
call esi
push str.InternetFindNextFileW
push dword [0x442298]
mov dword [0x442270], eax
call esi
push str.FtpFindFirstFileW
push dword [0x442298]
mov dword [0x44226c], eax
call esi
push str.InternetSetOptionW
push dword [0x442298]
mov dword [0x442268], eax
call esi
push str.InternetOpenW
push dword [0x442298]
mov dword [0x44225c], eax
call esi
push str.InternetCloseHandle
push dword [0x442298]
mov dword [0x442260], eax
call esi
push str.InternetConnectW
push dword [0x442298]
mov dword [0x442254], eax
call esi
push str.InternetGetLastResponseInfoW
push dword [0x442298]
mov dword [0x442258], eax
call esi
push str.HttpOpenRequestW
push dword [0x442298]
mov dword [0x442264], eax
call esi
push str.HttpSendRequestW
push dword [0x442298]
mov dword [0x442250], eax
call esi
push str.InternetQueryOptionW
push dword [0x442298]
mov dword [0x442248], eax
call esi
mov dword [0x442238], eax
push str.InternetErrorDlg
push dword [0x442298]
call esi
push str.HttpAddRequestHeadersW
push dword [0x442298]
mov dword [0x442244], eax
call esi
push str.InternetGetConnectedState
push dword [0x442298]
mov dword [0x44224c], eax
call esi
push str.HttpQueryInfoW
push dword [0x442298]
call esi
push str.FtpGetFileSize
push dword [0x442298]
mov dword [0x442240], eax
call esi
push str.FtpPutFileW
push dword [0x442298]
call esi
push str.HttpSendRequestExW
push dword [0x442298]
call esi
push str.HttpEndRequestW
push dword [0x442298]
call esi
push ebx
push 0x442290
call edi
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x10]
call fcn.0040b313
mov eax, ebx
jmp 0x40eee2
push 0
push esi
call edi
xor eax, eax
cmp dword [0x442298], eax
setne al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret