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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22234
call fcn.10035de0
mov eax, dword [0x100ba410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2222c], ecx
xor ebx, ebx
lea edi, [ebp - 0x13]
mov byte [ebp - 0x14], bl
xor ecx, ecx
stosd dword es:[edi], eax
inc ecx
push ebx
mov dword [ebp - 0x22228], ecx
mov esi, 0x8000
mov dword [ebp - 0x22224], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x22234], ecx
mov dword [ebp - 0x22220], ecx
lea ecx, [ebp - 0x8118]
push esi
stosd dword es:[edi], eax
push ecx
mov dword [ebp - 0x22230], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x100bb738]
mov edi, dword [sym.imp.WS2_32.dll_recv]
push eax
mov dword [ebp - 0x2221c], eax
call edi
cmp eax, 0xffffffff
jne 0x10012535
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv___failed:_socket_error__d_n
call fcn.10020e18
pop ecx
pop ecx
push dword [0x100bb738]
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.1001e010
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x10012547
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv___failed:_error__d_n
jmp 0x1001250e
cmp eax, esi
jae 0x10012b24
mov byte [ebp + eax - 0x8118], bl
lea eax, [ebp - 0x8118]
push 0x100ac8fc
push eax
call fcn.1001e670
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100125ac
mov ecx, esi
lea eax, [ebp - 0x8118]
sub ecx, eax
cmp ecx, 0x10
jae 0x10012581
push ecx
jmp 0x10012583
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.10021c86
add esp, 0x10
lea eax, [esi + 1]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x8118]
push 0x8000
push eax
call fcn.10021c86
add esp, 0x10
cmp dword [0x100c1c2c], 5
jl 0x100125c8
lea eax, [ebp - 0x8118]
push eax
push str.Handling_connection:____s___n
call fcn.100144ba
pop ecx
pop ecx
mov esi, str._r_n_r_n
lea eax, [ebp - 0x8118]
push esi
push eax
call fcn.1001e670
pop ecx
pop ecx
test eax, eax
je 0x1001261d
push 5
lea eax, [ebp - 0x14]
push str.POST
push eax
call fcn.1004078a
add esp, 0xc
test eax, eax
jne 0x1001268b
lea eax, [ebp - 0x8118]
push esi
push eax
call fcn.1001e670
add eax, 4
push 0x100acef8
push eax
call fcn.1001e670
add esp, 0x10
test eax, eax
jne 0x1001268b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x22234]
push eax
push ebx
push ebx
lea eax, [ebp - 0x22220]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x10012b13
push ebx
push 0x8000
lea eax, [ebp - 0x10118]
push eax
push dword [0x100bb738]
call edi
mov edi, 0x8000
cmp eax, edi
jae 0x10012b24
mov byte [ebp + eax - 0x10118], bl
lea eax, [ebp - 0x10118]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x8118]
push edi
push eax
call fcn.1001f294
add esp, 0x10
jmp 0x10012690
mov edi, 0x8000
lea eax, [ebp - 0x8118]
push str.Authorization:_Digest
push eax
call fcn.1001e670
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100126c8
cmp dword [0x100bb73c], ebx
je 0x100126c8
lea eax, [ebp - 0x8118]
mov bl, 1
push str.Authorization:_Basic
push eax
call fcn.1001e670
pop ecx
pop ecx
mov esi, eax
mov ecx, 0x100c29f0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100126d0
sub ecx, edx
je 0x1001279c
test esi, esi
jne 0x10012722
mov ecx, 0x100c29b0
call fcn.100154be
mov ecx, 0x100c2870
call fcn.100154be
cmp dword [0x100c1c2c], 5
jl 0x1001270b
push str.Requesting_Auth:_no_password
call fcn.100144ba
pop ecx
lea ecx, [ebp - 0x18118]
call fcn.1000b0e6
and dword [ebp - 0x22224], 0
jmp 0x10012a6c
push 0x1fff
lea eax, [ebp - 0x1a117]
mov byte [ebp - 0x1a118], 0
push 0
push eax
call fcn.10023400
add esp, 0xc
push 0x100acf74
push esi
call fcn.1001e670
pop ecx
pop ecx
test eax, eax
je 0x1001286c
xor ecx, ecx
test bl, bl
sete cl
add ecx, 0x15
add esi, ecx
mov ecx, 0x2000
sub eax, esi
cmp eax, ecx
jae 0x1001286c
push eax
push esi
push ecx
lea eax, [ebp - 0x1a118]
push eax
call fcn.10021c86
add esp, 0x10
lea ecx, [ebp - 0x1a118]
test bl, bl
je 0x1001285f
call fcn.1000dc60
test eax, eax
je 0x1001286c
push 0x7fff
lea eax, [ebp - 0x22117]
xor bl, bl
push 0
push eax
mov byte [ebp - 0x22118], bl
call fcn.10023400
add esp, 0xc
lea eax, [ebp - 0x8118]
push str._r_nCookie:
push eax
call fcn.1001e670
pop ecx
pop ecx
test eax, eax
je 0x100128a2
push 0xff
lea esi, [eax + 9]
mov byte [ebp - 0x118], bl
lea eax, [ebp - 0x117]
push 0
push eax
call fcn.10023400
add esp, 0xc
push 0x100acf74
push esi
call fcn.1001e670
pop ecx
pop ecx
sub eax, esi
mov ecx, 0x100
cmp eax, ecx
jae 0x100128a2
push eax
push esi
push ecx
lea eax, [ebp - 0x118]
push eax
call fcn.10021c86
lea eax, [ebp - 0x118]
push str.chtok
push eax
call fcn.1001e670
add esp, 0x18
test eax, eax
je 0x100128a2
mov ecx, 0x100c2730
add eax, 6
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10012883
test dl, dl
je 0x1001285b
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10012883
add eax, 2
add ecx, 2
test dl, dl
jne 0x1001283f
xor eax, eax
jmp 0x10012888
lea edx, [ebp - 0x14]
call fcn.100088c3
jmp 0x10012794
cmp dword [0x100c1c2c], 5
jl 0x1001270b
push str.Requesting_Auth:_BAD_password
jmp 0x10012705
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100128a2
cmp dword [0x100c1c2c], 5
jl 0x100128a0
push str.CookieMaster:_Success
call fcn.100144ba
pop ecx
mov bl, 1
lea eax, [ebp - 0x8118]
push str._r_n_r_n
push eax
call fcn.1001e670
pop ecx
pop ecx
test eax, eax
je 0x100128f7
lea esi, [eax + 4]
push 0x1009eb84
push esi
call fcn.1001e670
pop ecx
pop ecx
test eax, eax
je 0x100128d0
mov byte [eax], 0
push 0x100acf74
push esi
call fcn.1001e670
pop ecx
pop ecx
test eax, eax
je 0x100128e4
mov byte [eax], 0
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x22118]
push edi
push eax
call fcn.10021c86
add esp, 0x10
lea eax, [ebp - 0x8118]
push 0x1009eb84
push eax
call fcn.1001e670
pop ecx
pop ecx
test eax, eax
je 0x10012911
mov byte [eax], 0
lea eax, [ebp - 0x8118]
push 0x100acf74
push eax
call fcn.1001e670
pop ecx
pop ecx
test eax, eax
je 0x1001292b
mov byte [eax], 0
lea eax, [ebp - 0x8118]
push 0x100ac8fc
push eax
call fcn.1001e670
pop ecx
pop ecx
test eax, eax
je 0x10012945
mov byte [eax], 0
push 5
lea eax, [ebp - 0x14]
push str.POST
push eax
call fcn.1004078a
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x8118]
push 0xfffffffffffffffd
pop ecx
push 4
push str._set
push eax
jne 0x10012982
xor esi, esi
test bl, bl
cmove esi, ecx
call fcn.1001fbe0
add esp, 0xc
test eax, eax
je 0x10012991
jmp 0x1001298e
call fcn.1001fbe0
add esp, 0xc
test eax, eax
jne 0x10012995
push 0xfffffffffffffffe
pop esi
test esi, esi
jne 0x10012a11
cmp dword [0x100c1c2c], 5
jl 0x100129b1
lea eax, [ebp - 0x8118]
push eax
push str.DEBUG:_DATA_chopped__now_decoding...___s_
call fcn.100144ba
pop ecx
pop ecx
lea ecx, [ebp - 0x8118]
call fcn.10011bc5
lea ecx, [ebp - 0x22118]
call fcn.10011bc5
cmp dword [0x100c1c2c], 5
jl 0x100129e3
lea eax, [ebp - 0x8118]
push eax
push str.DEBUG:_DATA_IN_is_now___s_
call fcn.100144ba
pop ecx
pop ecx
lea eax, [ebp - 0x22228]
push eax
push dword [ebp - 0x2222c]
lea eax, [ebp - 0x18118]
push ecx
push ecx
push eax
lea edx, [ebp - 0x22118]
lea ecx, [ebp - 0x8118]
call fcn.10008083
mov esi, eax
add esp, 0x14
test esi, esi
jns 0x10012a68
cmp esi, 0xffffffff
jge 0x10012a7e
lea eax, [ebp - 0x18118]
cmp esi, 0xfffffffe
jne 0x10012a2c
push 0xffffffffffffffff
push str.Invalid_Request
jmp 0x10012a38
cmp esi, 0xfffffffd
jne 0x10012a44
push 0xffffffffffffffff
push str.Invalid_Change_Token:_Request_denied
push edi
push eax
call fcn.10021c86
add esp, 0x10
jmp 0x10012a56
push esi
push str.Unknown_Error___d_
push 0xffffffffffffffff
push edi
push eax
call fcn.1001f145
add esp, 0x14
lea esi, [ebp - 0x18118]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10012a5f
jmp 0x10012a7c
test esi, esi
jne 0x10012a80
lea esi, [ebp - 0x18118]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10012a75
sub esi, ecx
test esi, esi
jle 0x10012aec
cmp dword [0x100c1c2c], 5
jl 0x10012a96
push str.Data_back_from_handlewebpages..
call fcn.100144ba
pop ecx
cmp dword [ebp - 0x22224], 0
je 0x10012ad1
mov edx, dword [ebp - 0x22228]
mov ecx, dword [0x100bb738]
call fcn.1000d05d
cmp eax, 0xffffffff
jne 0x10012ad1
cmp dword [0x100c1c2c], 5
jl 0x10012515
push str.send___failed:_SOCKET_ERROR
call fcn.100144ba
jmp 0x10012514
push 0
push esi
lea eax, [ebp - 0x18118]
push eax
push dword [0x100bb738]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10012ab5
cmp dword [0x100c1c2c], 5
jl 0x10012b00
push str.Handling_connection_finished_n
call fcn.100144ba
pop ecx
push 1
push dword [0x100bb738]
call dword [sym.imp.WS2_32.dll_shutdown]
jmp 0x10012515
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv___failed:_Incomplete_message___d__n
jmp 0x1001250e
call fcn.1002219a
int3