Function at 0x58d034
Capabilities:
Create udp socket
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov eax, dword [0x6db340]
test eax, eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
jne 0x58d050
mov al, 9
jmp 0x58d420
mov edx, dword [ebx + 0xe0]
test edx, edx
je 0x58d061
mov al, 0x11
jmp 0x58d420
mov dl, byte [ebx + 0x90]
test dl, dl
je 0x58d072
mov al, 0x11
jmp 0x58d420
mov edx, dword [ebx + 0x128]
test edx, edx
je 0x58d083
mov al, 0x11
jmp 0x58d420
mov edx, dword [ebx + 0x150]
test edx, edx
je 0x58d09c
mov ecx, dword [ebx + 0x14]
cmp ecx, 7
jne 0x58d09c
mov al, 0x11
jmp 0x58d420
mov edx, dword [ebx + 0xdc]
test edx, edx
je 0x58d0b5
mov ecx, dword [ebx + 0x14]
cmp ecx, 7
jne 0x58d0b5
mov al, 0x11
jmp 0x58d420
push ebx
call fcn.0058e2e8
pop ecx
mov edx, dword [ebx + 0x50]
test edx, edx
je 0x58d0c8
xor ecx, ecx
mov dword [ebx + 0x54], ecx
mov ax, word [ebp + 0x14]
mov word [ebx + 0xfa], ax
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x58d0fd
mov esi, dword [ebp + 0x18]
mov edi, ebx
mov cl, byte [edi + 0xc]
test cl, cl
jne 0x58d0ee
push esi
call sub.WSOCK32.DLL_inet_addr
jmp 0x58d0f5
push esi
push edi
call fcn.00592170
mov dword [ebx + 0xfc], eax
jmp 0x58d11d
mov esi, ebx
mov al, byte [esi + 0xc]
test al, al
jne 0x58d10f
push 0
call sub.WSOCK32.DLL_htonl
jmp 0x58d117
push 0
push esi
call fcn.00592090
mov dword [ebx + 0xfc], eax
xor edx, edx
mov edi, ebx
mov dword [ebx + 0x118], edx
mov word [ebx + 0xe8], 2
mov si, word [ebp + 0x10]
mov cl, byte [edi + 0xc]
test cl, cl
jne 0x58d143
push esi
call sub.WSOCK32.DLL_htons
jmp 0x58d14a
push esi
push edi
call fcn.005920fc
mov word [ebx + 0xea], ax
mov edi, ebx
xor eax, eax
mov dword [ebx + 0xe4], eax
mov dl, byte [edi + 0xc]
mov esi, dword [ebp + 0xc]
test dl, dl
jne 0x58d16d
push esi
call sub.WSOCK32.DLL_inet_addr
jmp 0x58d174
push esi
push edi
call fcn.00592170
mov dword [ebx + 0xec], eax
cmp eax, 0xffffffff
je 0x58d189
mov dword [ebx + 0xe4], 1
mov edx, dword [ebx + 0x14]
cmp edx, 6
jne 0x58d390
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
jne 0x58d1a6
mov al, 0x10
jmp 0x58d420
mov edi, ebx
mov dl, byte [edi + 0xc]
test dl, dl
jne 0x58d1be
push 0
push 2
push 2
call sub.WSOCK32.DLL_socket
mov esi, eax
jmp 0x58d1cc
push 0
push 2
push 2
push edi
call fcn.00592a38
mov esi, eax
cmp esi, 0xffffffff
je 0x58d1ff
xor ecx, ecx
lea edx, [ebp - 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x38]
mov dword [ebp - 8], eax
push edx
push 0x6db34c
push ecx
call fcn.0058c62c
add esp, 0xc
mov eax, dword [ebp - 0x30]
add eax, 0x10
add eax, 4
mov dword [eax], edi
mov dword [ebx + 0x10], esi
mov edx, dword [ebx + 0x10]
cmp edx, 0xffffffff
jne 0x58d22f
mov esi, ebx
mov cl, byte [esi + 0xc]
test cl, cl
jne 0x58d21a
call sub.WSOCK32.DLL_WSAGetLastError
jmp 0x58d220
push esi
call fcn.00592df0
push eax
push ebx
call fcn.0058f584
add esp, 8
jmp 0x58d420
cmp word [ebx + 0xfa], 0
jne 0x58d244
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x58d308
mov word [ebp - 0x48], 2
mov edx, dword [ebx + 0xfc]
mov edi, ebx
mov dword [ebp - 0x44], edx
mov si, word [ebx + 0xfa]
mov cl, byte [edi + 0xc]
test cl, cl
jne 0x58d26b
push esi
call sub.WSOCK32.DLL_htons
jmp 0x58d272
push esi
push edi
call fcn.005920fc
mov word [ebp - 0x46], ax
mov eax, ebx
mov dword [ebp - 0x10], 1
mov cl, byte [eax + 0xc]
mov edx, dword [ebx + 0x10]
test cl, cl
jne 0x58d29e
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0xffff
push edx
call sub.WSOCK32.DLL_setsockopt
jmp 0x58d2b2
push 4
lea ecx, [ebp - 0x10]
push ecx
push 4
push 0xffff
push edx
push eax
call fcn.00592624
mov esi, dword [ebx + 0x10]
mov edi, ebx
mov dl, byte [edi + 0xc]
test dl, dl
jne 0x58d2cc
push 0x10
lea eax, [ebp - 0x48]
push eax
push esi
call sub.WSOCK32.DLL_bind
jmp 0x58d2d9
push 0x10
lea edx, [ebp - 0x48]
push edx
push esi
push edi
call fcn.00591930
inc eax
jne 0x58d308
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp - 0x20]
mov al, byte [ecx + 0xc]
test al, al
jne 0x58d2f0
call sub.WSOCK32.DLL_WSAGetLastError
jmp 0x58d2f9
mov edx, dword [ebp - 0x20]
push edx
call fcn.00592df0
push eax
push ebx
call fcn.0058f584
add esp, 8
jmp 0x58d420
mov eax, ebx
mov dword [ebp - 0x14], 1
mov cl, byte [eax + 0xc]
mov edx, dword [ebx + 0x10]
test cl, cl
jne 0x58d32c
lea eax, [ebp - 0x14]
push eax
push 0x8004667e
push edx
call sub.WSOCK32.DLL_ioctlsocket
jmp 0x58d33c
lea ecx, [ebp - 0x14]
push ecx
push 0x8004667e
push edx
push eax
call fcn.00591b0c
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x18], ebx
mov edx, dword [ebp - 0x18]
mov esi, dword [0x6db3d4]
mov al, byte [edx + 0xc]
test al, al
jne 0x58d362
push 3
push 0x400
push esi
push edi
call sub.WSOCK32.DLL_WSAAsyncSelect
jmp 0x58d374
push 3
push 0x400
push esi
push edi
mov edx, dword [ebp - 0x18]
push edx
call fcn.0059370c
test eax, eax
je 0x58d37f
mov al, 0x15
jmp 0x58d420
mov dword [ebx + 0xdc], 1
xor eax, eax
jmp 0x58d420
mov dword [ebx + 0xe0], 1
mov edx, dword [ebx + 0xe4]
test edx, edx
jne 0x58d419
mov dword [ebx + 0x118], 1
mov ecx, dword [ebx + 0x100]
test ecx, ecx
jne 0x58d3c9
push 0x1f4
call fcn.0067ac46
pop ecx
mov dword [ebx + 0x100], eax
push 0x1f3
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebx + 0x100]
push edx
call fcn.0069d020
add esp, 0xc
mov esi, dword [ebx + 0x100]
mov byte [esi + 0x1f3], 0
push 0x1f4
push esi
push ebx
call fcn.0058e06c
add esp, 0xc
mov byte [ebp - 0x19], al
test al, al
je 0x58d409
mov al, byte [ebp - 0x19]
jmp 0x58d420
mov dword [ebx + 0x11c], 1
xor eax, eax
jmp 0x58d420
push ebx
call fcn.0058d428
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret