Function at 0x409f86
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x43065a
call fcn.00430150
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, 0x44723c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
inc ebx
jmp 0x409fac
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push esi
call edi
test eax, eax
jne 0x409fa5
mov eax, dword [0x447240]
inc eax
mov dword [0x447240], eax
cmp eax, ebx
jne 0x40a22d
cmp dword [0x447244], 0
jne 0x40a22d
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040eee2
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040ef7e
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x447244], eax
test eax, eax
jne 0x40a036
push esi
lea eax, [ebp - 0x14]
push str.Chargement_de_la_biblioth
push eax
call fcn.00402a02
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040ef7e
push eax
xor ecx, ecx
call fcn.0041053a
lea ecx, [ebp - 0x14]
call fcn.0040eef5
push ebx
push 0x44723c
call edi
jmp 0x40a221
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FtpCommandW
push eax
call esi
push str.InternetWriteFile
push dword [0x447244]
call esi
push str.FtpOpenFileW
push dword [0x447244]
mov dword [0x4471e0], eax
call esi
push str.InternetReadFile
push dword [0x447244]
mov dword [0x4471ec], eax
call esi
push str.FtpSetCurrentDirectoryW
push dword [0x447244]
mov dword [0x4471e4], eax
call esi
push str.FtpGetCurrentDirectoryW
push dword [0x447244]
mov dword [0x4471f8], eax
call esi
push str.FtpRemoveDirectoryW
push dword [0x447244]
mov dword [0x4471fc], eax
call esi
push str.FtpCreateDirectoryW
push dword [0x447244]
mov dword [0x447200], eax
call esi
push str.FtpRenameFileW
push dword [0x447244]
mov dword [0x447204], eax
call esi
push str.FtpDeleteFileW
push dword [0x447244]
mov dword [0x447208], eax
call esi
push str.InternetFindNextFileW
push dword [0x447244]
mov dword [0x44720c], eax
call esi
push str.FtpFindFirstFileW
push dword [0x447244]
mov dword [0x4471f0], eax
call esi
push str.InternetSetOptionW
push dword [0x447244]
mov dword [0x4471f4], eax
call esi
push str.InternetOpenW
push dword [0x447244]
mov dword [0x447214], eax
call esi
push str.InternetCloseHandle
push dword [0x447244]
mov dword [0x447220], eax
call esi
push str.InternetConnectW
push dword [0x447244]
mov dword [0x44721c], eax
call esi
push str.InternetGetLastResponseInfoW
push dword [0x447244]
mov dword [0x447210], eax
call esi
push str.HttpOpenRequestW
push dword [0x447244]
mov dword [0x447218], eax
call esi
push str.HttpSendRequestW
push dword [0x447244]
mov dword [0x447238], eax
call esi
push str.InternetQueryOptionW
push dword [0x447244]
mov dword [0x447230], eax
call esi
mov dword [0x447224], eax
push str.InternetErrorDlg
push dword [0x447244]
call esi
push str.HttpAddRequestHeadersW
push dword [0x447244]
mov dword [0x44722c], eax
call esi
push str.InternetGetConnectedState
push dword [0x447244]
mov dword [0x447234], eax
call esi
push str.HttpQueryInfoW
push dword [0x447244]
call esi
push str.FtpGetFileSize
push dword [0x447244]
mov dword [0x447228], eax
call esi
push str.FtpPutFileW
push dword [0x447244]
mov dword [0x4471e8], eax
call esi
push str.HttpSendRequestExW
push dword [0x447244]
call esi
push str.HttpEndRequestW
push dword [0x447244]
call esi
push ebx
push 0x44723c
call edi
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x10]
call fcn.0040eef5
mov eax, ebx
jmp 0x40a23d
push 0
push esi
call edi
xor eax, eax
cmp dword [0x447244], eax
setne al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret