Function at 0x45df80
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0x10000
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3064], 0xffffffff
je 0x45dfc9
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3064]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2ff0]
call edx
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x3064], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3068], 0xffffffff
mov edx, dword [ebp + 8]
mov dword [edx + 0x1613c], 1
mov eax, dword [ebp + 8]
push eax
call fcn.0045de70
add esp, 4
test eax, eax
je 0x45e01b
push 0x18
push str.TCP_init_failed_in_soap_bind__
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045dee0
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00471520
add esp, 0x10
or eax, 0xffffffff
jmp 0x45e3ec
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3064], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x1613c], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3064], 0xffffffff
jne 0x45e07e
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16140], eax
push 0x18
push str.socket_failed_in_soap_bind__
mov edx, dword [ebp + 8]
push edx
call fcn.0045dee0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00471520
add esp, 0x10
or eax, 0xffffffff
jmp 0x45e3ec
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x44], 0
je 0x45e0e2
push 4
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
push ecx
push 0xffff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3064]
push eax
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x45e0e2
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16140], eax
push 0x18
push str.setsockopt_failed_in_soap_bind__
mov edx, dword [ebp + 8]
push edx
call fcn.0045dee0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00471520
add esp, 0x10
or eax, 0xffffffff
jmp 0x45e3ec
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 8]
or eax, dword [edx + 0xc]
and eax, 0x10
je 0x45e149
push 4
lea ecx, [ebp - 4]
push ecx
push 8
push 0xffff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3064]
push eax
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x45e149
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16140], eax
push 0x18
push str.setsockopt_SO_KEEPALIVE_failed_in_soap_bind__
mov edx, dword [ebp + 8]
push edx
call fcn.0045dee0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00471520
add esp, 0x10
or eax, 0xffffffff
jmp 0x45e3ec
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1001
push 0xffff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3064]
push eax
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x45e1a2
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16140], eax
push 0x18
push str.setsockopt_SO_SNDBUF_failed_in_soap_bind__
mov edx, dword [ebp + 8]
push edx
call fcn.0045dee0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00471520
add esp, 0x10
or eax, 0xffffffff
jmp 0x45e3ec
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1002
push 0xffff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3064]
push eax
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x45e1fb
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16140], eax
push 0x18
push str.setsockopt_SO_RCVBUF_failed_in_soap_bind__
mov edx, dword [ebp + 8]
push edx
call fcn.0045dee0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00471520
add esp, 0x10
or eax, 0xffffffff
jmp 0x45e3ec
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
and edx, 4
jne 0x45e259
push 4
lea eax, [ebp - 4]
push eax
push 1
push 6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3064]
push edx
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x45e259
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16140], eax
push 0x18
push str.setsockopt_TCP_NODELAY_failed_in_soap_bind__
mov edx, dword [ebp + 8]
push edx
call fcn.0045dee0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00471520
add esp, 0x10
or eax, 0xffffffff
jmp 0x45e3ec
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x171d0], 0x10
push 0x10
push 0
mov edx, dword [ebp + 8]
add edx, 0x171c0
push edx
call fcn.0059e3c0
add esp, 0xc
mov eax, 2
mov ecx, dword [ebp + 8]
mov word [ecx + 0x171c0], ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x1613c], 2
cmp dword [ebp + 0xc], 0
je 0x45e2eb
mov eax, dword [ebp + 8]
add eax, 0x171c4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2fe4]
call ecx
add esp, 0xc
test eax, eax
je 0x45e2e9
push 0x18
push str.get_host_by_name_failed_in_soap_bind__
mov edx, dword [ebp + 8]
push edx
call fcn.0045dee0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00471520
add esp, 0x10
or eax, 0xffffffff
jmp 0x45e3ec
jmp 0x45e2fb
push 0
call sub.WSOCK32.dll_htonl
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x171c4], eax
movzx edx, word [ebp + 0x10]
push edx
call sub.WSOCK32.dll_htons
mov ecx, dword [ebp + 8]
mov word [ecx + 0x171c2], ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x1613c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x171d0]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x171c0
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3064]
push ecx
call sub.WSOCK32.dll_bind
test eax, eax
je 0x45e382
call sub.WSOCK32.dll_WSAGetLastError
mov edx, dword [ebp + 8]
mov dword [edx + 0x16140], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0045f100
add esp, 4
push 0x18
push str.bind_failed_in_soap_bind__
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045dee0
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00471520
add esp, 0x10
or eax, 0xffffffff
jmp 0x45e3ec
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
and ecx, 4
jne 0x45e3e3
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3064]
push ecx
call sub.WSOCK32.dll_listen
test eax, eax
je 0x45e3e3
call sub.WSOCK32.dll_WSAGetLastError
mov edx, dword [ebp + 8]
mov dword [edx + 0x16140], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0045f100
add esp, 4
push 0x18
push str.listen_failed_in_soap_bind__
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045dee0
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00471520
add esp, 0x10
or eax, 0xffffffff
jmp 0x45e3ec
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3064]
mov esp, ebp
pop ebp
ret