Function at 0x100b623
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x1011c78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x240], eax
xor eax, eax
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x228], eax
cmp edi, eax
jne 0x100b688
push 0xfffffffffffffffb
pop eax
jmp 0x100bd0b
test dword [0x1011970], 0x80000000
je 0x100b6ae
push ebx
push 0x10028a0
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
push 1
lea eax, [ebx + esi]
push eax
push esi
call fcn.010088c8
movzx ecx, word [edi]
mov eax, 0x3500
cmp cx, 2
jne 0x100b6c2
mov edx, eax
mov word [edi + 2], dx
cmp cx, 0x17
jne 0x100b6cc
mov word [edi + 2], ax
test byte [0x1011970], 8
jne 0x100b6e6
cmp ebx, 0x200
jg 0x100b6e6
and dword [ebp - 0x214], 0
jmp 0x100b6f0
mov dword [ebp - 0x214], 1
and dword [ebp - 0x218], 0
mov ebx, dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, esi
movzx eax, word [eax]
or esi, 0xffffffff
cmp dword [0x101196c], 0
mov dword [ebp - 0x23c], eax
jg 0x100b750
mov eax, dword [0x10118dc]
cmp eax, esi
je 0x100b726
push eax
call ebx
mov dword [0x10118dc], esi
cmp dword [ebp - 0x214], 0
jne 0x100bcf8
xor eax, eax
cmp dword [ebp - 0x21c], eax
setne al
lea eax, [eax*4 - 5]
jmp 0x100bd0b
mov edi, dword [ebp - 0x22c]
cmp dword [ebp - 0x214], 0
jne 0x100b8eb
mov eax, dword [0x10118dc]
cmp eax, esi
jne 0x100b781
movzx eax, word [edi]
push 0
push 2
push eax
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [0x10118dc], eax
cmp eax, esi
je 0x100bb46
cmp dword [ebp - 0x210], 0
jne 0x100b7a7
push dword [edi + 0x20]
push edi
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, esi
je 0x100bb63
mov dword [ebp - 0x210], 1
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push dword [0x10118dc]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, esi
je 0x100bb7a
mov eax, dword [0x1011968]
mov dword [ebp - 0x238], eax
test eax, eax
jg 0x100b7e2
mov dword [ebp - 0x238], 1
and dword [ebp - 0x234], 0
mov eax, dword [0x10118dc]
lea ecx, [ebp - 0x238]
push ecx
push 0
push 0
lea ecx, [ebp - 0x344]
xor edi, edi
push ecx
inc edi
push eax
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x344], edi
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jl 0x100bb8d
je 0x100bb9d
push 0
push dword [ebp + 0x18]
push dword [ebp - 0x20c]
push dword [0x10118dc]
call dword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
test edi, edi
je 0x100bbda
cmp edi, esi
je 0x100bbda
mov ax, word [ebp - 0x23c]
mov ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x21c], 1
cmp ax, word [ecx]
je 0x100b89c
test dword [0x1011970], 0x80000000
je 0x100b7e9
push 0x1002884
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [ebp - 0x20c]
pop ecx
push 1
lea ecx, [eax + edi]
push ecx
push eax
call fcn.010088c8
jmp 0x100b7e9
mov al, byte [0x1011970]
test al, 0x20
jne 0x100bc82
test byte [ecx + 2], 2
je 0x100bc82
test al, 2
je 0x100b8c3
push 0x1002870
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push dword [0x10118dc]
mov ebx, dword [sym.imp.WSOCK32.dll_closesocket]
call ebx
or dword [0x10118dc], 0xffffffff
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 0x214], 1
or esi, 0xffffffff
and dword [ebp - 0x230], 0
mov eax, dword [0x101196c]
mov dword [ebp - 0x218], eax
cmp dword [0x10118dc], esi
jne 0x100b97d
movzx eax, word [edi]
push 0
push 1
push eax
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [0x10118dc], eax
cmp eax, esi
jne 0x100b940
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test byte [0x1011970], 2
je 0x100bbfb
push 0x100285c
call dword [sym.imp.msvcrt.dll_perror]
pop ecx
jmp 0x100bbfb
push dword [edi + 0x20]
push edi
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, esi
jne 0x100b97d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test byte [0x1011970], 2
je 0x100b96a
push 0x100284c
call dword [sym.imp.msvcrt.dll_perror]
pop ecx
push dword [0x10118dc]
call ebx
mov dword [0x10118dc], esi
jmp 0x100bbfb
push dword [ebp - 0x220]
call dword [sym.imp.WSOCK32.dll_htons]
mov edi, dword [sym.imp.WSOCK32.dll_send]
movzx eax, ax
push 0
mov dword [ebp - 0x208], eax
push 2
lea eax, [ebp - 0x208]
push eax
push dword [0x10118dc]
call edi
cmp eax, esi
je 0x100bb29
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push dword [0x10118dc]
call edi
cmp eax, esi
je 0x100bb29
mov edi, dword [ebp - 0x20c]
mov dword [ebp - 0x208], 2
movzx eax, word [ebp - 0x208]
push 0
push eax
push edi
push dword [0x10118dc]
call dword [sym.imp.WSOCK32.dll_recv]
mov esi, eax
test esi, esi
jle 0x100ba10
sub dword [ebp - 0x208], esi
add edi, esi
cmp word [ebp - 0x208], 0
jne 0x100b9e1
cmp esi, 0xffffffff
jne 0x100ba66
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test byte [0x1011970], 2
mov esi, eax
je 0x100ba32
push 0x1002840
call dword [sym.imp.msvcrt.dll_perror]
pop ecx
push dword [0x10118dc]
call ebx
or dword [0x10118dc], 0xffffffff
cmp esi, 0x6f
jne 0x100bbfb
cmp dword [ebp - 0x228], 0
jne 0x100bbfb
mov dword [ebp - 0x228], 1
jmp 0x100bbfb
mov ebx, dword [ebp - 0x20c]
movzx eax, word [ebx]
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
movzx edi, ax
cmp edi, dword [ebp + 0x18]
jbe 0x100baad
test byte [0x1011970], 2
je 0x100ba9d
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x100282c
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
pop ecx
pop ecx
movzx eax, word [ebp + 0x18]
mov dword [ebp - 0x230], 1
jmp 0x100bab0
movzx eax, di
mov dword [ebp - 0x208], eax
jmp 0x100badd
movzx eax, word [ebp - 0x208]
push 0
push eax
push ebx
push dword [0x10118dc]
call dword [sym.imp.WSOCK32.dll_recv]
mov esi, eax
test esi, esi
jle 0x100bae7
add ebx, esi
sub dword [ebp - 0x208], esi
cmp word [ebp - 0x208], 0
jne 0x100bab8
cmp esi, 0xffffffff
jne 0x100bc1b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test byte [0x1011970], 2
je 0x100bb0b
push 0x1002840
call dword [sym.imp.msvcrt.dll_perror]
pop ecx
push dword [0x10118dc]
call dword [sym.imp.WSOCK32.dll_closesocket]
or dword [0x10118dc], 0xffffffff
mov ebx, dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x100bbfb
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test byte [0x1011970], 2
je 0x100b96a
push 0x100281c
jmp 0x100b963
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test byte [0x1011970], 2
je 0x100bbfb
push 0x1002808
jmp 0x100b934
test byte [0x1011970], 2
je 0x100bbfb
push 0x1002800
jmp 0x100b934
test byte [0x1011970], 2
je 0x100bbfb
push 0x10027f8
jmp 0x100b934
test byte [0x1011970], 2
je 0x100bbef
push 0x10027f0
jmp 0x100bbe8
mov esi, dword [sym.imp.msvcrt.dll_printf]
push 0x10027d8
call esi
push dword [ebp - 0x238]
push 0x10027b8
call esi
add esp, 0xc
test byte [0x1011970], 2
je 0x100bbd2
push dword [ebp - 0x238]
push 0x10027a4
call esi
pop ecx
pop ecx
mov dword [ebp - 0x21c], edi
jmp 0x100bbfb
test byte [0x1011970], 2
je 0x100bbef
push 0x1002798
call dword [sym.imp.msvcrt.dll_perror]
pop ecx
call fcn.0100b605
and dword [ebp - 0x210], 0
inc dword [ebp - 0x218]
mov eax, dword [ebp - 0x218]
or esi, 0xffffffff
cmp eax, dword [0x101196c]
jl 0x100b74a
jmp 0x100b714
cmp dword [ebp - 0x230], 0
je 0x100bc82
mov eax, dword [ebp - 0x20c]
or byte [eax + 2], 2
mov eax, edi
sub eax, dword [ebp + 0x18]
movzx eax, ax
mov dword [ebp - 0x208], eax
test ax, ax
je 0x100bc82
mov eax, 0x200
mov ecx, eax
cmp word [ebp - 0x208], cx
ja 0x100bc58
movzx eax, word [ebp - 0x208]
push 0
push eax
lea eax, [ebp - 0x204]
push eax
push dword [0x10118dc]
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x100bc82
sub dword [ebp - 0x208], eax
cmp word [ebp - 0x208], 0
jne 0x100bc41
mov eax, dword [0x1011970]
test al, 2
je 0x100bcd9
test eax, eax
jns 0x100bc9e
push edi
push 0x1002770
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
jmp 0x100bca9
push 0x1002754
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
movzx eax, di
cmp edi, dword [ebp + 0x18]
jb 0x100bcb6
movzx eax, word [ebp + 0x18]
mov dword [ebp - 0x208], eax
cmp ax, 0xc
jb 0x100bcd9
movzx eax, ax
add eax, dword [ebp - 0x20c]
push 1
push eax
push dword [ebp - 0x20c]
call fcn.010088c8
push dword [0x10118dc]
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, dword [ebp - 0x240]
or dword [0x10118dc], 0xffffffff
mov dword [eax], edi
xor eax, eax
jmp 0x100bd0b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
sub eax, 0x72
neg eax
sbb eax, eax
and eax, 2
add eax, 0xfffffffb
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100cc6f
leave
ret 0x18