Function at 0x1011af35
Capabilities:
Check http status code
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1064]
mov eax, 0x1064
call fcn.10146c50
push 0xffffffffffffffff
push 0x10194cb6
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x101f6410]
xor eax, ebp
mov dword [ebp + 0x1060], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 1
call fcn.10116120
lea eax, [ebp + 0x106c]
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.10116282
movzx edi, al
xor ebx, ebx
cmp edi, ebx
je 0x1011b1c9
cmp dword [ebp - 0x3c], 3
jne 0x1011b1c9
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x28]
call fcn.10007ade
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 3
call fcn.100100f8
push ebx
push ebx
push ebx
push ebx
push str.BaiduToolbar_Get
mov byte [ebp - 4], 4
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1011b193
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp + 0x1074]
push ecx
push 2
push eax
call esi
mov edi, eax
cmp edi, ebx
je 0x1011b18a
push 4
lea eax, [ebp + 0x1074]
push eax
push 5
push dword [ebp - 0x10]
call esi
mov edi, eax
cmp edi, ebx
je 0x1011b18a
push 4
lea eax, [ebp + 0x1074]
push eax
push 5
push dword [ebp - 0x10]
call esi
mov edi, eax
cmp edi, ebx
je 0x1011b18a
push 4
lea eax, [ebp + 0x1074]
push eax
push 6
push dword [ebp - 0x10]
call esi
mov edi, eax
cmp edi, ebx
je 0x1011b18a
push 4
lea eax, [ebp + 0x1074]
push eax
push 6
push dword [ebp - 0x10]
call esi
mov edi, eax
cmp edi, ebx
je 0x1011b18a
cmp dword [ebp + 0x1078], ebx
push ebx
je 0x1011b07c
push ebx
jmp 0x1011b081
push 0x44000000
push ebx
push ebx
push dword [ebp + 0x106c]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x1011b0a0
xor edi, edi
jmp 0x1011b18a
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x20000013
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, eax
cmp edi, ebx
je 0x1011b181
cmp dword [ebp - 0x1c], 0xc8
je 0x1011b0e1
cmp dword [ebp - 0x1c], 0x130
jne 0x1011b181
push 0x105f
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.10146c80
push dword [ebp + 0x1070]
mov dword [ebp - 0x18], ebx
call fcn.1011cc25
add esp, 0x10
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0x1070]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x1011b181
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x1011b15b
cmp dword [ebp - 0x18], ebx
je 0x1011b175
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x18]
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp edi, ebx
je 0x1011b178
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x18]
jne 0x1011b178
lea eax, [ebp - 0x18]
push eax
push 0x1060
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call esi
mov edi, eax
cmp edi, ebx
jne 0x1011b130
jmp 0x1011b178
xor edi, edi
inc edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.10003b75
lea ecx, [ebp - 0x28]
call fcn.10003b75
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.10116185
lea ecx, [ebp + 0x106c]
call fcn.10003b75
lea ecx, [ebp + 0x1070]
call fcn.10003b75
mov eax, edi
jmp 0x1011b1ed
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.10116185
lea ecx, [ebp + 0x106c]
call fcn.10003b75
lea ecx, [ebp + 0x1070]
call fcn.10003b75
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1060]
xor ecx, ebp
call fcn.10145d71
add ebp, 0x1064
leave
ret