Function at 0x45bc40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x528df3
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x628c
call fcn.004f50c0
mov eax, dword [0x581980]
xor eax, esp
mov dword [esp + 0x6288], eax
push ebx
push esi
push edi
mov eax, dword [0x581980]
xor eax, esp
push eax
lea eax, [esp + 0x62a0]
mov dword fs:[0], eax
mov esi, edx
xor ebx, ebx
push ebx
mov eax, 0x5641f8
mov edi, ecx
mov dword [esp + 0x2c], esi
call fcn.00403af0
call fcn.0046d410
call fcn.0046d400
call fcn.0046e120
call fcn.0046e110
push eax
call fcn.0046ca70
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x45bcd7
call fcn.004f4a35
add eax, 0x20
push eax
call fcn.0046d3e0
add esp, 4
xor eax, eax
jmp 0x45c53a
lea eax, [esp + 0x104]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x45bcd0
push 0x400
lea ecx, [esp + 0x1a98]
push ebx
push ecx
call fcn.004f50f0
add esp, 0xc
push 0x400
lea edx, [esp + 0xa98]
push ebx
push edx
call fcn.004f50f0
add esp, 0xc
push 0x400
lea eax, [esp + 0x1298]
push ebx
push eax
call fcn.004f50f0
add esp, 0xc
lea ecx, [esp + 0xa94]
push ecx
lea edx, [esp + 0x1a98]
push edx
push edi
lea edx, [esp + 0x12a0]
lea ecx, [esp + 0x20]
call fcn.0045c590
xor eax, eax
mov word [esp + 0x30], ax
lea eax, [esp + 0xa94]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45bd70
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa98]
lea esi, [esp + 0x34]
call fcn.00403af0
mov ecx, esi
push ecx
lea edi, [esp + 0x50]
mov dword [esp + 0x62ac], ebx
call fcn.00457030
mov edi, 0x10
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x45bdb2
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp dword [esp + 0x60], edi
jb 0x45bdce
mov edx, dword [esp + 0x4c]
push edx
call fcn.004f287e
add esp, 4
mov dword [esp + 0x62a8], 0xffffffff
cmp dword [esp + 0x44], 8
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], 0
jb 0x45bdfe
mov eax, dword [esp + 0x30]
push eax
call fcn.004f287e
add esp, 4
xor ecx, ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], cx
cmp esi, ebx
je 0x45bcd0
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
xor ecx, ecx
mov edx, 2
mov dword [esp + 0x68], ecx
push eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov word [esp + 0x6c], dx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov ebx, 1
push ebx
push 2
mov word [esp + 0x76], ax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
je 0x45bcd0
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0xffff
push edi
mov dword [esp + 0x38], ebx
call esi
push 4
lea edx, [esp + 0x24]
push edx
push 0x1006
push 0xffff
push edi
mov dword [esp + 0x34], 0xbb8
call esi
push 4
lea eax, [esp + 0x24]
push eax
push 0x1005
push 0xffff
push edi
call esi
push 4
lea ecx, [esp + 0x30]
push ecx
push 0x1002
push 0xffff
push edi
mov dword [esp + 0x40], 0x8000
call esi
push 0x10
lea edx, [esp + 0x6c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x45bf04
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
jmp 0x45c53a
mov eax, dword [esp + 0x18]
push eax
call fcn.0046cf70
add esp, 4
mov esi, eax
push edi
push esi
mov dword [esp + 0x24], esi
call fcn.0046b080
push esi
call fcn.0046d240
add esp, 0xc
cmp eax, 0xffffffff
je 0x45bcd0
push 0x400
lea ecx, [esp + 0x298]
push 0
push ecx
call fcn.004f50f0
add esp, 0xc
push 0x56480c
lea ecx, [esp + 0xd0]
call fcn.0040a4f0
mov eax, 0x564810
lea ecx, [esp + 0x4c]
mov dword [esp + 0x62a8], ebx
call fcn.00403be0
lea edx, [esp + 0x4c]
push edx
lea edi, [esp + 0x34]
mov byte [esp + 0x62ac], 2
call fcn.00457030
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x45bf8e
mov eax, dword [eax]
lea edx, [esp + 0x294]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, ebx
test cl, cl
jne 0x45bf97
lea ecx, [esp + 0x30]
call fcn.00403c70
lea esi, [esp + 0x4c]
mov byte [esp + 0x62a8], 1
call fcn.00402850
lea edi, [esp + 0x294]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45bfc4
mov ax, word [0x56e53c]
mov word [edi], ax
lea eax, [esp + 0x1294]
lea ecx, [esp + 0x4c]
call fcn.00403be0
lea ecx, [esp + 0x4c]
push ecx
lea edi, [esp + 0x34]
mov byte [esp + 0x62ac], 3
call fcn.00457030
mov ebx, 0x10
add esp, 4
cmp dword [eax + 0x14], ebx
jb 0x45c00a
mov eax, dword [eax]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45c010
lea edi, [esp + 0x294]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45c021
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
call fcn.00403c70
lea esi, [esp + 0x4c]
mov byte [esp + 0x62a8], 1
call fcn.00402850
lea eax, [esp + 0x294]
dec eax
jmp 0x45c060
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45c060
mov edx, dword [str._HTTP_1.1_r_n]
mov ecx, dword [0x56e544]
mov dword [eax], edx
mov edx, dword [0x56e548]
lea edi, [esp + 0x294]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45c090
mov ecx, 6
mov esi, str.Connection:_Keep_Alive_r_n
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x294]
movsb byte es:[edi], byte [esi]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45c0b0
mov ecx, dword [str.Accept:___r_n]
mov edx, dword [0x56e56c]
mov dword [eax], ecx
mov ecx, dword [0x56e570]
mov dword [eax + 4], edx
mov dx, word [0x56e574]
lea edi, [esp + 0x294]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45c0e5
mov ecx, 6
mov esi, str.Accept_Language:_en_us_r_n
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x294]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45c102
mov ecx, 6
mov esi, str.Accept_Encoding:_default_r_n
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x294]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45c121
cmp dword [esp + 0xdc], 0
mov ecx, 0x33
mov esi, str.User_Agent:_Mozilla_4.0__compatible__MSIE_8.0__Windows_NT_6.1__WOW64__Trident_5.0__SLCC2__.NET_CLR_2.0.50727__.NET_CLR_3.5.30729__.NET_CLR_3.0.30729__Media_Center_PC_7.0__InfoPath.2__.NET4.0C__.NET4.0E__r_n
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jbe 0x45c1c9
lea edi, [esp + 0x294]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45c150
mov ecx, 0xc
mov esi, str.Content_Type:_application_x_www_form_urlencoded_r_n
rep movsd dword es:[edi], dword [esi]
push 0x400
lea eax, [esp + 0x698]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.004f50f0
add esp, 0xc
push 0
lea ecx, [esp + 0x698]
push str.Content_Length:__ld_r_n
push ecx
call fcn.004f485d
lea eax, [esp + 0x6a0]
add esp, 0xc
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x45c1a0
lea edi, [esp + 0x294]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45c1b3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x294]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45c1d1
mov edx, dword [str.Host:]
mov cx, word [0x56e6d0]
mov dword [eax], edx
mov dl, byte [0x56e6d2]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0xa94]
lea ecx, [esp + 0x4c]
call fcn.00403be0
lea eax, [esp + 0x4c]
push eax
lea edi, [esp + 0x34]
mov byte [esp + 0x62ac], 4
call fcn.00457030
add esp, 4
cmp dword [eax + 0x14], ebx
jb 0x45c225
mov eax, dword [eax]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45c227
lea edi, [esp + 0x294]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45c238
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
call fcn.00403c70
lea esi, [esp + 0x4c]
mov byte [esp + 0x62a8], 1
call fcn.00402850
lea eax, [esp + 0x294]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45c272
mov ecx, dword [0x56e6d4]
mov dl, byte [0x56e6d8]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x294]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45c295
mov esi, dword [esp + 0x1c]
sub eax, edx
push eax
lea eax, [esp + 0x298]
push eax
push esi
call fcn.0046b190
add esp, 0xc
test eax, eax
jns 0x45c2f5
push esi
call fcn.0046ca20
add esp, 4
push esi
call fcn.0046c7c0
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esp + 0x18]
push edx
call fcn.0046baa0
add esp, 4
lea ecx, [esp + 0xcc]
call fcn.00403c70
xor eax, eax
jmp 0x45c53a
push 0x200000
call fcn.004f1ede
add esp, 4
push 0x200000
mov edi, eax
push 0
push edi
call fcn.004f50f0
add esp, 0xc
push 0x4000
lea eax, [esp + 0x2298]
push 0
push eax
call fcn.004f50f0
add esp, 0xc
push 0x4000
lea ecx, [esp + 0x2298]
push ecx
push esi
call fcn.0046b0f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45c3d8
mov bl, 0xa
lea ecx, [ecx]
cmp esi, 0xffffffff
je 0x45c55e
test esi, esi
jle 0x45c39d
push esi
lea edx, [esp + 0x2298]
push edx
push edi
call fcn.004f4900
add esp, 0xc
cmp byte [esp + esi + 0x2293], bl
jne 0x45c395
cmp byte [esp + esi + 0x2292], 0xd
jne 0x45c395
cmp byte [esp + esi + 0x2291], bl
jne 0x45c395
cmp byte [esp + esi + 0x2290], 0xd
je 0x45c3d8
cmp esi, 0x4000
jl 0x45c3d8
push 0x4000
lea eax, [esp + 0x2298]
push 0
push eax
call fcn.004f50f0
mov edx, dword [esp + 0x28]
add esp, 0xc
push 0x4000
lea ecx, [esp + 0x2298]
push ecx
push edx
call fcn.0046b0f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45c350
push edi
call fcn.00456fc0
add esp, 4
push eax
push 0x5648f4
lea eax, [esp + 0x9c]
call fcn.004578e0
add esp, 8
lea edx, [esp + 0x94]
push edx
mov edx, str._r_n_r_n
mov byte [esp + 0x62ac], 5
call fcn.004034a0
mov edi, eax
push edi
xor ecx, ecx
lea esi, [esp + 0xb4]
lea edx, [esp + 0x98]
call fcn.00459480
mov byte [esp + 0x62a8], 6
mov eax, dword [esp + 0xa4]
push eax
lea ecx, [edi + 4]
lea esi, [esp + 0xec]
lea edx, [esp + 0x98]
call fcn.00459480
mov eax, 0x5641f8
lea ecx, [esp + 0x78]
mov byte [esp + 0x62a8], 7
call fcn.00403be0
mov byte [esp + 0x62a8], 8
mov eax, dword [esp + 0xb0]
mov esi, 8
cmp dword [esp + 0xc4], esi
jae 0x45c488
lea eax, [esp + 0xb0]
push eax
call fcn.0045c8a0
test eax, eax
je 0x45c4b3
mov eax, dword [esp + 0xe8]
cmp dword [esp + 0xfc], esi
jae 0x45c4a9
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x7c]
call fcn.0045cad0
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], esi
jae 0x45c4c4
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004020f0
mov esi, dword [esp + 0x1c]
push esi
call fcn.0046ca20
add esp, 4
push esi
call fcn.0046c7c0
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x18]
push eax
call fcn.0046baa0
add esp, 4
lea esi, [esp + 0x78]
call fcn.00402850
lea esi, [esp + 0xe8]
call fcn.00402850
lea esi, [esp + 0xb0]
call fcn.00402850
lea esi, [esp + 0x94]
call fcn.00402850
lea ecx, [esp + 0xcc]
call fcn.00403c70
mov eax, 1
mov ecx, dword [esp + 0x62a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6288]
xor ecx, esp
call fcn.004f2889
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x1c]
push esi
call fcn.0046ca20
add esp, 4
push esi
call fcn.0046c7c0
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x45c2da