Function at 0x427820
Capabilities:
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x49e85d
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.00484be0
mov eax, dword [0x4c86e0]
xor eax, esp
mov dword [esp + 0x1020], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c86e0]
xor eax, esp
push eax
lea eax, [esp + 0x1038]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1054]
mov dword [esp + 0x3c], eax
xor edi, edi
cmp dword [esp + 0x1050], edi
mov dword [esp + 0x1040], 1
je 0x427909
lea ecx, [esp + 0x97c]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x427909
push str._r_nWSAStartup
call fcn.00405490
mov byte [esp + 0x1044], 0
mov eax, dword [esp + 0x104c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4278d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1040], 0xffffffff
mov eax, dword [esp + 0x104c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427901
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x428210
mov ebx, dword [esp + 0x1048]
add ebx, 0xfffffff0
push ebx
mov dword [esp + 0x28], ebx
call fcn.00402840
add eax, 0x10
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x1040], 2
call fcn.00461729
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x427949
push 0x80004005
call fcn.00401fb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x1040], 3
call fcn.00461729
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42797b
push 0x80004005
call fcn.00401fb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x104c], 4
mov ebp, dword [esp + 0x1058]
push ecx
push ebp
call fcn.00465e34
lea ecx, [esp + 0x5c]
call sym.qicaihe.exe_public:_void___thiscall_CHttpSocket::constructor_void_
push edi
push edi
push edi
push edi
push edi
mov byte [esp + 0x1054], 5
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push edx
push eax
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x34], edi
call sym.qicaihe.exe_public:_char_const____thiscall_CHttpSocket::FormatRequestHeader_char___char___long_int___char___char___long_int__long_int__int_
cmp dword [esp + 0x964], edi
mov esi, eax
jne 0x427a16
push 0x4aeff8
call dword [sym.imp.WS2_32.dll_getprotobyname]
cmp eax, edi
je 0x427a16
movsx edx, word [eax + 8]
push edx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esp + 0x968], eax
mov eax, dword [esp + 0x18]
push 0x50
push eax
lea ecx, [esp + 0x64]
call sym.qicaihe.exe_public:_int___thiscall_CHttpSocket::Connect_char___int_
cmp dword [esp + 0x964], edi
je 0x427a69
lea eax, [esp + 0x60]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x427a36
push edi
sub eax, edx
mov edx, dword [esp + 0x96c]
push eax
lea ecx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x427a69
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x60]
call sym.qicaihe.exe_public:_char_const____thiscall_CHttpSocket::GetResponseHeader_int__
mov edx, dword [esp + 0x968]
push 4
lea ecx, [esp + 0x18]
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x28], 0x2710
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
call fcn.00405490
add esp, 4
push 0x100
lea eax, [esp + 0xb31]
push edi
push eax
mov byte [esp + 0xb38], 0
call fcn.00483d60
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.0046413b
mov byte [esp + 0x1040], 6
jmp 0x427ad0
push 0x100
lea ecx, [esp + 0xb30]
push ecx
lea ecx, [esp + 0x64]
call sym.qicaihe.exe_public:_int___thiscall_CHttpSocket::GetResponseLine_char___int_
mov esi, eax
cmp esi, edi
jle 0x427b1a
lea edx, [esp + 0xb2c]
push edx
mov byte [esp + esi + 0xb30], 0
call fcn.00405490
mov ecx, dword [esp + 0x34]
add esp, 4
lea eax, [esp + 0xb2c]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.004644a2
cmp esi, 0xffffffff
jne 0x427ad0
cmp dword [esp + 0x30], 3
jge 0x427c13
lea ecx, [esp + 0x28]
mov byte [esp + 0x1040], 5
call fcn.004642ec
mov eax, dword [esp + 0x968]
cmp eax, edi
mov dword [esp + 0x5c], vtable.CHttpSocket.0
je 0x427b59
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, esi
je 0x427b67
mov dword [esp + 0x968], edi
mov dword [esp + 0x964], edi
mov byte [esp + 0x1040], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x427b8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1040], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427bb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1040], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427bdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1040], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427c00
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [esp + 0x1040], 0xffffffff
lea eax, [ebp - 0x10]
jmp 0x4278e8
xor eax, eax
push 0x1e
lea ecx, [esp + 0xb10]
push ecx
push str.Content_Length
lea ecx, [esp + 0x68]
mov byte [esp + 0xb18], 0
mov dword [esp + 0xb19], eax
mov dword [esp + 0xb1d], eax
mov dword [esp + 0xb21], eax
mov dword [esp + 0xb25], eax
mov dword [esp + 0xb29], eax
mov dword [esp + 0xb2d], eax
mov dword [esp + 0xb31], eax
mov byte [esp + 0xb35], al
call sym.qicaihe.exe_public:_int___thiscall_CHttpSocket::GetField_char_const___char___int_
lea ecx, [esp + 0x5c]
call sym.qicaihe.exe_public:_int___thiscall_CHttpSocket::GetServerState_void_
lea edx, [esp + 0xb0c]
push edx
mov esi, eax
call fcn.0047eb89
add esp, 4
cmp esi, 0x12e
mov ebp, eax
jne 0x427fa0
mov eax, dword [esp + 0x30]
xor esi, esi
cmp eax, edi
jle 0x427d2e
mov bl, 7
test esi, esi
jl 0x427f9b
cmp esi, eax
jge 0x427f9b
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + esi*4]
sub eax, 0x10
push eax
call fcn.00402840
lea ecx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], ecx
mov byte [esp + 0x1040], bl
cmp dword [ecx - 0xc], 0
jl 0x427cfb
push 0x4af154
push ecx
call fcn.0047f487
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x427cfb
sub eax, ecx
je 0x427e04
lea eax, [ecx - 0x10]
mov byte [esp + 0x1040], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427d1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add esi, 1
cmp esi, eax
jl 0x427ca6
lea ecx, [esp + 0x28]
mov byte [esp + 0x1040], 5
call fcn.004642ec
mov eax, dword [esp + 0x968]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x5c], vtable.CHttpSocket.0
je 0x427d60
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x427d6e
mov dword [esp + 0x968], esi
mov dword [esp + 0x964], esi
mov byte [esp + 0x1040], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427d96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1040], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427dbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1040], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427de6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x1040], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4278c7
lea ecx, [esp + 0x14]
push ecx
mov eax, 9
call fcn.004108e0
push 0x4addb8
lea eax, [esp + 0x18]
call fcn.00406220
mov edi, eax
mov eax, 0x4addb8
call fcn.00406280
mov esi, dword [esp + 0x3c]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004027c0
mov byte [esp + 0x1040], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427e65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
xor edi, edi
cmp dword [eax - 0xc], edi
jl 0x427e88
push 0x4af160
push eax
call fcn.0047f487
add esp, 8
cmp eax, edi
je 0x427e88
sub eax, dword [esi]
jns 0x427d2e
lea ecx, [esp + 0x28]
mov byte [esp + 0x1040], 5
call fcn.004642ec
mov eax, dword [esp + 0x968]
cmp eax, edi
mov dword [esp + 0x5c], vtable.CHttpSocket.0
je 0x427eb8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x427ec6
mov dword [esp + 0x968], edi
mov dword [esp + 0x964], edi
mov byte [esp + 0x1040], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427eee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1040], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427f16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1040], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427f3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x1040], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427f63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1040], 0xffffffff
mov eax, dword [esp + 0x104c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427f91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x64
jmp 0x428210
jmp fcn.00461650
cmp esi, 0xc8
je 0x428068
lea ecx, [esp + 0x28]
mov byte [esp + 0x1040], 5
call fcn.004642ec
lea ecx, [esp + 0x5c]
call sym.qicaihe.exe_public_virtual:_void___thiscall_CHttpSocket::destructor_void_
mov byte [esp + 0x1040], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427fee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1040], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428016
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1040], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42803e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1040], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4278d3
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x4278d3
lea ecx, [esp + 0x48]
call fcn.00463b0a
push 0
mov byte [esp + 0x1044], 8
mov ecx, dword [esp + 0x24]
push 0x1001
push ecx
lea ecx, [esp + 0x54]
call fcn.00463f76
xor edi, edi
test ebp, ebp
jle 0x42810c
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [ebx]
call ebx
lea edx, [edi + 0x400]
cmp edx, ebp
jl 0x4280bb
mov eax, ebp
sub eax, edi
push eax
lea ecx, [esp + 0xc38]
push ecx
jmp 0x4280c8
push 0x400
lea edx, [esp + 0xc38]
push edx
lea ecx, [esp + 0x64]
call sym.qicaihe.exe_public:_long_int___thiscall_CHttpSocket::Receive_char___long_int_
mov esi, eax
test esi, esi
je 0x4280f8
cmp esi, 0xffffffff
je 0x4280ff
call ebx
push esi
lea eax, [esp + 0xc38]
push eax
lea ecx, [esp + 0x50]
call fcn.00463858
add edi, esi
cmp edi, ebp
jl 0x4280a0
jmp 0x42810c
push 0x4af164
jmp 0x428104
push 0x4af178
call fcn.00405490
add esp, 4
lea ecx, [esp + 0x48]
call fcn.00463aa8
lea ecx, [esp + 0x48]
mov byte [esp + 0x1040], 6
call fcn.00463c06
lea ecx, [esp + 0x28]
mov byte [esp + 0x1040], 5
call fcn.004642ec
lea ecx, [esp + 0x5c]
call sym.qicaihe.exe_public_virtual:_void___thiscall_CHttpSocket::destructor_void_
mov byte [esp + 0x1040], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428168
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1040], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428190
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1040], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4281b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x1040], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4281dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1040], 0xffffffff
mov eax, dword [esp + 0x104c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42820b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1038]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1020]
xor ecx, esp
call fcn.0047e440
add esp, 0x1030
ret