Function at 0x100dbabe
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.10102790
push 0xffffffffffffffff
push 0x1014aa49
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1019c8c8]
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.100d7b79
lea eax, [ebp + 0x106c]
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.100d7cdb
movzx edi, al
xor ebx, ebx
cmp edi, ebx
je 0x100dbd4f
cmp dword [ebp - 0x3c], 3
jne 0x100dbd4f
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000584b
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.1000c751
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 0x100dbd19
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 0x100dbd10
push 4
lea eax, [ebp + 0x1074]
push eax
push 5
push dword [ebp - 0x10]
call esi
mov edi, eax
cmp edi, ebx
je 0x100dbd10
push 4
lea eax, [ebp + 0x1074]
push eax
push 5
push dword [ebp - 0x10]
call esi
mov edi, eax
cmp edi, ebx
je 0x100dbd10
push 4
lea eax, [ebp + 0x1074]
push eax
push 6
push dword [ebp - 0x10]
call esi
mov edi, eax
cmp edi, ebx
je 0x100dbd10
push 4
lea eax, [ebp + 0x1074]
push eax
push 6
push dword [ebp - 0x10]
call esi
mov edi, eax
cmp edi, ebx
je 0x100dbd10
cmp dword [ebp + 0x1078], ebx
push ebx
je 0x100dbc05
push ebx
jmp 0x100dbc0a
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
je 0x100dbd10
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 0x100dbd07
cmp dword [ebp - 0x1c], 0xc8
je 0x100dbc67
cmp dword [ebp - 0x1c], 0x130
jne 0x100dbd07
push 0x105f
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.101027c0
push dword [ebp + 0x1070]
mov dword [ebp - 0x18], ebx
call fcn.100dd5dc
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 0x100dbd07
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x100dbce1
cmp dword [ebp - 0x18], ebx
je 0x100dbcfb
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 0x100dbcfe
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x18]
jne 0x100dbcfe
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 0x100dbcb6
jmp 0x100dbcfe
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.100015d9
lea ecx, [ebp - 0x28]
call fcn.100015d9
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.100d7bde
lea ecx, [ebp + 0x106c]
call fcn.100015d9
lea ecx, [ebp + 0x1070]
call fcn.100015d9
mov eax, edi
jmp 0x100dbd73
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.100d7bde
lea ecx, [ebp + 0x106c]
call fcn.100015d9
lea ecx, [ebp + 0x1070]
call fcn.100015d9
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.101018a3
add ebp, 0x1064
leave
ret