Function at 0x1000e51c
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2222c
call fcn.1001c1e0
mov eax, dword [0x1006a098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
push edi
mov dword [ebp - 0x22224], eax
lea edi, [ebp - 0x13]
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x14], bl
inc ecx
stosd dword es:[edi], eax
mov esi, 0x8000
push ebx
mov dword [ebp - 0x22220], ecx
mov dword [ebp - 0x2221c], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x2222c], ecx
mov dword [ebp - 0x22218], ecx
lea ecx, [ebp - 0x8114]
push esi
stosd dword es:[edi], eax
push ecx
mov dword [ebp - 0x22228], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x1006a07c]
mov edi, dword [sym.imp.WS2_32.dll_recv]
push eax
mov dword [ebp - 0x22214], eax
call edi
cmp eax, 0xffffffff
jne 0x1000e5ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv___failed:_socket_error__d_n
call fcn.1001a850
pop ecx
pop ecx
push dword [0x1006a07c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.1001890f
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x1000e5dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv___failed:_error__d_n
jmp 0x1000e5a3
cmp eax, esi
jae 0x1000ebda
mov byte [ebp + eax - 0x8114], bl
lea eax, [ebp - 0x8114]
push 0x1005ad1c
push eax
call fcn.1001b7b0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1000e641
mov ecx, esi
lea eax, [ebp - 0x8114]
sub ecx, eax
cmp ecx, 0x10
jae 0x1000e616
push ecx
jmp 0x1000e618
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.1001b6b8
add esp, 0x10
lea eax, [esi + 1]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x8114]
push 0x8000
push eax
call fcn.1001b6b8
add esp, 0x10
cmp dword [0x1006d34c], 5
jl 0x1000e65d
lea eax, [ebp - 0x8114]
push eax
push str.Handling_connection:____s___n
call fcn.100024d3
pop ecx
pop ecx
mov esi, str._r_n_r_n
lea eax, [ebp - 0x8114]
push esi
push eax
call fcn.1001b7b0
pop ecx
pop ecx
test eax, eax
je 0x1000e6b2
push 5
lea eax, [ebp - 0x14]
push str.POST
push eax
call fcn.1001c20b
add esp, 0xc
test eax, eax
jne 0x1000e720
lea eax, [ebp - 0x8114]
push esi
push eax
call fcn.1001b7b0
add eax, 4
push 0x1005b514
push eax
call fcn.1001b7b0
add esp, 0x10
test eax, eax
jne 0x1000e720
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2222c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x22218]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1000ebc9
push ebx
push 0x8000
lea eax, [ebp - 0x10114]
push eax
push dword [0x1006a07c]
call edi
mov edi, 0x8000
cmp eax, edi
jae 0x1000ebda
mov byte [ebp + eax - 0x10114], bl
lea eax, [ebp - 0x10114]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x8114]
push edi
push eax
call fcn.1001a319
add esp, 0x10
jmp 0x1000e725
mov edi, 0x8000
lea eax, [ebp - 0x8114]
push str.Authorization:_Digest
push eax
call fcn.1001b7b0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1000e75d
cmp dword [0x1006a080], ebx
je 0x1000e75d
lea eax, [ebp - 0x8114]
mov bl, 1
push str.Authorization:_Basic
push eax
call fcn.1001b7b0
pop ecx
pop ecx
mov esi, eax
mov ecx, 0x100701f0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000e765
sub ecx, edx
je 0x1000e83c
test esi, esi
jne 0x1000e7c2
push 0x40
push 0x10070128
call fcn.10012aa7
push 0x40
push 0x10070168
call fcn.10012aa7
add esp, 0x10
cmp dword [0x1006d34c], 5
jl 0x1000e7a7
push str.Requesting_Auth:_no_password
call fcn.100024d3
pop ecx
lea eax, [ebp - 0x18114]
push edi
push eax
call fcn.10015b90
and dword [ebp - 0x2221c], 0
pop ecx
pop ecx
jmp 0x1000eb20
push 0x1fff
lea eax, [ebp - 0x1a113]
mov byte [ebp - 0x1a114], 0
push 0
push eax
call fcn.10019f50
push 0x1005b590
push esi
call fcn.1001b7b0
add esp, 0x14
test eax, eax
je 0x1000e911
xor ecx, ecx
test bl, bl
sete cl
add ecx, 0x15
add esi, ecx
mov ecx, 0x2000
sub eax, esi
cmp eax, ecx
jae 0x1000e911
push eax
push esi
push ecx
lea eax, [ebp - 0x1a114]
push eax
call fcn.1001b6b8
add esp, 0x10
test bl, bl
je 0x1000e8fb
lea eax, [ebp - 0x1a114]
push eax
call fcn.10001587
pop ecx
test eax, eax
je 0x1000e911
push 0x7fff
lea eax, [ebp - 0x22113]
xor bl, bl
push 0
push eax
mov byte [ebp - 0x22114], bl
call fcn.10019f50
lea eax, [ebp - 0x8114]
push str._r_nCookie:
push eax
call fcn.1001b7b0
add esp, 0x14
test eax, eax
je 0x1000e947
push 0xff
lea esi, [eax + 9]
mov byte [ebp - 0x114], bl
lea eax, [ebp - 0x113]
push 0
push eax
call fcn.10019f50
push 0x1005b590
push esi
call fcn.1001b7b0
sub eax, esi
mov ecx, pe_nt_image_headers32
add esp, 0x14
cmp eax, ecx
jae 0x1000e947
push eax
push esi
push ecx
lea eax, [ebp - 0x114]
push eax
call fcn.1001b6b8
lea eax, [ebp - 0x114]
push str.chtok
push eax
call fcn.1001b7b0
add esp, 0x18
test eax, eax
je 0x1000e947
mov ecx, 0x100701a8
add eax, 6
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000e928
test dl, dl
je 0x1000e8f7
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000e928
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000e8db
xor eax, eax
jmp 0x1000e92d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1a114]
push eax
call fcn.100164f9
pop ecx
jmp 0x1000e833
cmp dword [0x1006d34c], 5
jl 0x1000e7a7
push str.Requesting_Auth:_BAD_password
jmp 0x1000e7a1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000e947
cmp dword [0x1006d34c], 5
jl 0x1000e945
push str.CookieMaster:_Success
call fcn.100024d3
pop ecx
mov bl, 1
lea eax, [ebp - 0x8114]
push str._r_n_r_n
push eax
call fcn.1001b7b0
pop ecx
pop ecx
test eax, eax
je 0x1000e99c
lea esi, [eax + 4]
push 0x1004cc7c
push esi
call fcn.1001b7b0
pop ecx
pop ecx
test eax, eax
je 0x1000e975
mov byte [eax], 0
push 0x1005b590
push esi
call fcn.1001b7b0
pop ecx
pop ecx
test eax, eax
je 0x1000e989
mov byte [eax], 0
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x22114]
push edi
push eax
call fcn.1001b6b8
add esp, 0x10
lea eax, [ebp - 0x8114]
push 0x1004cc7c
push eax
call fcn.1001b7b0
pop ecx
pop ecx
test eax, eax
je 0x1000e9b6
mov byte [eax], 0
lea eax, [ebp - 0x8114]
push 0x1005b590
push eax
call fcn.1001b7b0
pop ecx
pop ecx
test eax, eax
je 0x1000e9d0
mov byte [eax], 0
lea eax, [ebp - 0x8114]
push 0x1005ad1c
push eax
call fcn.1001b7b0
pop ecx
pop ecx
test eax, eax
je 0x1000e9ea
mov byte [eax], 0
push 5
lea eax, [ebp - 0x14]
push str.POST
push eax
call fcn.1001c20b
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x8114]
push 0xfffffffffffffffd
pop ecx
push 4
push str._set
push eax
jne 0x1000ea27
xor esi, esi
test bl, bl
cmove esi, ecx
call fcn.1001b640
add esp, 0xc
test eax, eax
je 0x1000ea36
jmp 0x1000ea33
call fcn.1001b640
add esp, 0xc
test eax, eax
jne 0x1000ea3e
push 0xfffffffffffffffe
pop esi
test esi, esi
jne 0x1000eac5
cmp dword [0x1006d34c], 5
jl 0x1000ea5a
lea eax, [ebp - 0x8114]
push eax
push str.DEBUG:_DATA_chopped__now_decoding...___s_
call fcn.100024d3
pop ecx
pop ecx
lea eax, [ebp - 0x8114]
push eax
call fcn.1000858d
lea eax, [ebp - 0x22114]
push eax
call fcn.1000858d
cmp dword [0x1006d34c], 5
pop ecx
pop ecx
jl 0x1000ea90
lea eax, [ebp - 0x8114]
push eax
push str.DEBUG:_DATA_IN_is_now___s_
call fcn.100024d3
pop ecx
pop ecx
lea eax, [ebp - 0x22220]
push eax
push dword [ebp - 0x22224]
lea eax, [ebp - 0x18114]
push dword [0x1006a07c]
push edi
push eax
lea eax, [ebp - 0x22114]
push eax
lea eax, [ebp - 0x8114]
push eax
call fcn.10003118
mov esi, eax
add esp, 0x1c
test esi, esi
jns 0x1000eb1c
cmp esi, 0xffffffff
jge 0x1000eb32
lea eax, [ebp - 0x18114]
cmp esi, 0xfffffffe
jne 0x1000eae0
push 0xffffffffffffffff
push str.Invalid_Request
jmp 0x1000eaec
cmp esi, 0xfffffffd
jne 0x1000eaf8
push 0xffffffffffffffff
push str.Invalid_Change_Token:_Request_denied
push edi
push eax
call fcn.1001b6b8
add esp, 0x10
jmp 0x1000eb0a
push esi
push str.Unknown_Error___d_
push 0xffffffffffffffff
push edi
push eax
call fcn.1001a28e
add esp, 0x14
lea esi, [ebp - 0x18114]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000eb13
jmp 0x1000eb30
test esi, esi
jne 0x1000eb34
lea esi, [ebp - 0x18114]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000eb29
sub esi, ecx
test esi, esi
jle 0x1000eba2
cmp dword [0x1006d34c], 5
jl 0x1000eb4a
push str.Data_back_from_handlewebpages..
call fcn.100024d3
pop ecx
cmp dword [ebp - 0x2221c], 0
je 0x1000eb87
push dword [ebp - 0x22220]
push dword [0x1006a07c]
call fcn.10002c09
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x1000eb87
cmp dword [0x1006d34c], 5
jl 0x1000e5aa
push str.send___failed:_SOCKET_ERROR
call fcn.100024d3
jmp 0x1000e5a9
push 0
push esi
lea eax, [ebp - 0x18114]
push eax
push dword [0x1006a07c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1000eb6b
cmp dword [0x1006d34c], 5
jl 0x1000ebb6
push str.Handling_connection_finished_n
call fcn.100024d3
pop ecx
push 1
push dword [0x1006a07c]
call dword [sym.imp.WS2_32.dll_shutdown]
jmp 0x1000e5aa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv___failed:_Incomplete_message___d__n
jmp 0x1000e5a3
call fcn.1001def7
int3