Function at 0x422dd0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Reference http user-agent string
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push 0xffffffffffffffff
push 0x490c33
mov eax, dword fs:[0]
push eax
mov eax, 0x14b4
call fcn.004645c0
mov eax, dword [0x4b5a50]
xor eax, esp
mov dword [esp + 0x14b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 0x14c8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14d8]
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x14d0], ebx
xor edx, edx
mov eax, ecx
mov dword [esp + 0x2a4], 7
mov dword [esp + 0x2a0], ebx
mov word [esp + 0x290], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x422e44
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x294]
call fcn.00411830
mov byte [esp + 0x14d0], 1
lea esp, [esp]
mov edi, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x294]
lea esi, [edi + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x28], ebx
mov dword [edi + 0x7c], 0xffffffff
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
call fcn.00411b90
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x14e4]
push ecx
lea ebp, [edi + 0x30]
mov ecx, ebp
call fcn.00411b90
cmp dword [edi + 0x44], ebx
jne 0x422f6b
push 0x4a3264
mov ebx, 1
mov eax, esi
call fcn.004255b0
mov edi, eax
cmp edi, 0xffffffff
je 0x422f65
lea edx, [edi + 1]
mov ecx, esi
lea eax, [esp + 0x254]
call fcn.004338b0
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebp
mov byte [esp + 0x14dc], 2
call fcn.00411b90
mov byte [esp + 0x14d0], bl
mov ebx, 8
cmp dword [esp + 0x26c], ebx
jb 0x422f20
mov edx, dword [esp + 0x258]
push edx
call fcn.0043e229
add esp, 4
mov ecx, edi
mov edx, esi
lea eax, [esp + 0x254]
call fcn.00433880
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [esp + 0x14dc], 3
call fcn.00411b90
mov byte [esp + 0x14d0], 1
cmp dword [esp + 0x26c], ebx
jb 0x422f65
mov eax, dword [esp + 0x258]
push eax
call fcn.0043e229
add esp, 4
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ecx, dword [edi + 0xc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x422f87
mov dword [esp + 0x1c], 1
jmp 0x423f37
mov eax, 7
xor edx, edx
mov dword [esp + 0x250], eax
mov dword [esp + 0x24c], ebx
mov word [esp + 0x23c], dx
xor ecx, ecx
mov dword [esp + 0x18c], eax
mov dword [esp + 0x188], ebx
mov word [esp + 0x178], cx
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1a4], ebx
mov word [esp + 0x194], dx
lea eax, [esp + 0x190]
push eax
lea ecx, [esp + 0x178]
push ecx
lea edx, [esp + 0x240]
push edx
lea edx, [esp + 0x58]
lea edi, [esp + 0x4c]
mov ecx, esi
mov byte [esp + 0x14dc], 6
call fcn.00422c80
mov dword [esp + 0x2c8], 0xffffffff
cmp byte [0x4bb158], bl
jne 0x423031
lea eax, [esp + 0x2cc]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
cmp eax, ebx
jne 0x423031
mov byte [0x4bb158], 1
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x14d0], 7
mov edx, dword [ecx + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push edx
call edi
test eax, eax
jne 0x4230f0
mov esi, 8
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x1a8], esi
jb 0x423078
mov eax, dword [esp + 0x194]
push eax
call fcn.0043e229
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [esp + 0x1a8], edi
mov dword [esp + 0x1a4], ebx
mov word [esp + 0x194], cx
cmp dword [esp + 0x18c], esi
jb 0x4230ae
mov edx, dword [esp + 0x178]
push edx
call fcn.0043e229
add esp, 4
xor eax, eax
mov byte [esp + 0x14d0], 1
mov dword [esp + 0x18c], edi
mov dword [esp + 0x188], ebx
mov word [esp + 0x178], ax
cmp dword [esp + 0x250], esi
jb 0x423f37
mov ecx, dword [esp + 0x23c]
push ecx
call fcn.0043e229
add esp, 4
jmp 0x423f37
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
jne 0x4231a9
call sub.WS2_32.dll_WSAGetLastError
push eax
push str._connectAndSendData_:_socket_error__d.__r_n
call fcn.0045e817
add esp, 8
mov esi, 8
cmp dword [esp + 0x1a8], esi
jb 0x423139
mov edx, dword [esp + 0x194]
push edx
call fcn.0043e229
add esp, 4
xor eax, eax
mov edi, 7
mov word [esp + 0x194], ax
mov dword [esp + 0x1a4], ebx
mov dword [esp + 0x1a8], edi
cmp dword [esp + 0x18c], esi
jb 0x42316f
mov ecx, dword [esp + 0x178]
push ecx
call fcn.0043e229
add esp, 4
xor edx, edx
mov byte [esp + 0x14d0], 1
mov dword [esp + 0x18c], edi
mov dword [esp + 0x188], ebx
mov word [esp + 0x178], dx
cmp dword [esp + 0x250], esi
jb 0x423f10
mov eax, dword [esp + 0x23c]
push eax
jmp 0x423f08
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
push ebx
push edx
call edi
test eax, eax
jne 0x423252
mov dword [esp + 0x1c], 1
mov esi, 8
cmp dword [esp + 0x1a8], esi
jb 0x4231e2
mov eax, dword [esp + 0x194]
push eax
call fcn.0043e229
add esp, 4
xor ecx, ecx
mov edi, 7
mov word [esp + 0x194], cx
mov dword [esp + 0x1a4], ebx
mov dword [esp + 0x1a8], edi
cmp dword [esp + 0x18c], esi
jb 0x423218
mov edx, dword [esp + 0x178]
push edx
call fcn.0043e229
add esp, 4
xor eax, eax
mov byte [esp + 0x14d0], 1
mov dword [esp + 0x18c], edi
mov dword [esp + 0x188], ebx
mov word [esp + 0x178], ax
cmp dword [esp + 0x250], esi
jb 0x423f10
mov ecx, dword [esp + 0x23c]
push ecx
jmp 0x423f08
mov ecx, esi
lea esi, [esp + 0x200]
call fcn.00421be0
lea ecx, [esp + 0x238]
lea esi, [esp + 0x1ac]
mov byte [esp + 0x14d0], 8
call fcn.00421be0
mov ecx, ebp
lea esi, [esp + 0x1e4]
mov byte [esp + 0x14d0], 9
call fcn.00421be0
mov eax, dword [esp + 0x1b0]
mov edi, 0x10
cmp dword [esp + 0x1c4], edi
jae 0x4232ad
lea eax, [esp + 0x1b0]
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
cmp esi, ebx
jne 0x423364
call sub.WS2_32.dll_WSAGetLastError
push eax
push str._gethostbyname_:_socket_error__d.__r_n
call fcn.0045e817
add esp, 8
cmp dword [esp + 0x1fc], edi
jb 0x4232e9
mov edx, dword [esp + 0x1e8]
push edx
call fcn.0043e229
add esp, 4
mov esi, 0xf
mov byte [esp + 0x1e8], bl
mov dword [esp + 0x1f8], ebx
mov dword [esp + 0x1fc], esi
cmp dword [esp + 0x1c4], edi
jb 0x42331c
mov eax, dword [esp + 0x1b0]
push eax
call fcn.0043e229
add esp, 4
mov byte [esp + 0x1b0], bl
mov dword [esp + 0x1c0], ebx
mov dword [esp + 0x1c4], esi
cmp dword [esp + 0x218], edi
jb 0x42334a
mov ecx, dword [esp + 0x204]
push ecx
call fcn.0043e229
add esp, 4
mov dword [esp + 0x218], esi
mov dword [esp + 0x214], ebx
mov byte [esp + 0x204], bl
jmp 0x42311b
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x423417
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x1fc], edi
jb 0x42339c
mov eax, dword [esp + 0x1e8]
push eax
call fcn.0043e229
add esp, 4
mov esi, 0xf
mov byte [esp + 0x1e8], bl
mov dword [esp + 0x1f8], ebx
mov dword [esp + 0x1fc], esi
cmp dword [esp + 0x1c4], edi
jb 0x4233cf
mov ecx, dword [esp + 0x1b0]
push ecx
call fcn.0043e229
add esp, 4
mov dword [esp + 0x1c4], esi
mov dword [esp + 0x1c0], ebx
mov byte [esp + 0x1b0], bl
cmp dword [esp + 0x218], edi
jb 0x4233fd
mov edx, dword [esp + 0x204]
push edx
call fcn.0043e229
add esp, 4
mov dword [esp + 0x218], esi
mov dword [esp + 0x214], ebx
mov byte [esp + 0x204], bl
jmp 0x4231c4
mov edx, 2
mov word [esp + 0x2a8], dx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov esi, dword [esp + 0x40]
push esi
mov dword [esp + 0x2b0], edx
mov dword [esp + 0x2b4], ebx
mov dword [esp + 0x2b8], ebx
call sub.WS2_32.dll_htons
mov ebp, dword [esp + 0x2c]
mov word [esp + 0x2aa], ax
push edi
lea eax, [esp + 0x2ac]
push eax
push ebp
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x42349e
mov ebp, dword [esp + 0x1b0]
cmp dword [esp + 0x1c4], edi
jae 0x423481
lea ebp, [esp + 0x1b0]
call sub.WS2_32.dll_WSAGetLastError
push eax
movzx ecx, si
push ecx
push ebp
push str._connectAndSendData_:_connect__s:_d_error__d.__r_n
call fcn.0045e817
add esp, 0x10
jmp 0x4232d0
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4234be
mov dword [esp + 0x1c], 1
jmp 0x4232d0
mov dword [esp + 0x234], 0xf
mov dword [esp + 0x230], ebx
mov byte [esp + 0x220], bl
mov byte [esp + 0x14d0], 0xb
lea ecx, [esp + 0x21c]
cmp dword [esp + 0x1f8], ebx
jne 0x4234f8
push 4
push str.GET
jmp 0x4234ff
push 5
push str.POST
call fcn.0041a2d0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x208]
push ecx
lea ecx, [esp + 0x228]
call fcn.0041a3e0
push 0xb
push str._HTTP_1.1_r_n
lea ecx, [esp + 0x224]
call fcn.0041a2d0
push 6
push str.Host:
lea ecx, [esp + 0x224]
call fcn.0041a2d0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1b4]
push edx
lea ecx, [esp + 0x228]
call fcn.0041a3e0
push 2
push 0x4a3314
lea ecx, [esp + 0x224]
call fcn.0041a2d0
push 0xd
push str.Accept:___r_n
lea ecx, [esp + 0x224]
call fcn.0041a2d0
push 0x73
push str.User_Agent:_Mozilla_5.0__Windows_NT_5.1__AppleWebKit_537.31__KHTML__like_Gecko__Chrome_26.0.1410.64_Safari_537.31_r_n
lea ecx, [esp + 0x224]
call fcn.0041a2d0
push 0x18
push str.Connection:_Keep_Alive_r_n
lea ecx, [esp + 0x224]
call fcn.0041a2d0
push 0x31
push 0x4a33b8
lea ecx, [esp + 0x224]
call fcn.0041a2d0
mov eax, dword [esp + 0x1f8]
cmp eax, ebx
je 0x423600
push eax
lea eax, [esp + 0x460]
push str.Content_Length:__d_r_n
push eax
call fcn.0045dbff
lea eax, [esp + 0x468]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4235e2
sub eax, edx
push eax
lea ecx, [esp + 0x460]
push ecx
lea ecx, [esp + 0x224]
call fcn.0041a2d0
push 2
push 0x4a3314
lea ecx, [esp + 0x224]
call fcn.0041a2d0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1ec]
push edx
lea ecx, [esp + 0x228]
call fcn.0041a3e0
mov eax, dword [esp + 0x220]
cmp dword [esp + 0x234], edi
jae 0x423641
lea eax, [esp + 0x220]
mov ecx, dword [esp + 0x230]
push ebx
push ecx
push eax
push ebp
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x4236be
call sub.WS2_32.dll_WSAGetLastError
push eax
push str._connectAndSendData_:_send_error__d.__r_n
call fcn.0045e817
add esp, 8
cmp dword [esp + 0x234], edi
jb 0x423682
mov edx, dword [esp + 0x220]
push edx
call fcn.0043e229
add esp, 4
mov esi, 0xf
mov dword [esp + 0x234], esi
mov dword [esp + 0x230], ebx
mov byte [esp + 0x220], bl
cmp dword [esp + 0x1fc], edi
jb 0x4233a1
mov eax, dword [esp + 0x1e8]
push eax
call fcn.0043e229
add esp, 4
jmp 0x4233a1
mov edx, dword [esi + 0xc]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4236f8
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x234], edi
jb 0x4236ee
mov eax, dword [esp + 0x220]
push eax
call fcn.0043e229
add esp, 4
mov esi, 0xf
jmp 0x423de4
mov dword [esp + 0x288], 0xf
mov dword [esp + 0x284], ebx
mov byte [esp + 0x274], bl
add esi, 0x64
mov byte [esp + 0x14d0], 0xc
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x42372f
push eax
call fcn.0043e229
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x5c]
add esi, 0x54
cmp eax, ebx
je 0x42374c
push eax
call fcn.0043e229
add esp, 4
mov dword [esi + 8], ebx
push 0xfff
lea eax, [esp + 0x4c9]
push ebx
push eax
mov dword [esi + 4], ebx
mov byte [esp + 0x4d0], bl
call fcn.00462c20
add esp, 0xc
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x30], ebx
lea esp, [esp]
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
push ecx
push ebx
push ebx
lea edx, [esp + 0x78]
push edx
lea eax, [esi + 1]
push eax
mov dword [esp + 0x58], 0xa
mov dword [esp + 0x5c], 0x3e8
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], 1
call sub.WS2_32.dll_select
cmp eax, ebx
jle 0x423d93
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add edi, 0xc
push ebx
push eax
call ebp
test eax, eax
je 0x423fd4
lea ecx, [esp + 0x6c]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x423d93
mov edx, dword [edi]
push ebx
push edx
call ebp
test eax, eax
je 0x423fd4
push 0x1000
lea eax, [esp + 0x4c8]
push ebx
push eax
call fcn.00462c20
add esp, 0xc
push ebx
push 0x1000
lea ecx, [esp + 0x4cc]
push ecx
mov edx, esi
push edx
call sub.WS2_32.dll_recv
mov ebp, eax
cmp ebp, ebx
jle 0x423d93
mov eax, dword [esp + 0x14]
add eax, 0xc
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x423fd4
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
lea edi, [ecx + ebp]
add esi, 0x64
call fcn.004259d0
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esp + 0x34]
push ebp
lea edx, [esp + 0x4c8]
push edx
add eax, ecx
push eax
call fcn.00466330
mov ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [esp + 0x34], edi
mov edi, esi
cmp ecx, ebx
je 0x42389f
fldz
mov edx, dword [ecx]
mov eax, dword [edx + 4]
sub esp, 8
fstp qword [esp]
push ebx
push edi
call eax
mov eax, dword [edi + 0x6c]
mov ecx, dword [esp + 0x34]
lea esi, [eax + ecx]
push str._r_n_r_n
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], esi
call fcn.0045e770
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x423d2e
cmp ebp, esi
jae 0x423d2e
add ebp, 4
cmp dword [edi + 0x7c], 0xffffffff
mov dword [esp + 0x30], ebp
jne 0x42398a
mov edx, dword [esp + 0x28]
push str.HTTP_1.1
push edx
call fcn.0045e770
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x42398a
cmp esi, dword [esp + 0x20]
jae 0x42398a
add esi, 9
push 0x4a3440
push esi
call fcn.0045e770
add esp, 8
cmp eax, ebx
je 0x42398a
cmp eax, dword [esp + 0x20]
jae 0x42398a
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x1d0]
mov dword [esp + 0x1e8], 0xf
mov dword [esp + 0x1e4], ebx
mov byte [esp + 0x1d4], bl
call fcn.00411600
cmp dword [esp + 0x1e0], 0x10
mov eax, dword [esp + 0x1cc]
jae 0x423964
lea eax, [esp + 0x1cc]
push eax
call fcn.0045e80c
add esp, 4
cmp dword [esp + 0x1e0], 0x10
mov dword [edi + 0x7c], eax
jb 0x42398a
mov eax, dword [esp + 0x1cc]
push eax
call fcn.0043e229
add esp, 4
mov eax, dword [edi + 0x7c]
cmp eax, 0x12e
je 0x42399f
cmp eax, 0x12d
jne 0x423a57
cmp dword [esp + 0x284], ebx
jne 0x423fe1
mov ecx, dword [esp + 0x28]
push str.Location:
push ecx
call fcn.0045e770
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x423a57
cmp esi, dword [esp + 0x20]
jae 0x423a57
add esi, 0xa
push 0x4a3314
push esi
call fcn.0045e770
add esp, 8
cmp eax, ebx
je 0x423a57
cmp eax, dword [esp + 0x20]
jae 0x423a57
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x1d0]
mov dword [esp + 0x1e8], 0xf
mov dword [esp + 0x1e4], ebx
mov byte [esp + 0x1d4], bl
call fcn.00411600
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1d0]
push edx
lea ecx, [esp + 0x27c]
mov byte [esp + 0x14dc], 0xd
call fcn.00411250
mov byte [esp + 0x14d0], 0xc
cmp dword [esp + 0x1e0], 0x10
jb 0x423a57
mov eax, dword [esp + 0x1cc]
push eax
call fcn.0043e229
add esp, 4
cmp dword [esp + 0x284], ebx
jne 0x423fe1
cmp dword [esp + 0x18], 0xffffffff
jne 0x423d2e
mov ecx, dword [esp + 0x28]
push str.Content_Length:
push ecx
call fcn.0045e770
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x423b1b
mov edi, dword [esp + 0x20]
cmp esi, edi
jae 0x423b1b
add esi, 0x10
push 0x4a3314
push esi
call fcn.0045e770
add esp, 8
cmp eax, ebx
je 0x423b1b
cmp eax, edi
jae 0x423b1b
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x1d0]
mov dword [esp + 0x1e8], 0xf
mov dword [esp + 0x1e4], ebx
mov byte [esp + 0x1d4], bl
call fcn.00411600
mov eax, dword [esp + 0x1cc]
mov esi, 0x10
cmp dword [esp + 0x1e0], esi
jae 0x423af5
lea eax, [esp + 0x1cc]
push eax
call fcn.0045e80c
add esp, 4
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1e0], esi
jb 0x423b1b
mov edx, dword [esp + 0x1cc]
push edx
call fcn.0043e229
add esp, 4
cmp dword [esp + 0x18], 0xffffffff
jne 0x423d2e
push 0x4a3314
push ebp
call fcn.0045e770
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x423bca
cmp esi, dword [esp + 0x20]
jae 0x423bca
sub eax, ebp
push eax
push ebp
lea ecx, [esp + 0x1d0]
mov dword [esp + 0x1e8], 0xf
mov dword [esp + 0x1e4], ebx
mov byte [esp + 0x1d4], bl
call fcn.00411600
mov eax, dword [esp + 0x1cc]
mov edi, 0x10
cmp dword [esp + 0x1e0], edi
jae 0x423b8d
lea eax, [esp + 0x1cc]
lea ecx, [esp + 0x18]
push ecx
push 0x4a3464
push eax
call fcn.0045e3dd
add esp, 0xc
cmp eax, 1
jne 0x423bb1
add dword [esp + 0x18], 7
add esi, 2
mov dword [esp + 0x30], esi
cmp dword [esp + 0x1e0], edi
jb 0x423bca
mov edx, dword [esp + 0x1cc]
push edx
call fcn.0043e229
add esp, 4
cmp dword [esp + 0x18], 0xffffffff
jne 0x423d2e
mov eax, dword [esp + 0x28]
push str.Connection:
push eax
call fcn.0045e770
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x423d2e
cmp esi, dword [esp + 0x20]
jae 0x423d2e
add esi, 0xc
push 0x4a3314
push esi
call fcn.0045e770
add esp, 8
cmp eax, ebx
je 0x423d2e
cmp eax, dword [esp + 0x20]
jae 0x423d2e
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x1d0]
mov dword [esp + 0x1e8], 0xf
mov dword [esp + 0x1e4], ebx
mov byte [esp + 0x1d4], bl
call fcn.00411600
mov byte [esp + 0x14d0], 0xf
mov eax, dword [esp + 0x1cc]
mov edi, 0x10
cmp dword [esp + 0x1e0], edi
jae 0x423c6b
lea eax, [esp + 0x1cc]
lea ecx, [esp + 0x254]
call fcn.00421ba0
mov byte [esp + 0x14d0], 0x10
xor ecx, ecx
push 5
mov word [esp + 0x58], cx
mov ebp, 7
push str.CLOSE
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
call fcn.00411830
lea eax, [esp + 0x50]
lea esi, [esp + 0x254]
call fcn.00433740
test eax, eax
mov esi, 8
sete byte [esp + 0x27]
cmp dword [esp + 0x68], esi
jb 0x423cd2
mov edx, dword [esp + 0x54]
push edx
call fcn.0043e229
add esp, 4
cmp byte [esp + 0x27], bl
je 0x423cdc
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x26c], esi
jb 0x423cf5
mov eax, dword [esp + 0x258]
push eax
call fcn.0043e229
add esp, 4
xor ecx, ecx
mov byte [esp + 0x14d0], 0xc
mov dword [esp + 0x26c], ebp
mov dword [esp + 0x268], ebx
mov word [esp + 0x258], cx
cmp dword [esp + 0x1e0], edi
jb 0x423d2e
mov edx, dword [esp + 0x1cc]
push edx
call fcn.0043e229
add esp, 4
cmp dword [esp + 0x30], ebx
je 0x423780
mov edi, dword [esp + 0x18]
cmp edi, ebx
jle 0x423780
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov eax, ebp
sub eax, edx
sub ecx, edx
add eax, edi
cmp ecx, eax
jl 0x423780
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x7c], 0xc8
jne 0x423d75
mov dword [esp + 0x3c], 1
lea esi, [eax + 0x54]
call fcn.004259d0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x5c]
push ecx
push ebp
push eax
call fcn.00466330
add esp, 0xc
mov edi, 0x10
cmp dword [esp + 0x288], edi
jb 0x423db1
mov edx, dword [esp + 0x274]
push edx
call fcn.0043e229
add esp, 4
mov esi, 0xf
mov dword [esp + 0x288], esi
mov dword [esp + 0x284], ebx
mov byte [esp + 0x274], bl
cmp dword [esp + 0x234], edi
jb 0x423de4
mov eax, dword [esp + 0x220]
push eax
call fcn.0043e229
add esp, 4
mov byte [esp + 0x220], bl
mov dword [esp + 0x230], ebx
mov dword [esp + 0x234], esi
cmp dword [esp + 0x1fc], edi
jb 0x423e12
mov ecx, dword [esp + 0x1e8]
push ecx
call fcn.0043e229
add esp, 4
mov byte [esp + 0x1e8], bl
mov dword [esp + 0x1f8], ebx
mov dword [esp + 0x1fc], esi
cmp dword [esp + 0x1c4], edi
jb 0x423e40
mov edx, dword [esp + 0x1b0]
push edx
call fcn.0043e229
add esp, 4
mov byte [esp + 0x1b0], bl
mov dword [esp + 0x1c0], ebx
mov dword [esp + 0x1c4], esi
cmp dword [esp + 0x218], edi
jb 0x423e6e
mov eax, dword [esp + 0x204]
push eax
call fcn.0043e229
add esp, 4
mov dword [esp + 0x218], esi
mov esi, 8
mov byte [esp + 0x204], bl
mov dword [esp + 0x214], ebx
cmp dword [esp + 0x1a8], esi
jb 0x423ea1
mov ecx, dword [esp + 0x194]
push ecx
call fcn.0043e229
add esp, 4
xor edx, edx
mov edi, 7
mov word [esp + 0x194], dx
mov dword [esp + 0x1a4], ebx
mov dword [esp + 0x1a8], edi
cmp dword [esp + 0x18c], esi
jb 0x423ed7
mov eax, dword [esp + 0x178]
push eax
call fcn.0043e229
add esp, 4
mov byte [esp + 0x14d0], 1
xor ecx, ecx
mov word [esp + 0x178], cx
mov dword [esp + 0x188], ebx
mov dword [esp + 0x18c], edi
cmp dword [esp + 0x250], esi
jb 0x423f10
mov edx, dword [esp + 0x23c]
push edx
call fcn.0043e229
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x423f37
push eax
call sub.WS2_32.dll_closesocket
cmp eax, 0xffffffff
jne 0x423f37
call sub.WS2_32.dll_WSAGetLastError
push eax
push str._connectAndSendData_:_closesocket_error__d.__r_n
call fcn.0045e817
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
cmp ecx, ebx
je 0x424054
cmp dword [esp + 0x1c], ebx
jne 0x424054
cmp dword [esp + 0x38], ebx
jne 0x422e70
mov edi, dword [esp + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx]
mov esi, eax
lea eax, [esi + 0xc]
push eax
cmp edi, ebx
sete al
movzx eax, al
push eax
push esi
lea eax, [esp + 0x260]
push eax
call edx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x298]
mov byte [esp + 0x14dc], 0x11
call fcn.00411b90
mov ebp, 8
mov byte [esp + 0x14d0], 1
cmp dword [esp + 0x26c], ebp
jb 0x423fba
mov eax, dword [esp + 0x258]
push eax
call fcn.0043e229
add esp, 4
cmp dword [esp + 0x2a0], ebx
je 0x424067
add esi, 0x30
call fcn.00425290
jmp 0x422e70
mov dword [esp + 0x1c], 1
jmp 0x423d93
cmp dword [esp + 0x288], 0x10
mov eax, dword [esp + 0x274]
jae 0x423ff9
lea eax, [esp + 0x274]
lea ecx, [esp + 0x254]
call fcn.00421ba0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x298]
mov byte [esp + 0x14dc], 0xe
call fcn.00411b90
mov byte [esp + 0x14d0], 0xc
cmp dword [esp + 0x26c], 8
jb 0x42403f
mov ecx, dword [esp + 0x258]
push ecx
call fcn.0043e229
add esp, 4
lea esi, [edi + 0x30]
call fcn.00425290
mov dword [esp + 0x38], 1
jmp 0x423d93
cmp dword [esp + 0x38], ebx
jne 0x422e70
mov edi, dword [esp + 0x3c]
mov ebp, 8
cmp dword [esp + 0x2a4], ebp
jb 0x424080
mov ecx, dword [esp + 0x290]
push ecx
call fcn.0043e229
add esp, 4
xor edx, edx
mov dword [esp + 0x2a4], 7
mov dword [esp + 0x2a0], ebx
mov word [esp + 0x290], dx
cmp dword [esp + 0x14f4], ebp
jb 0x4240b5
mov eax, dword [esp + 0x14e0]
push eax
call fcn.0043e229
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x14c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14b0]
xor ecx, esp
call fcn.0045ceb0
add esp, 0x14c0
ret 0x20