Function at 0x401406
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28dc
call fcn.0040a7e0
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x423588], esi
mov dword [ebp - 8], esi
je 0x4014c1
push dword [ebp + 0xc]
call fcn.00401ae4
push eax
mov edi, 0x423b20
push str._r_nurl:__s_r_n
push edi
call fcn.0040a73b
add esp, 0x10
push dword [0x4239e4]
push edi
call fcn.0040a6c0
pop ecx
push eax
push 1
push edi
call fcn.0040a583
push dword [ebp + 0x10]
call fcn.00401ae4
push eax
push str.file:__s_r_n
push edi
call fcn.0040a73b
add esp, 0x20
push dword [0x4239e4]
push edi
call fcn.0040a6c0
pop ecx
push eax
push 1
push edi
call fcn.0040a583
push dword [ebp + 0x14]
call fcn.00401ae4
push eax
push str.target_folder:__s_r_n
push edi
call fcn.0040a73b
add esp, 0x20
push dword [0x4239e4]
push edi
call fcn.0040a6c0
pop ecx
push eax
push 1
push edi
call fcn.0040a583
push dword [0x4239e4]
call fcn.0040a41d
add esp, 0x14
lea eax, [ebp - 0x8dc]
push eax
lea eax, [ebp - 0x6dc]
push eax
push esi
push esi
push dword [ebp + 0x10]
call fcn.0040a299
lea eax, [ebp - 0x8dc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [ebp - 0x6dc]
push eax
lea eax, [ebp - 0x4dc]
push str._s_s
push eax
call edi
add esp, 0x24
push 0x7f02
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [0x424988], 0x21
mov dword [ebp - 0x18], eax
jne 0x401524
push str.Connexion...
jmp 0x401529
push str.Connecting...
push 0x40b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ebx, dword [sym.imp.USER32.dll_RedrawWindow]
push 0x301
lea eax, [ebp + 0x18]
push esi
push eax
push dword [ebp + 8]
call ebx
push 0x20
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.0040a180
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0xcc]
push 3
push esi
push esi
push esi
push 0x414428
mov dword [ebp - 0x6c], 0x20
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], esi
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x4015c4
jmp 0x401639
push str.Konvertor_cannot_connect_to_n_s
lea eax, [ebp - 0x18dc]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x18dc]
push 0x10
push 0x414428
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4018dd
push 0x800
lea eax, [ebp - 0x28dc]
push esi
push eax
call fcn.0040a180
add esp, 0xc
cmp dword [0x424988], 0x21
push dword [ebp + 0x10]
jne 0x4015ec
push str.Recherche_de__s...
jmp 0x4015f1
push str.Searching__s...
lea eax, [ebp - 0x28dc]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x28dc]
push eax
push 0x40b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x301
lea eax, [ebp + 0x18]
push esi
push eax
push dword [ebp + 8]
call ebx
push esi
push 0x10
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, esi
mov dword [ebp + 0x14], eax
jne 0x401653
cmp dword [0x424988], 0x21
push dword [ebp + 0xc]
jne 0x401597
push str.Konvertor_ne_peut_pas_se_connecter
jmp 0x40159c
mov eax, dword [ebp - 0x5c]
push 0x1000
push esi
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x401680
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4018ca
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x14]
call fcn.00401359
add esp, 0xc
test eax, eax
je 0x4018c1
mov ecx, dword [ebp - 0x1c]
push 1
pop eax
mov dword [ebp - 0x48], ecx
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
push 0x423380
lea eax, [ebp - 0x2d4]
lea ecx, [ebp - 0x4c]
push 0x414344
push eax
mov dword [ebp - 0x4c], esi
mov dword [ebp + 0xc], ecx
call edi
lea eax, [ebp - 0x2d4]
push eax
call fcn.00401a51
lea eax, [ebp - 0x2d4]
push eax
push 0x41433c
push dword [ebp + 0x10]
call edi
lea eax, [ebp - 0x2d4]
push 0x414334
push eax
call fcn.0040a286
add esp, 0x28
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x401727
cmp dword [0x424988], 0x21
push dword [ebp + 0x10]
jne 0x40171d
push str.Konvertor_ne_peut_pas_cr
jmp 0x40159c
push str.Konvertor_cannot_create_the_file_n_s
jmp 0x40159c
push 0x800
lea eax, [ebp - 0x28dc]
push esi
push eax
call fcn.0040a180
add esp, 0xc
cmp dword [0x424988], 0x21
lea eax, [ebp - 0x4dc]
push eax
jne 0x401753
push 0x414268
jmp 0x401758
push str.Downloading__s...
lea eax, [ebp - 0x28dc]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x28dc]
push eax
push 0x40b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x301
lea eax, [ebp + 0x18]
push esi
push eax
push dword [ebp + 8]
call ebx
push 5
push dword [0x42358c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x640000
push esi
push 0x401
push dword [0x42358c]
call edi
push esi
push 1
push 0x404
push dword [0x42358c]
call edi
mov dword [ebp + 0x10], esi
mov dword [ebp - 0xc], esi
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
mov ecx, dword [eax]
cmp ebx, esi
mov dword [ebp - 0x28], ecx
jne 0x4017ef
push esi
push 2
push esi
push esi
push dword [ebp + 0x14]
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
mov ebx, eax
mov eax, dword [ebp + 0xc]
sub ebx, dword [eax]
je 0x40187f
push esi
push esi
push esi
push dword [ebp - 0x28]
push dword [ebp + 0x14]
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
mov eax, 0x1000
cmp ebx, eax
ja 0x401809
mov eax, ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4018ed
cmp dword [ebp - 0x20], esi
je 0x40187f
push dword [ebp - 0x10]
push dword [ebp - 0x20]
push 1
push dword [ebp - 4]
call fcn.0040a583
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], esi
add dword [ebp + 0x10], eax
add dword [ebp - 0x28], eax
sub ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x28]
fild qword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
add esp, 0x10
fidiv dword [ebp - 0x3c]
push esi
fmul qword [0x412278]
call fcn.0040a810
push eax
push 0x402
push dword [0x42358c]
call edi
cmp ebx, esi
jne 0x4017ef
add dword [ebp + 0xc], 8
mov eax, dword [ebp - 0xc]
dec dword [ebp - 0xc]
test eax, eax
jne 0x4017c5
push dword [ebp - 0x10]
call fcn.0040a1d8
mov dword [esp], 0x41423c
push 0x40b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x301
lea eax, [ebp + 0x18]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_RedrawWindow]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov esi, dword [ebp - 8]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebp - 8], esi
jmp 0x4018c1