Function at 0x4061b0
Capabilities:
Access peb ldr_data
Check os version
Create thread
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42fb38
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0xa1ac
call fcn.00427e80
mov eax, dword [0x43b3c0]
xor eax, esp
mov dword [esp + 0xa1a8], eax
push ebx
push esi
push edi
mov eax, dword [0x43b3c0]
xor eax, esp
push eax
lea eax, [esp + 0xa1c0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x1bc]
mov ecx, dword [edi + 0xc]
push eax
push ecx
push str.CProxyHttpThread__p_:_Thread_Start__Waiting__d__for_Request___n
mov dword [esp + 0x1c], edi
call fcn.00404f40
xor ebx, ebx
add esp, 0xc
push 0x1c
mov dword [esp + 0x88], 0x1e
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x27], 1
mov byte [esp + 0x1b], bl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x30], ebx
call fcn.00417676
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov dword [esp + 0xa1c8], ebx
cmp esi, ebx
je 0x40626f
lea edx, [esi + 4]
push edx
mov dword [esi], vtable.CWebSocketPool.0
call fcn.004026c0
mov dword [esp + 0x18], esi
jmp 0x406273
mov dword [esp + 0x18], ebx
or eax, 0xffffffff
mov dword [esp + 0xa1c8], eax
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x1bc], eax
je 0x4073a7
lea esp, [esp]
mov esi, dword [esp + 0x18]
push 0
push esi
call fcn.0040c740
test al, al
je 0x4062ab
cmp byte [esp + 0x17], 0
jne 0x406d10
mov edi, dword [esp + 0x2c]
cmp edi, 6
jl 0x4062c4
push 0
push esi
call fcn.0040c740
test al, al
jne 0x406d22
cmp edi, 0xc
jge 0x406d22
mov edi, dword [esp + 0x10]
mov edx, dword [edi + 0x18]
xor ebx, ebx
mov dword [esp + 0xac], ebx
mov eax, dword [edx + 0x1bc]
mov ecx, 1
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ecx
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0x10]
test edx, 0xfffffffc
jle 0x40638f
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sar eax, 2
cmp ebx, eax
jae 0x406336
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0x10]
sar edx, 2
cmp ebx, edx
jb 0x40632e
call fcn.00417b2d
mov ecx, dword [esp + 0xac]
mov eax, dword [esi + 0x10]
mov eax, dword [eax + ebx*4]
jmp 0x406338
xor eax, eax
mov eax, dword [eax]
test eax, eax
je 0x40637d
mov edx, dword [eax + 0x1bc]
cmp edx, 0xffffffff
je 0x40637d
xor eax, eax
test ecx, ecx
jbe 0x40635e
nop
cmp dword [esp + eax*4 + 0xb0], edx
je 0x40635e
inc eax
cmp eax, ecx
jb 0x406350
cmp eax, ecx
jne 0x40637d
cmp ecx, 0x40
jae 0x40637d
mov dword [esp + eax*4 + 0xb0], edx
mov ecx, dword [esp + 0xac]
inc ecx
mov dword [esp + 0xac], ecx
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0x10]
inc ebx
sar edx, 2
cmp ebx, edx
jl 0x406308
lea eax, [esp + 0x84]
push eax
push 0
push 0
lea ecx, [esp + 0xb8]
push ecx
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x406d34
mov edx, dword [edi + 0x18]
test eax, eax
mov eax, dword [edx + 0x1bc]
jne 0x4063dc
mov ecx, dword [edi + 0xc]
push eax
push ecx
push str.CProxyHttpThread__p_:_select__d__pool__timeout_..._n
call fcn.00404f40
add esp, 0xc
inc dword [esp + 0x2c]
jmp 0x406cf7
lea ecx, [esp + 0xac]
push ecx
push eax
mov dword [esp + 0x34], 0
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40695f
push 0x4000
lea edx, [esp + 0x61b8]
push 0
push edx
call fcn.0041a300
mov ecx, dword [edi + 0x18]
add esp, 0xc
lea ebx, [esp + 0x61b4]
call fcn.004088d0
cmp eax, 0xffffffff
je 0x406d5b
xor edi, edi
cmp eax, edi
je 0x406d82
cmp byte [esp + 0x17], 0
jne 0x406da6
push 0x266c
mov byte [esp + 0x27], 1
mov dword [esp + 0x2c], edi
mov dword [esp + 0x54], edi
call fcn.00417676
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0xa1c8], 1
cmp eax, edi
je 0x40647a
mov esi, eax
call fcn.00401b80
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x406480
mov dword [esp + 0x1c], edi
mov esi, edi
push esi
lea ecx, [esp + 0x61b8]
mov dword [esp + 0xa1cc], 0xffffffff
call fcn.00401c40
lea ecx, [esp + 0x9c]
mov eax, esi
call fcn.004021c0
cmp dword [eax + 8], edi
jne 0x4064b2
mov eax, 0x435d2a
jmp 0x4064b5
mov eax, dword [eax + 4]
mov ecx, str.CONNECT
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4064e0
test dl, dl
je 0x4064dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4064e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4064c0
xor eax, eax
jmp 0x4064e5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
mov eax, dword [esp + 0xa0]
sete bl
mov dword [esp + 0x9c], vtable.CPureString.0
cmp eax, edi
je 0x406509
push eax
call fcn.004174eb
add esp, 4
test bl, bl
je 0x406515
mov eax, dword [esp + 0x10]
mov byte [eax + 0x1c], 1
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x1c], 1
je 0x406db8
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x54]
mov eax, esi
call fcn.004021e0
mov dword [esp + 0xa1c8], 5
mov edi, dword [esp + 0x5c]
sub esp, 0x10
xor eax, eax
mov ebx, esp
mov dword [esp + 0x34], esp
mov dword [ebx], vtable.CPureString.0
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
cmp edi, eax
je 0x4065d7
lea esi, [edi + 1]
mov dword [esp + 0x34], esi
test esi, esi
jle 0x4065bb
fild dword [esp + 0x34]
fmul qword [0x437860]
call fcn.0042bd30
cmp eax, 1
jg 0x406583
mov eax, 1
add esi, eax
push esi
call fcn.00417676
mov edx, dword [ebx + 0xc]
add esp, 4
mov edi, eax
mov eax, dword [ebx + 4]
push edx
push eax
push edi
call fcn.00419f90
mov eax, dword [ebx + 4]
add esp, 0xc
test eax, eax
je 0x4065b1
push eax
call fcn.004174eb
add esp, 4
mov dword [ebx + 4], edi
mov edi, dword [esp + 0x6c]
mov dword [ebx + 0xc], esi
mov ecx, dword [esp + 0x68]
mov edx, dword [ebx + 4]
lea eax, [edi + 1]
push eax
push ecx
push edx
call fcn.00419f90
mov esi, dword [esp + 0x38]
add esp, 0xc
mov dword [ebx + 8], edi
mov ecx, dword [esp + 0x28]
call fcn.0040c5b0
test eax, eax
jne 0x40672a
lea ecx, [esp + 0x40]
mov eax, esi
call fcn.00402200
lea ecx, [esp + 0x74]
mov eax, esi
mov byte [esp + 0xa1c8], 6
call fcn.00402220
mov dword [esp + 0x24], vtable.CTCPClient.0
mov byte [esp + 0xa1c8], 8
cmp dword [esp + 0x7c], 0
mov eax, 0x435d2a
je 0x406626
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x48]
mov esi, 0x435d2a
test ebx, ebx
je 0x406637
mov esi, dword [esp + 0x44]
push eax
call fcn.004175ec
add esp, 4
push eax
mov ecx, esi
call fcn.0040c0a0
mov esi, eax
test esi, esi
je 0x407071
cmp dword [esi + 0x1bc], 0xffffffff
je 0x407071
test edi, edi
mov edi, 0x435d2a
je 0x40666c
mov edi, dword [esp + 0x58]
push 0x100
lea ebx, [esi + 0x8c]
push 0
push ebx
call fcn.0041a300
add esp, 0xc
push 0xff
push 0
push edi
push ebx
call fcn.00417600
push 8
call fcn.00417676
add esp, 0x14
mov dword [eax], esi
mov byte [eax + 4], 0
push eax
mov eax, dword [esp + 0x1c]
call fcn.0040c6d0
cmp dword [esp + 0x7c], 0
mov eax, dword [esi + 0x1bc]
mov edx, 0x435d2a
je 0x4066c0
mov edx, dword [esp + 0x78]
cmp dword [esp + 0x48], 0
mov ebx, dword [esp + 0x44]
mov ecx, 0x435d2a
je 0x4066d2
mov ecx, ebx
push eax
mov eax, dword [esp + 0x14]
push edx
push ecx
mov ecx, dword [eax + 0xc]
push ecx
push str.CProxyHttpThread__p_:_Connect__s:_s__Success__Handle:_d._n
call fcn.00404f40
mov byte [esp + 0xa1dc], 6
mov eax, dword [esp + 0x8c]
add esp, 0x14
mov edi, vtable.CPureString.0
mov dword [esp + 0x74], edi
test eax, eax
je 0x40670f
push eax
call fcn.004174eb
add esp, 4
mov byte [esp + 0xa1c8], 5
mov dword [esp + 0x40], edi
test ebx, ebx
je 0x40674f
push ebx
call fcn.004174eb
add esp, 4
jmp 0x40674f
mov esi, dword [eax]
mov eax, 0x435d2a
test edi, edi
je 0x406739
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [edx + 0xc]
push eax
push str.CProxyHttpThread__p_:_Find_the_exist_Connection__s_._n
call fcn.00404f40
add esp, 0xc
mov edi, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x68]
call fcn.00402280
mov byte [esp + 0xa1c8], 9
mov ebx, dword [esp + 0x6c]
mov eax, 0x435d2a
test ebx, ebx
je 0x406776
mov eax, dword [esp + 0x68]
mov edx, dword [esi + 0x1b8]
lea ecx, [esi + 0x1b8]
push ebx
push eax
mov eax, dword [edx + 0x1c]
call eax
cmp eax, 0xffffffff
je 0x40711e
mov edx, 0x435d2a
test ebx, ebx
je 0x40679f
mov edx, dword [esp + 0x68]
mov ecx, dword [esi + 0x1bc]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xc]
push edx
push str.CProxyHttpThread__p_:_pWebSocket__d__Send_HttpHeader_Len:_5d__to_WebServer_n_s
call fcn.00404f40
add esp, 0x14
lea ecx, [esp + 0x30]
mov eax, edi
call fcn.00402240
mov byte [esp + 0xa1c8], 0xa
cmp dword [esp + 0x38], 0
mov ebx, dword [esp + 0x34]
mov eax, 0x435d2a
je 0x4067e2
mov eax, ebx
push eax
call fcn.004175ec
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
jg 0x406865
test edi, edi
je 0x406801
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov esi, vtable.CPureString.0
mov byte [esp + 0xa1c8], 9
mov dword [esp + 0x30], esi
test ebx, ebx
je 0x40681f
push ebx
call fcn.004174eb
add esp, 4
mov byte [esp + 0xa1c8], 5
mov eax, dword [esp + 0x68]
mov dword [esp + 0x64], esi
test eax, eax
je 0x40683c
push eax
call fcn.004174eb
add esp, 4
mov dword [esp + 0xa1c8], 0xffffffff
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], esi
test eax, eax
je 0x406cf7
push eax
call fcn.004174eb
add esp, 4
jmp 0x406cf7
push 0x3fff
lea eax, [esp + 0x1b9]
push 0
push eax
mov byte [esp + 0x1c0], 0
call fcn.0041a300
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x18]
add esp, 0xc
lea ebx, [esp + 0x1b4]
call fcn.004088d0
cmp eax, 0xffffffff
je 0x40718d
test eax, eax
je 0x4071e3
mov edx, dword [esi + 0x1b8]
mov edx, dword [edx + 0x1c]
lea ecx, [esi + 0x1b8]
push eax
mov eax, ebx
push eax
call edx
mov esi, dword [esi + 0x1bc]
or ebx, 0xffffffff
cmp eax, ebx
je 0x407204
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x1b4]
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
push esi
push ecx
push str.CProxyHttpThread__p_:_pWebSocket__d__Send_Content__5d:_5d__to_WebServer_n_s_n
call fcn.00404f40
add esp, 0x18
test edi, edi
je 0x406900
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov byte [esp + 0xa1c8], 9
mov eax, dword [esp + 0x34]
mov esi, vtable.CPureString.0
mov dword [esp + 0x30], esi
test eax, eax
je 0x406922
push eax
call fcn.004174eb
add esp, 4
mov byte [esp + 0xa1c8], 5
mov eax, dword [esp + 0x68]
mov dword [esp + 0x64], esi
test eax, eax
je 0x40693f
push eax
call fcn.004174eb
add esp, 4
mov dword [esp + 0xa1c8], ebx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], esi
test eax, eax
je 0x40695b
push eax
call fcn.004174eb
add esp, 4
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov dword [esp + 0x24], 0
test ecx, 0xfffffffc
jle 0x406cf7
lea esp, [esp]
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0x10]
mov edi, dword [esp + 0x24]
sar edx, 2
cmp edi, edx
jae 0x4069af
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sar eax, 2
cmp edi, eax
jb 0x4069a7
call fcn.00417b2d
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + edi*4]
jmp 0x4069b1
xor eax, eax
mov esi, dword [eax]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x406cd9
mov eax, dword [esi + 0x1bc]
cmp eax, 0xffffffff
je 0x406cd9
lea edx, [esp + 0xac]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x406cd9
cmp byte [esp + 0x23], 0
push 0x1fff
push 0
je 0x406bbf
lea eax, [esp + 0x1bd]
push eax
mov byte [esp + 0x1c0], 0
call fcn.0041a300
mov edx, dword [esi + 0x1b8]
mov edx, dword [edx + 0x18]
add esp, 0xc
lea edi, [esi + 0x1b8]
push 0x2000
lea eax, [esp + 0x1b8]
push eax
mov ecx, edi
call edx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40726d
test ebx, ebx
jne 0x406a90
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ebx
push eax
call fcn.0040c740
test al, al
jne 0x407295
mov ecx, dword [esi + 0x1bc]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
push ecx
push eax
push str.CProxyHttpThread__p_:_Closed_pWebSocket__d___set_close_flag_as_true__then_wait_for_other_responses._n
call fcn.00404f40
add esp, 0xc
cmp dword [esi + 0x1e0], 1
je 0x406a82
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
mov byte [esp + 0x17], 1
mov byte [ebx + 4], 1
jmp 0x406cd9
mov esi, dword [esi + 0x1bc]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x1b4]
push ecx
push ebx
push esi
push eax
push str.CProxyHttpThread__p_:_pWebSocket__d__Recv_HttpHeader_Len:_5d__from_WebServer_n_s
call fcn.00404f40
add esp, 0x14
push 0x266c
mov byte [esp + 0x27], 0
call fcn.00417676
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0xa1c8], 0xb
test eax, eax
je 0x406ae5
mov esi, eax
call fcn.00401b80
mov esi, eax
jmp 0x406ae7
xor esi, esi
push esi
lea ecx, [esp + 0x1b8]
mov dword [esp + 0xa1cc], 0xffffffff
call fcn.00401c40
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x18]
push edx
mov edi, ebx
lea ecx, [esp + 0x1b8]
call fcn.00408b10
or ebx, 0xffffffff
cmp eax, ebx
je 0x4072b6
lea ecx, [esp + 0x8c]
mov eax, esi
call fcn.00402240
mov dword [esp + 0xa1c8], 0xc
cmp dword [esp + 0x94], 0
mov edi, dword [esp + 0x90]
mov eax, 0x435d2a
je 0x406b51
mov eax, edi
push eax
call fcn.004175ec
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
jne 0x406b89
cmp byte [esp + 0x17], al
jne 0x4072f3
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
push ecx
push str.CProxyHttpThread__p_:_Content_Length:0_found__set_complete_flag_as_true_n
call fcn.00404f40
mov edx, dword [esp + 0x24]
add esp, 8
mov byte [edx + 4], 1
test esi, esi
je 0x406b97
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0xa1c8], ebx
mov dword [esp + 0x8c], vtable.CPureString.0
test edi, edi
je 0x406cd9
push edi
call fcn.004174eb
add esp, 4
jmp 0x406cd9
lea eax, [esp + 0x41bd]
push eax
mov byte [esp + 0x41c0], 0
call fcn.0041a300
mov edx, dword [esi + 0x1b8]
mov edx, dword [edx + 8]
add esp, 0xc
lea edi, [esi + 0x1b8]
push 0x2000
lea eax, [esp + 0x41b8]
push eax
mov ecx, edi
call edx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407330
test ebx, ebx
jne 0x406c6b
mov eax, dword [esi + 0x1bc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx + 0xc]
push esi
push eax
push ecx
push str.CProxyHttpThread__p_:_Closed_pWebSocket__d___p__n
call fcn.00404f40
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add esp, 0x10
push edx
push eax
call fcn.0040c740
test al, al
jne 0x407356
mov ecx, dword [esi + 0x1bc]
mov edx, dword [ebx + 0xc]
push ecx
push edx
push str.CProxyHttpThread__p_:_Closed_pWebSocket__d___set_close_flag_as_true__then_wait_for_other_responses._n
call fcn.00404f40
add esp, 0xc
cmp dword [esi + 0x1e0], 1
je 0x406c64
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
mov ecx, edi
call edx
mov byte [esp + 0x17], 1
jmp 0x406cd1
mov ecx, dword [esi + 0x1bc]
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
push ebx
push ecx
push edx
push str.CProxyHttpThread__p_:_pWebSocket__d__Recv_Content_Len:_5d__from_WebServer__Data_Ignore_...___n
call fcn.00404f40
mov eax, dword [esi + 0x18]
add esp, 0x10
push eax
mov edi, ebx
lea ecx, [esp + 0x41b8]
call fcn.00408b10
cmp eax, 0xffffffff
je 0x407370
mov ecx, dword [esp + 0x50]
add ecx, eax
mov dword [esp + 0x50], ecx
cmp ecx, dword [esp + 0x28]
jne 0x406cd9
cmp byte [esp + 0x17], 0
jne 0x407394
mov ecx, esi
mov edx, dword [ecx + 0xc]
push edx
push str.CProxyHttpThread__p_:_set_complete_LEN__flag_as_true__then_wait_for_keep_alive_request._n
call fcn.00404f40
add esp, 8
mov eax, dword [esp + 0x1c]
mov byte [eax + 4], 1
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x14]
sub edx, dword [ecx + 0x10]
mov eax, dword [esp + 0x24]
inc eax
sar edx, 2
cmp eax, edx
mov dword [esp + 0x24], eax
jl 0x406980
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x18]
cmp dword [ecx + 0x1bc], 0xffffffff
jne 0x406290
jmp 0x4073a7
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
push eax
push str.CProxyHttpThread__p_:_complete_and_close_flag_are_true__goto_ThreadExit._n
jmp 0x40739f
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
push edx
push str.CProxyHttpThread__p_:_timeout_and_close_flag_are_true__goto_ThreadExit._n
jmp 0x40739f
mov eax, dword [edi + 0x18]
mov esi, dword [eax + 0x1bc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0xc]
push eax
push esi
push ecx
push str.CProxyHttpThread__p_:_select__d__pool__SOCKET_ERROR___d____n
call fcn.00404f40
add esp, 0x10
jmp 0x4073a7
mov edx, dword [edi + 0x18]
mov esi, dword [edx + 0x1bc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [edi + 0xc]
push esi
push eax
push str.CProxyHttpThread__p_:_m_pReqSocket__RecvEx__d__SOCKET_ERROR___d_n
call fcn.00404f40
add esp, 0x10
jmp 0x4073a7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x1bc]
mov eax, dword [eax + 0xc]
push edx
push eax
push str.CProxyHttpThread__p_:_Closed_m_pReqSocket__d__n
call fcn.00404f40
add esp, 0xc
jmp 0x4073a7
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
push edx
push str.CProxyHttpThread__p_:_close_flag_is_true__cancel_new_request__goto_ThreadExit._n
jmp 0x40739f
mov dword [esp + 0x28], vtable.CTCPClient.0
lea ecx, [esp + 0x40]
mov eax, esi
mov dword [esp + 0xa1c8], 2
call fcn.00402200
lea ecx, [esp + 0x30]
mov eax, esi
mov byte [esp + 0xa1c8], 3
call fcn.00402220
mov byte [esp + 0xa1c8], 4
mov esi, dword [esp + 0x38]
mov eax, 0x435d2a
cmp esi, edi
je 0x406e02
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x48]
mov ebx, 0x435d2a
test edi, edi
je 0x406e13
mov ebx, dword [esp + 0x44]
push eax
call fcn.004175ec
add esp, 4
push eax
mov ecx, ebx
call fcn.0040c0a0
mov dword [esp + 0x24], eax
test eax, eax
je 0x406fdc
mov edx, dword [eax + 0x1bc]
cmp edx, 0xffffffff
je 0x406fdc
mov ecx, 0x435d2a
test esi, esi
je 0x406e4c
mov ecx, dword [esp + 0x34]
mov eax, 0x435d2a
test edi, edi
je 0x406e59
mov eax, dword [esp + 0x44]
push edx
push ecx
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
push ecx
push str.CProxyHttpThread__p_:_Connect__s:_s__Success__Handle:_d._n
call fcn.00404f40
mov eax, str.HTTP_1.1_200_Connection_Established_r_n_r_n
add esp, 0x14
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406e80
sub eax, edx
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x18]
push ecx
mov edi, eax
mov ecx, str.HTTP_1.1_200_Connection_Established_r_n_r_n
call fcn.00408b10
cmp eax, 0xffffffff
jne 0x406f0b
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + 0x18]
mov edi, dword [edx + 0x1bc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebx + 0xc]
push edi
push eax
push str.CProxyHttpThread__p_:_pWebSocket__SendEx__d__SOCKET_ERROR___d_n
call fcn.00404f40
mov ecx, dword [esp + 0x2c]
add esp, 0x10
test ecx, ecx
je 0x406ed8
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov byte [esp + 0xa1c8], 3
mov eax, dword [esp + 0x34]
test eax, eax
je 0x406ef1
push eax
call fcn.004174eb
add esp, 4
mov byte [esp + 0xa1c8], 2
mov eax, dword [esp + 0x44]
test eax, eax
je 0x407061
push eax
jmp 0x407059
push 0x20
call fcn.00417676
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
je 0x406f81
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi], vtable.CSocketPairThread.0
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov eax, dword [ecx + 0x18]
lea esi, [edi + 0x10]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
mov eax, dword [ecx + 0xc]
push eax
push str.CProxyHttpThread__p_:_Start_CONNECT_Proxy_..._n
mov dword [0x43d770], ebx
call fcn.00404f40
add esp, 8
push ebx
push ebx
push ebx
push ebx
mov byte [edi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push ebx
push edi
push 0x40c350
push ebx
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x406f91
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x406fa1
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov byte [esp + 0xa1c8], 3
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x406fba
push eax
call fcn.004174eb
add esp, 4
mov byte [esp + 0xa1c8], 2
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x4074c1
push eax
call fcn.004174eb
add esp, 4
jmp 0x4074c1
mov ebx, dword [esp + 0x34]
mov ecx, 0x435d2a
test esi, esi
je 0x406feb
mov ecx, ebx
test edi, edi
mov edi, dword [esp + 0x44]
mov eax, 0x435d2a
je 0x406ffa
mov eax, edi
mov esi, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
push str.CProxyHttpThread__p_:_Connect__s:_s__Failed._n
call fcn.00404f40
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x61c4]
push edx
push eax
push str.CProxyHttpThread__p_:_HTTP_Request_Failed:_n_s_n
call fcn.00404f40
mov ecx, dword [esp + 0x38]
add esp, 0x1c
test ecx, ecx
je 0x407037
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov byte [esp + 0xa1c8], 3
test ebx, ebx
je 0x40704c
push ebx
call fcn.004174eb
add esp, 4
mov byte [esp + 0xa1c8], 2
test edi, edi
je 0x407061
push edi
call fcn.004174eb
add esp, 4
mov dword [esp + 0xa1c8], 0xffffffff
jmp 0x4073a7
cmp dword [esp + 0x7c], 0
mov edi, dword [esp + 0x78]
mov ecx, 0x435d2a
je 0x407083
mov ecx, edi
test ebx, ebx
mov ebx, dword [esp + 0x44]
mov eax, 0x435d2a
je 0x407092
mov eax, ebx
mov esi, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
push str.CProxyHttpThread__p_:_Connect__s:_s__Failed._n
call fcn.00404f40
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x61c4]
push edx
push eax
push str.CProxyHttpThread__p_:_HTTP_Request_Failed:_n_s_n
call fcn.00404f40
mov ecx, dword [esp + 0x38]
add esp, 0x1c
test ecx, ecx
je 0x4070cf
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov byte [esp + 0xa1c8], 6
test edi, edi
je 0x4070e4
push edi
call fcn.004174eb
add esp, 4
mov byte [esp + 0xa1c8], 5
test ebx, ebx
je 0x4070f9
push ebx
call fcn.004174eb
add esp, 4
mov dword [esp + 0xa1c8], 0xffffffff
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4073a7
push eax
call fcn.004174eb
add esp, 4
jmp 0x4073a7
mov esi, dword [esi + 0x1bc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
push eax
push esi
push edx
push str.CProxyHttpThread__p_:_pWebSocket__SendFull__d__SOCKET_ERROR___d_n
call fcn.00404f40
add esp, 0x10
test edi, edi
je 0x40714f
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov byte [esp + 0xa1c8], 5
mov eax, dword [esp + 0x68]
test eax, eax
je 0x407168
push eax
call fcn.004174eb
add esp, 4
mov dword [esp + 0xa1c8], 0xffffffff
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4073a7
push eax
call fcn.004174eb
add esp, 4
jmp 0x4073a7
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x18]
mov esi, dword [eax + 0x1bc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0xc]
push eax
push esi
push ecx
push str.CProxyHttpThread__p_:_m_pReqSocket__RecvEx__d__SOCKET_ERROR___d_n
call fcn.00404f40
add esp, 0x10
test edi, edi
je 0x4071c1
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov byte [esp + 0xa1c8], 9
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40714f
push eax
call fcn.004174eb
add esp, 4
jmp 0x40714f
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x1bc]
push eax
mov eax, dword [ecx + 0xc]
push eax
push str.CProxyHttpThread__p_:_Closed_m_pReqSocket__d__n
call fcn.00404f40
add esp, 0xc
jmp 0x4071b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
push eax
push esi
push edx
push str.CProxyHttpThread__p_:_pWebSocket__SendFull__d__SOCKET_ERROR___d_n
call fcn.00404f40
add esp, 0x10
test edi, edi
je 0x40722f
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov byte [esp + 0xa1c8], 9
mov eax, dword [esp + 0x34]
test eax, eax
je 0x407248
push eax
call fcn.004174eb
add esp, 4
mov byte [esp + 0xa1c8], 5
mov eax, dword [esp + 0x68]
test eax, eax
je 0x407261
push eax
call fcn.004174eb
add esp, 4
mov dword [esp + 0xa1c8], ebx
jmp 0x407104
mov esi, dword [esi + 0x1bc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
push esi
push ecx
push str.CProxyHttpThread__p_:_pWebSocket__RecvCmd__d__SOCKET_ERROR___d_n
call fcn.00404f40
add esp, 0x10
jmp 0x4073a7
mov edx, dword [esi + 0x1bc]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
push edx
push ecx
push str.CProxyHttpThread__p_:_Closed_pWebSocket__d___complete_flag_is_true__goto_ThreadExit._n
call fcn.00404f40
add esp, 0xc
jmp 0x4073a7
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + 0x18]
mov edi, dword [edx + 0x1bc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebx + 0xc]
push edi
push eax
push str.CProxyHttpThread__p_:_m_pReqSocket__SendEx__d__SOCKET_ERROR___d_n
call fcn.00404f40
add esp, 0x10
test esi, esi
je 0x4073a7
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
jmp 0x4073a7
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
push edx
push str.CProxyHttpThread__p_:_Content_Length:0_found__close_flag_is_true__goto_ThreadExit._n
call fcn.00404f40
add esp, 8
test esi, esi
je 0x407316
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0xa1c8], ebx
test edi, edi
je 0x4073a7
push edi
call fcn.004174eb
add esp, 4
jmp 0x4073a7
mov edi, dword [esi + 0x1bc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
push esi
push edi
push ecx
push str.CProxyHttpThread__p_:_pWebSocket__Recv__d___p__SOCKET_ERROR___d_n
call fcn.00404f40
add esp, 0x14
jmp 0x4073a7
mov edx, dword [esi + 0x1bc]
mov eax, dword [ebx + 0xc]
push edx
push eax
push str.CProxyHttpThread__p_:_Closed_pWebSocket__d___complete_flag_is_true__goto_ThreadExit._n
call fcn.00404f40
add esp, 0xc
jmp 0x4073a7
mov ecx, dword [esi + 0x18]
mov edi, dword [ecx + 0x1bc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0xc]
push eax
push edi
push edx
push str.CProxyHttpThread__p_:_m_pReqSocket__SendEx__d__SOCKET_ERROR___d_n
call fcn.00404f40
add esp, 0x10
jmp 0x4073a7
mov eax, esi
mov ecx, dword [eax + 0xc]
push ecx
push str.CProxyHttpThread__p_:_close_flag_is_true__recv_content_LEN__complete_then_goto_ThreadExit._n
call fcn.00404f40
add esp, 8
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x18]
xor edi, edi
cmp eax, edi
je 0x4073d7
cmp dword [eax + 0x1bc], 0xffffffff
je 0x4073d7
cmp dword [eax + 0x1e0], 1
je 0x4073d7
mov edx, dword [eax + 0x1b8]
lea ecx, [eax + 0x1b8]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [esi + 0x18]
cmp ecx, edi
je 0x4073e6
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x18], edi
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
test ecx, 0xfffffffc
jle 0x40749c
nop
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x14]
sub edx, dword [eax + 0x10]
sar edx, 2
cmp edi, edx
jae 0x40742f
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
sar ecx, 2
cmp edi, ecx
jb 0x407423
call fcn.00417b2d
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x10]
mov ebx, dword [eax + edi*4]
jmp 0x407431
xor ebx, ebx
mov esi, dword [ebx]
test esi, esi
je 0x40747d
mov eax, dword [esi + 0x1bc]
cmp eax, 0xffffffff
je 0x407473
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
push esi
push eax
push edx
push str.CProxyHttpThread__p_:_Closed_pWebSocket__d___p__before_Exit_n
call fcn.00404f40
add esp, 0x10
cmp dword [esi + 0x1e0], 1
je 0x407473
mov eax, dword [esi + 0x1b8]
mov edx, dword [eax + 0x20]
lea ecx, [esi + 0x1b8]
call edx
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebx
call fcn.004174eb
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
inc edi
sar ecx, 2
add esp, 4
cmp edi, ecx
jl 0x407400
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4074ac
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
push edx
push str.CProxyHttpThread__p_:_Thread_Exit__Communication_is_Over___n
call fcn.00404f40
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0xa1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa1a8]
xor ecx, esp
call fcn.004174dc
mov esp, ebp
pop ebp
ret