Function at 0x41b7b0
Capabilities:
Create tcp socket
Create udp socket
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490123
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4b04dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x264], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x18], ebx
jne 0x41b809
cmp dword [ebp + 0x1c], 0x10
jb 0x41b802
mov eax, dword [ebp + 8]
push eax
call fcn.0047659a
add esp, 4
xor al, al
jmp 0x41bc6c
push 0x103
lea ecx, [ebp - 0x117]
push ebx
push ecx
mov byte [ebp - 0x118], bl
call fcn.00480950
add esp, 0xc
push 0x103
lea edx, [ebp - 0x21f]
push ebx
push edx
mov byte [ebp - 0x220], bl
call fcn.00480950
add esp, 0xc
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x260], ebx
jb 0x41b887
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x41b871
lea ecx, [ebp - 0x260]
push ecx
lea ebx, [ebp - 0x220]
lea edi, [ebp - 0x118]
call fcn.0041b650
test al, al
jne 0x41b88c
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
jb 0x41b802
push eax
call fcn.0047659a
add esp, 4
xor al, al
jmp 0x41bc6c
lea eax, [ebp + 8]
jmp 0x41b852
push 6
push 1
push 2
mov dword [ebp - 0x25c], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
jmp 0x41b8b0
mov eax, dword [ebp - 0x260]
lea edx, [ebp - 0x118]
movzx ebx, ax
test edx, edx
je 0x41b90b
xor ecx, ecx
cmp cx, ax
je 0x41b90b
mov edi, edx
lea esi, [ebp - 0x258]
mov dword [ebp - method.klib::net::addr_resolver.virtual_0], vtable.klib::net::addr_resolver.0
call fcn.0041b3d0
cmp dword [ebp - 0x254], 0
jbe 0x41b90b
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [ebp - 0x264]
mov edx, dword [ebp - 0x250]
add esi, 4
mov ecx, eax
call fcn.0041c4a0
test eax, eax
jne 0x41b947
mov eax, dword [ebp - 0x25c]
inc eax
mov dword [ebp - 0x25c], eax
cmp eax, 4
jae 0x41b92a
push 0x9c4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41b8b0
cmp dword [ebp + 0x1c], 0x10
jb 0x41b802
mov edx, dword [ebp + 8]
push edx
call fcn.0047659a
add esp, 4
xor al, al
jmp 0x41bc6c
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
mov ebx, dword [ebp - 0x264]
mov byte [ebp - 4], 1
cmp dword [ebx + 0x80], 1
lea ecx, [ebp - 0x23c]
jne 0x41b984
push 4
mov eax, str.GET
jmp 0x41b98b
push 5
mov eax, str.POST
call fcn.004058f0
lea eax, [ebp - 0x220]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b9a0
sub eax, edx
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x23c]
call fcn.004058f0
push 0xb
mov eax, str._HTTP_1.1_r_n
lea ecx, [ebp - 0x23c]
call fcn.004058f0
push 6
mov eax, str.Host:
lea ecx, [ebp - 0x23c]
call fcn.004058f0
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b9e8
sub eax, edx
push eax
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x23c]
call fcn.004058f0
push 2
mov eax, 0x497d04
lea ecx, [ebp - 0x23c]
call fcn.004058f0
push 0x13
mov eax, str.Connection:_close_r_n
lea ecx, [ebp - 0x23c]
call fcn.004058f0
cmp dword [ebx + 0x3c], 0
je 0x41ba61
push 9
mov eax, str.Referer:
lea ecx, [ebp - 0x23c]
call fcn.004058f0
push 0
lea eax, [ebx + 0x2c]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x23c]
call fcn.00405800
push 2
mov eax, 0x497d04
mov ecx, esi
call fcn.004058f0
cmp dword [ebx + 0x20], 0
je 0x41ba9b
push 8
mov eax, str.Cookie:
lea ecx, [ebp - 0x23c]
call fcn.004058f0
push 0
lea ecx, [ebx + 0x10]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x23c]
call fcn.00405800
push 2
mov eax, 0x497d04
mov ecx, esi
call fcn.004058f0
cmp dword [ebx + 0x58], 0
push 0xc
mov eax, str.User_Agent:
lea ecx, [ebp - 0x23c]
je 0x41bac9
call fcn.004058f0
push 0
lea edx, [ebx + 0x48]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x23c]
call fcn.00405800
jmp 0x41bae0
call fcn.004058f0
push 0x65
mov eax, str.Mozilla_5.0__Windows_NT_6.1__AppleWebKit_537.17__KHTML__like_Gecko__Chrome_24.0.1312.52_Safari_537.17
lea ecx, [ebp - 0x23c]
call fcn.004058f0
push 2
mov eax, 0x497d04
lea ecx, [ebp - 0x23c]
call fcn.004058f0
mov edi, dword [ebx + 0x84]
cmp edi, dword [ebx + 0x88]
je 0x41bb46
push 0
push edi
or eax, 0xffffffff
lea esi, [ebp - 0x23c]
call fcn.00405800
push 2
mov eax, 0x49bcf0
mov ecx, esi
call fcn.004058f0
push 0
lea eax, [edi + 0x1c]
push eax
or eax, 0xffffffff
call fcn.00405800
push 2
mov eax, 0x497d04
mov ecx, esi
call fcn.004058f0
add edi, 0x38
cmp edi, dword [ebx + 0x88]
jne 0x41bb00
push 2
mov eax, 0x497d04
lea ecx, [ebp - 0x23c]
call fcn.004058f0
cmp dword [ebx + 0x80], 2
jne 0x41bbb6
mov edi, dword [ebx + 0x94]
cmp edi, dword [ebx + 0x98]
je 0x41bbb6
nop
push 0
push edi
or eax, 0xffffffff
lea esi, [ebp - 0x23c]
call fcn.00405800
push 1
mov eax, 0x49bcf4
mov ecx, esi
call fcn.004058f0
push 0
lea ecx, [edi + 0x1c]
push ecx
or eax, 0xffffffff
call fcn.00405800
push 1
mov eax, 0x49bcf8
mov ecx, esi
call fcn.004058f0
add edi, 0x38
cmp edi, dword [ebx + 0x98]
jne 0x41bb70
mov eax, dword [ebp - 0x23c]
mov esi, 0x10
cmp dword [ebp - 0x228], esi
jae 0x41bbcf
lea eax, [ebp - 0x23c]
mov edi, dword [ebp - 0x22c]
push eax
add ebx, 4
call fcn.0041c510
test eax, eax
jne 0x41bc2a
cmp dword [ebp - 0x228], esi
jb 0x41bbf9
mov edx, dword [ebp - 0x23c]
push edx
call fcn.0047659a
add esp, 4
xor eax, eax
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], eax
mov byte [ebp - 0x23c], al
cmp dword [ebp + 0x1c], esi
jb 0x41b802
mov eax, dword [ebp + 8]
push eax
call fcn.0047659a
add esp, 4
xor al, al
jmp 0x41bc6c
cmp dword [ebp - 0x228], esi
jb 0x41bc41
mov ecx, dword [ebp - 0x23c]
push ecx
call fcn.0047659a
add esp, 4
xor eax, eax
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], eax
mov byte [ebp - 0x23c], al
cmp dword [ebp + 0x1c], esi
jb 0x41bc6a
mov edx, dword [ebp + 8]
push edx
call fcn.0047659a
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret 0x1c