Function at 0x402150
Capabilities:
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 0xffffffffffffffff
push 0x4b105b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov byte [esp + 0x1b], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x43c], ebx
mov dword [esp + 0x1c], ebx
cmp byte [esi + 0x11], bl
je 0x4021d1
mov eax, dword [esi + 0x14]
push 0x4cb348
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004707d3
add esp, 0xc
cmp dword [esp + 0x1c], ebx
jne 0x4021d1
mov byte [esp + 0x1b], bl
jmp 0x402324
push ebx
push ebx
push ebx
push ebx
push str.SogouComponentAgent
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, eax
mov dword [esp + 0x20], ecx
cmp ecx, ebx
jne 0x402206
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4021fd
mov edx, dword [esi + 8]
push ebx
push ebx
push edx
push ebx
call eax
add esp, 0x10
mov byte [esp + 0x1b], bl
jmp 0x402324
mov eax, dword [esi]
push ebx
push 0x400
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
mov dword [esp + 0x24], edi
cmp edi, ebx
jne 0x40223b
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4021fd
mov ecx, dword [esi + 8]
push ebx
push ebx
push ecx
push ebx
call eax
mov byte [esp + 0x2b], bl
jmp 0x402321
lea eax, [esp + 0x20]
call fcn.00402b50
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x402258
mov edx, dword [esi + 8]
push ebx
push eax
push edx
push 3
call ecx
add esp, 0x10
push 0x3ff
lea eax, [esp + 0x31]
push ebx
push eax
mov byte [esp + 0x38], bl
call fcn.00476c30
mov ecx, dword [esp + 0x450]
add esp, 0xc
cmp byte [ecx + 0x54], bl
jne 0x4022f5
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x28]
push edx
push 0x400
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x38], ebx
call ebp
test eax, eax
je 0x402222
mov edi, dword [esp + 0x28]
cmp edi, 0xffffffff
je 0x402222
cmp edi, ebx
je 0x4022f5
cmp dword [esi + 4], ebx
je 0x4022e3
cmp byte [esi + 0x11], bl
je 0x4022cf
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4022cf
push eax
push edi
lea ecx, [esp + 0x34]
push 1
push ecx
call fcn.00470f60
add esp, 0x10
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x2c]
push edx
push edi
push eax
push 2
call ecx
add esp, 0x10
mov edx, dword [esp + 0x444]
cmp byte [edx + 0x54], bl
jne 0x4022f5
mov edi, dword [esp + 0x24]
jmp 0x402281
cmp dword [esi + 4], ebx
je 0x402324
cmp byte [esi + 0x11], bl
je 0x402314
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x402314
push eax
call fcn.00471059
add esp, 4
mov dword [esp + 0x1c], ebx
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push ebx
push ebx
push edx
push 1
call eax
add esp, 0x10
mov eax, dword [esi]
cmp eax, ebx
je 0x402333
push eax
call fcn.00470399
add esp, 4
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x402343
push eax
call fcn.00470399
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x402358
push eax
call fcn.00471059
add esp, 4
mov dword [esp + 0x1c], ebx
push esi
call fcn.0046fda3
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
cmp eax, ebx
je 0x402372
push eax
call esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40237d
push eax
call esi
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0046fdae
add esp, 0x42c
ret 4