Function at 0x406226
Capabilities:
Check http status code
Write file on windows

Disassembly:
mov eax, 0x43c2af
call fcn.0043a99c
sub esp, 0xdc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x18], ebx
push edi
mov dword [eax + 4], ebx
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x406252
mov eax, dword [eax]
push ebx
push 6
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], ebx
cmp eax, 0xffffffff
je 0x4066bd
push 0xf
pop esi
push 0x15
push str.I__nt__ernet__Ope__nA
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x94], bl
call fcn.00403404
push ebx
push ebx
push ebx
push ebx
push str.Installer__compatible__MSIE_6.0b__Windows_NT_5.0__.NET_CLR_1.0.2914_
lea edi, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00406b36
push eax
lea ecx, [ebp - 0x94]
call fcn.0040674a
call eax
mov dword [ebp - 0x1c], eax
push ebx
push 1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 3
call fcn.00401506
cmp dword [ebp - 0x1c], ebx
jne 0x4062e6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
jmp 0x406685
push 0x15
push str.In_te_rne_tO_pen_UrlW
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
call fcn.00403404
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x40630d
mov eax, dword [eax]
push 0x2c
push str.W_____I__N___I___N______E___T__.___d___l___l
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 0xb0], bl
call fcn.00403404
lea eax, [ebp - 0xcc]
push eax
lea esi, [ebp - 0xb0]
mov byte [ebp - 4], 5
call fcn.00405f96
cmp dword [eax + 0x14], 0x10
pop ecx
jb 0x406353
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push ebx
push 1
lea ecx, [ebp - 0xcc]
mov edi, eax
call fcn.00401506
push ebx
push 1
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 4
call fcn.00401506
lea eax, [ebp - 0xe8]
push eax
lea esi, [ebp - 0x54]
call fcn.00405f96
cmp dword [eax + 0x14], 0x10
pop ecx
jb 0x406394
mov eax, dword [eax]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ebx
push 1
lea ecx, [ebp - 0xe8]
mov esi, eax
call fcn.00401506
push ebx
push 0x84403900
push 0xffffffffffffffff
push 0x441448
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x14], eax
push ebx
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
call fcn.00401506
cmp dword [ebp - 0x14], ebx
jne 0x4063e9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
jmp 0x406679
mov edi, 0x20000
push edi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
call fcn.0040eab2
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40641d
push edi
push ebx
push esi
call fcn.0040f520
add esp, 0xc
mov dword [ebp - 0x38], esi
jmp 0x406420
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x38], ebx
jne 0x406435
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
jmp 0x40666d
push 0xf
pop esi
push 0x16
push str.In_te_rn_et_Re_ad_File
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
call fcn.00403404
lea eax, [ebp - 0x5c]
push eax
push 0x20000
mov byte [ebp - 4], 9
push dword [ebp - 0x38]
lea edi, [ebp - 0x70]
push dword [ebp - 0x14]
call fcn.00406b36
push eax
lea ecx, [ebp - 0x54]
call fcn.0040674a
call eax
push ebx
push 1
lea ecx, [ebp - 0x54]
mov edi, eax
mov byte [ebp - 4], 8
call fcn.00401506
cmp edi, ebx
je 0x406664
cmp dword [ebp - 0x5c], ebx
jbe 0x4065e4
cmp dword [ebp - 0x2c], ebx
jne 0x406588
push 0x13
push str.Ht_t_pQu_e_ry_InfoW
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
call fcn.00403404
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xb
or dword [ebp - 0x18], 2
push 0x20000013
push dword [ebp - 0x14]
lea edi, [ebp - 0x78]
call fcn.00406b36
push eax
lea ecx, [ebp - 0x54]
call fcn.0040674a
call eax
test eax, eax
je 0x4064fd
cmp dword [ebp - 0x30], 0xc8
mov byte [ebp - 0xd], 1
je 0x406500
mov byte [ebp - 0xd], bl
mov dword [ebp - 4], 8
test byte [ebp - 0x18], 2
je 0x40651c
and dword [ebp - 0x18], 0xfffffffd
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00401506
cmp byte [ebp - 0xd], bl
je 0x406588
push 0x13
push str.Ht_t_pQu_e_ry_InfoW
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
call fcn.00403404
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x20000005
mov byte [ebp - 4], 0xc
push dword [ebp - 0x14]
lea edi, [ebp - 0x74]
call fcn.00406b36
push eax
lea ecx, [ebp - 0x54]
call fcn.0040674a
call eax
neg eax
sbb al, al
push ebx
inc al
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 8
call fcn.00401506
cmp byte [ebp - 0xd], bl
je 0x406588
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x5c]
add dword [ebp - 0x24], eax
push ebx
lea ecx, [ebp - 0x64]
push ecx
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4066f8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], eax
cmp eax, ebx
jg 0x4065b9
mov dword [ebp - 0x60], 0x18cba80
mov eax, dword [ebp + 8]
mov esi, dword [eax]
cmp esi, ebx
je 0x406435
fild dword [ebp - 0x24]
mov edi, dword [esi]
fmul qword [0x441be0]
fidiv dword [ebp - 0x60]
call fcn.0043a8f0
push eax
mov ecx, esi
call dword [edi + 4]
jmp 0x406435
push 0x13
push str.Ht_t_pQu_e_ry_InfoW
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
call fcn.00403404
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xa
or dword [ebp - 0x18], 1
push 0x20000013
push dword [ebp - 0x14]
lea edi, [ebp - 0x68]
call fcn.00406b36
push eax
lea ecx, [ebp - 0x54]
call fcn.0040674a
call eax
test eax, eax
je 0x406640
cmp dword [ebp - 0x30], 0xc8
mov byte [ebp - 0xd], 1
je 0x406643
mov byte [ebp - 0xd], bl
mov dword [ebp - 4], 8
test byte [ebp - 0x18], 1
je 0x40665f
and dword [ebp - 0x18], 0xfffffffe
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00401506
cmp byte [ebp - 0xd], bl
jne 0x4066cb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
call fcn.0040e47f
pop ecx
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406024
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00406024
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
inc dword [eax + 4]
push 0x1388
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc dword [ebp - 0x58]
cmp dword [ebp - 0x58], 3
jl 0x406247
jmp 0x40672d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
jmp 0x40672d
push dword [ebp - 0x38]
call fcn.0040e47f
pop ecx
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406024
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00406024
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x406730
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x38]
mov dword [ecx + 8], eax
call fcn.0040e47f
pop ecx
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406024
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00406024
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 2
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc