Function at 0x1000a4f0
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x10028d90
mov eax, dword fs:[0]
push eax
mov eax, 0x221c
call fcn.1001b040
mov eax, dword [0x10037d20]
xor eax, esp
mov dword [esp + 0x2218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10037d20]
xor eax, esp
push eax
lea eax, [esp + 0x2230]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2240]
xor ebp, ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2238], ebp
call fcn.1000cbe1
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x1000a561
push 0x80004005
call fcn.10001a20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x2238], 1
call fcn.1000cbe1
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x1000a593
push 0x80004005
call fcn.10001a20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x2238], 2
call fcn.1000cbe1
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x1000a5c5
push 0x80004005
call fcn.10001a20
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 + 0x2238], 3
call fcn.1000cbe1
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x1000a5f7
push 0x80004005
call fcn.10001a20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push ebp
push 0x1002e988
lea ecx, [esp + 0x38]
mov byte [esp + 0x2240], 4
call fcn.10001740
mov eax, dword [esp + 0x2248]
push ebp
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.100013f0
add esp, 4
lea ecx, [esp + 0x2c]
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.1000ae10
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x223c], 5
call fcn.100036d0
mov byte [esp + 0x2238], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000a682
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.1000cbe1
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x1000a69c
push 0x80004005
call fcn.10001a20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x2254], 6
mov dword [esp + 0x3c], esp
push ecx
lea ecx, [esp + 0x2264]
call fcn.10003f70
lea edx, [esp + 0x30]
push edx
call fcn.1000b0f0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x223c], 7
call fcn.100036d0
mov byte [esp + 0x2238], 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 0x1000a70e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x15c]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebp
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea edx, [esp + 0x34]
push edx
mov esi, eax
push 0x8004667e
push esi
mov dword [esp + 0x40], 1
call edi
mov ecx, dword [esp + 0x28]
mov eax, 2
push ecx
mov word [esp + 0x150], ax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebp
je 0x1000a773
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x150], ecx
push 0x50
call dword [sym.imp.WS2_32.dll_ntohs]
push 0x10
lea edx, [esp + 0x150]
push edx
push esi
mov word [esp + 0x15a], ax
mov dword [esp + 0x48], 0xc
mov dword [esp + 0x4c], ebp
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000a92a
lea eax, [esp + 0x3c]
push eax
push ebp
lea ecx, [esp + 0x4c]
push ecx
push ebp
push 0xffffffffffffffff
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x1000a8ff
mov esi, dword [esp + 0x30]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], ebp
lea ecx, [esi + 0xc]
jl 0x1000a7fb
cmp eax, dword [esi]
jne 0x1000a7fb
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x1000a830
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebp
jne 0x1000a814
call fcn.10001950
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
lea ecx, [esi + 0x10]
push ecx
push eax
lea edx, [edi + 0x10]
push edx
call fcn.100179cf
add esp, 0x10
lea eax, [edi + 0x10]
mov edi, dword [esp + 0x2c]
mov dword [edi], eax
mov byte [esp + 0x2238], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a861
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2238], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a889
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2238], 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 0x1000a8b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x2238], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a8d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2238], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000adce
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x1000adce
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x1007
push 0xffff
push esi
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x28], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
lea edx, [esp + 0x34]
push edx
push 0x8004667e
push esi
mov dword [esp + 0x40], 0
call edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x3c]
push eax
push 0x1005
push 0xffff
push esi
mov dword [esp + 0x4c], 0x7d0
call edi
push 4
lea ecx, [esp + 0x3c]
push ecx
push 0x1006
push 0xffff
push esi
call edi
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
lea ebp, [eax - 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x14], ebp
cmp ebp, edi
je 0x1000a9df
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x1000a9cd
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x1000a9cd
push edx
call fcn.100013f0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x1000a9c0
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x1c]
jmp 0x1000a9db
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.10001740
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
push 0
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000ab31
mov esi, dword [esp + 0x30]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x1000aa27
cmp eax, dword [esi]
jne 0x1000aa27
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x1000aa5c
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x1000aa40
call fcn.10001950
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
lea ecx, [esi + 0x10]
push ecx
push eax
lea edx, [edi + 0x10]
push edx
call fcn.100179cf
add esp, 0x10
mov eax, dword [esp + 0x2c]
add edi, 0x10
mov dword [eax], edi
mov byte [esp + 0x2238], 4
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000aa87
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov byte [esp + 0x2238], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000aaaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2238], 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 0x1000aad7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x2238], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000aafb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2238], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ab1c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [esp + 0x2244]
call fcn.10003e90
mov eax, dword [esp + 0x2c]
jmp 0x1000addc
mov ebp, dword [sym.imp.WS2_32.dll_recv]
test edi, edi
jle 0x1000abda
push 0x1f40
lea eax, [esp + 0x2f0]
push 0
push eax
call fcn.100193d0
add esp, 0xc
push 0
push 0x1f3f
lea ecx, [esp + 0x2f4]
push ecx
push esi
call ebp
mov edi, eax
lea eax, [esp + 0x2ec]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ab74
sub eax, edx
push eax
lea edx, [esp + 0x2f0]
push edx
lea ecx, [esp + 0x24]
call fcn.10003430
mov ebx, dword [esp + 0x1c]
cmp dword [ebx - 0xc], 0
jl 0x1000abd1
push str.end
push ebx
call fcn.10018961
add esp, 8
test eax, eax
je 0x1000abb2
sub eax, ebx
cmp eax, 0xffffffff
jne 0x1000abda
cmp dword [ebx - 0xc], 0
jl 0x1000abd1
push str.__html_
push ebx
call fcn.10018961
add esp, 8
test eax, eax
je 0x1000abd1
sub eax, ebx
cmp eax, 0xffffffff
jne 0x1000abda
cmp edi, 0xffffffff
jne 0x1000ab37
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [ebx - 0xc], 0
jl 0x1000acab
push str._r_n_r_n
push ebx
call fcn.10018961
add esp, 8
test eax, eax
je 0x1000acab
sub eax, ebx
cmp eax, 0xffffffff
je 0x1000acab
add eax, 4
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
call fcn.10002f50
mov byte [esp + 0x2238], 8
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x1000ac83
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x1000ac71
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x1000ac71
push eax
call fcn.100013f0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x1000ac68
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebx, [ebp + 0x10]
mov dword [esp + 0x1c], ebx
jmp 0x1000ac83
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.10001740
mov ebx, dword [esp + 0x1c]
mov byte [esp + 0x2238], 6
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 0x1000acab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [ebx - 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x1000acd2
cmp eax, dword [esi]
jne 0x1000acd2
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x1000ad07
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x1000aceb
call fcn.10001950
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
lea ecx, [esi + 0x10]
push ecx
push eax
lea edx, [edi + 0x10]
push edx
call fcn.100179cf
add esp, 0x10
lea eax, [edi + 0x10]
mov edi, dword [esp + 0x2c]
mov dword [edi], eax
mov byte [esp + 0x2238], 4
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ad35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2238], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ad5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2238], 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 0x1000ad85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2238], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ada6
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x2238], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000adce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x2244]
call fcn.10003e90
mov eax, edi
mov ecx, dword [esp + 0x2230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2218]
xor ecx, esp
call fcn.1001786c
add esp, 0x2228
ret 0x20