Function at 0x433f90
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov edi, dword [ebp + 0x10]
mov ecx, 0x58ae30
call fcn.004330e0
test eax, eax
je 0x43406d
mov esi, eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov word [esp + 0x2c], 2
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2e], ax
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.00434520
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
je 0x43408a
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x2c]
push 0x10
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4340ad
cmp esi, 0x5d9150
mov edi, 0xffffffff
jae 0x4342a6
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp esi, 0x5c1150
jb 0x4342ac
mov eax, dword [esi + 4]
test eax, eax
je 0x4342ac
mov eax, 0x5c1150
mov ecx, esi
sub ecx, eax
sar ecx, 4
imul edi, ecx, 0xaaaaaaab
add edi, 0x800
jmp 0x4342ac
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
call fcn.00439f20
add esp, 4
mov ecx, edi
push eax
call fcn.00555b20
jmp 0x43429f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.004df0f0
add esp, 8
test byte [esp + 0x10], 1
je 0x434105
mov eax, dword [esp + 0x18]
jmp 0x434109
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 0x2e]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.004df0f0
add esp, 8
test byte [esp + 0x10], 1
je 0x434198
mov eax, dword [esp + 0x18]
jmp 0x43419c
lea eax, [esp + 0x11]
mov ecx, esp
push eax
push str.cannot_create_socket:__s
push ecx
call fcn.004deac0
add esp, 0xc
test byte [edi], 1
jne 0x434126
mov word [edi], 0
jmp 0x434149
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x434149
push dword [edi + 8]
call fcn.004fc300
add esp, 4
mov dword [edi], 0
mov eax, dword [esp + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [esp]
movsd qword [edi], xmm0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
test byte [esp + 0x10], 1
je 0x434183
push dword [esp + 0x18]
call fcn.004fc300
add esp, 4
mov eax, dword [0x5bc570]
cmp byte [eax], 0
js 0x43435f
mov ecx, ebx
jmp 0x434230
lea eax, [esp + 0x11]
mov ecx, esp
push eax
push dword [esp + 0x28]
push dword [esp + 0x24]
push str.cannot_connect_to__s:_u:__s
push ecx
call fcn.004deac0
add esp, 0x14
test byte [edi], 1
jne 0x4341c1
mov word [edi], 0
jmp 0x4341e4
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x4341e4
push dword [edi + 8]
call fcn.004fc300
add esp, 4
mov dword [edi], 0
mov eax, dword [esp + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [esp]
movsd qword [edi], xmm0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
test byte [esp + 0x10], 1
je 0x43421e
push dword [esp + 0x18]
call fcn.004fc300
add esp, 4
mov eax, dword [0x5bc570]
cmp byte [eax], 0
js 0x4343b0
mov ecx, dword [esp + 0x20]
call fcn.00433dc0
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [0x5c1138]
mov ebx, dword [eax]
mov ecx, edi
call fcn.004fb4c0
mov eax, 0x5c1150
mov ecx, esi
sub ecx, eax
sar ecx, 4
imul eax, ecx, 0xaaaaaaab
cmp dword [0x5c114c], eax
jle 0x434269
mov dword [0x5c114c], eax
cmp dword [esi + 4], 0
je 0x434290
mov eax, dword [esi]
push esi
call dword [eax + 4]
add esp, 4
mov byte [esi + 0x10], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi], 0
mov ecx, edi
call fcn.004fb560
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
mov edi, 0xffffffff
jmp 0x4342dc
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add esi, 0x10
cmp edx, 1
mov eax, str.udp:
mov ecx, 0x58aedb
cmovne ecx, eax
push ebx
push ecx
push edi
push str._d_lo_client:_s_d_
push 0x20
push esi
call fcn.00433200
add esp, 0x18
mov eax, dword [0x5bc570]
cmp byte [eax], 0
js 0x4342e6
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004ddb30
cmp eax, 1
jg 0x4342dc
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea esi, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x20], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x329
push 0x58acc4
call fcn.004ddb50
mov ecx, esi
call fcn.004ddb40
cmp dword [ebp + 0xc], 1
mov esi, eax
mov eax, 0x58aebb
mov ecx, 0x58aebf
cmovne ecx, eax
mov eax, esp
push edi
push ecx
push ebx
push str.port__d_type__s___fd__d
push eax
call fcn.004deac0
add esp, 0x14
movzx eax, byte [esp]
test al, 1
je 0x434410
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x434416
call fcn.004ddb30
cmp eax, 1
jg 0x434191
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x314
push 0x58acc4
call fcn.004ddb50
lea ecx, [esp + 0x10]
call fcn.004ddb40
test byte [edi], 1
mov dword [esp + 0x1c], eax
jne 0x43444d
inc edi
jmp 0x434450
call fcn.004ddb30
cmp eax, 1
jg 0x43422c
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea ebx, [esp + 0x10]
mov ecx, ebx
mov dword [esp + 0x1c], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x321
push 0x58acc4
call fcn.004ddb50
mov ecx, ebx
call fcn.004ddb40
cmp dword [ebp + 0xc], 1
mov ebx, eax
mov ecx, 0x58aebf
mov eax, 0x58aebb
cmove eax, ecx
test byte [edi], 1
jne 0x4344b5
inc edi
jmp 0x4344b8
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push esi
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x434433
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
jmp 0x4342dc
mov edi, dword [edi + 8]
push edi
push 0x58ae7d
lea eax, [esp + 8]
push eax
call fcn.004deac0
add esp, 0xc
movzx eax, byte [esp]
test al, 1
je 0x434475
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x43447b
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push dword [esp + 0x24]
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x43449b
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
jmp 0x434191
mov edi, dword [edi + 8]
push edi
push dword [ebp + 8]
push eax
push str.could_not_connect_to__s:_d:__s
lea eax, [esp + 0x10]
push eax
call fcn.004deac0
add esp, 0x14
movzx eax, byte [esp]
test al, 1
je 0x4344e1
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x4344e7
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push ebx
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x434504
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
jmp 0x43422c