Function at 0x4067b0
Capabilities:
Create udp socket
Get hostname
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521c32
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x598e78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040f05b
mov eax, dword [esi + 0x13dc]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x20]
push 1
push 0x80
push eax
call edi
mov eax, dword [esi + 0x13dc]
mov ecx, dword [esi + 0x20]
push eax
xor ebx, ebx
push ebx
push 0x80
push ecx
call edi
push 1
mov ecx, esi
call fcn.00410206
mov edx, dword [esi + 0xd44]
mov eax, dword [edx + 0x160]
lea ecx, [esi + 0xd44]
push ebx
push esi
call eax
mov ecx, dword [esi + 0xd64]
push ebx
push 1
push 0x401
push ecx
call edi
push ebx
push ebx
push 0x53186c
push 0x3e8
mov ecx, esi
call fcn.00414066
push eax
lea ecx, [esi + 0xd44]
call fcn.0040f9fe
mov edx, dword [esi + 0xd64]
push ebx
push ebx
push 0x414
push edx
call edi
mov eax, dword [esi + 0xd64]
push ebx
push 0xcdfaff
push 0x413
push eax
call edi
mov ecx, dword [esi + 0xd64]
push 0xc8
push ebx
push 0x403
push ecx
call edi
mov edx, dword [esi + 0xdd4]
mov eax, dword [edx + 0x160]
lea ecx, [esi + 0xdd4]
push ebx
push esi
call eax
mov ecx, dword [esi + 0xdf4]
push ebx
push 1
push 0x401
push ecx
call edi
push ebx
push ebx
push 0x531858
push 0x467
mov ecx, esi
call fcn.00414066
push eax
lea ecx, [esi + 0xdd4]
call fcn.0040f9fe
mov edx, dword [esi + 0xdf4]
push ebx
push ebx
push 0x414
push edx
call edi
mov eax, dword [esi + 0xdf4]
push ebx
push 0xcdfaff
push 0x413
push eax
call edi
mov ecx, dword [esi + 0xdf4]
push 0xc8
push ebx
push 0x403
push ecx
call edi
mov edx, dword [esi + 0xe64]
mov eax, dword [edx + 0x160]
lea ecx, [esi + 0xe64]
push ebx
push esi
call eax
mov ecx, dword [esi + 0xe84]
push ebx
push 1
push 0x401
push ecx
call edi
mov edx, dword [esi + 0xe84]
push 0x258
push ebx
push 0x418
push edx
call edi
push ebx
push ebx
push 0x531800
push 0x469
mov ecx, esi
call fcn.00414066
push eax
lea ecx, [esi + 0xe64]
call fcn.0040f9fe
mov eax, dword [esi + 0xe84]
push ebx
push ebx
push 0x414
push eax
call edi
mov ecx, dword [esi + 0xe84]
push ebx
push 0xcdfaff
push 0x413
push ecx
call edi
mov edx, dword [esi + 0xe84]
push ebx
push ebx
push 0x403
push edx
call edi
mov eax, dword [esi + 0xef4]
mov edx, dword [eax + 0x160]
lea ecx, [esi + 0xef4]
push ebx
push esi
call edx
mov eax, dword [esi + 0xf14]
push ebx
push 1
push 0x401
push eax
call edi
mov ecx, dword [esi + 0xf14]
push 0x12c
push ebx
push 0x418
push ecx
call edi
push ebx
push ebx
push 0x5317c4
push 0x46c
mov ecx, esi
call fcn.00414066
push eax
lea ecx, [esi + 0xef4]
call fcn.0040f9fe
mov edx, dword [esi + 0xf14]
push ebx
push ebx
push 0x414
push edx
call edi
mov eax, dword [esi + 0xf14]
push ebx
push 0xcdfaff
push 0x413
push eax
call edi
mov ecx, dword [esi + 0xf14]
push ebx
push ebx
push 0x403
push ecx
call edi
push 0x5317a0
push 0x435
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.0041417c
push ebx
push 0x46c
mov ecx, esi
mov dword [esi + 0xf84], 0x70
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x46d
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x3fc
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x45b
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x463
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x466
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push 0x403
mov ecx, esi
call fcn.00414066
mov edx, dword [eax + 0x20]
push ebx
push 5
push 0x14e
push edx
call edi
mov dword [esi + 0x13e4], ebx
mov dword [esi + 0x13e8], ebx
push ebx
push 0x410
mov ecx, esi
mov dword [esi + 0x13ec], ebx
mov dword [esi + 0x13f0], ebx
mov dword [esi + 0x13f4], ebx
mov dword [esi + 0x13f8], ebx
mov dword [esi + 0x13fc], ebx
mov dword [esi + 0x1400], ebx
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x433
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x434
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x411
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x436
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x437
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x431
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x43c
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x43d
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x432
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x445
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x446
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x406
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x407
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x40a
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x40d
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x408
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x40b
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x40e
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x409
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x40c
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x450
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x451
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
push ebx
push 0x452
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.00414289
call fcn.0041b737
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406d13
push 0x80004005
call fcn.00401670
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 4], ebx
call fcn.0041b737
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406d42
push 0x80004005
call fcn.00401670
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1f0], eax
push 0x32
lea ecx, [ebp - 0x44]
push ecx
mov byte [ebp - 4], 1
mov dword [esi + 0x10d8], ebx
mov dword [esi + 0x1078], 0xcf
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x406d87
push ebx
push ebx
push str.Get_host_name_is_failure_
mov ecx, esi
call fcn.0041684a
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
cmp eax, ebx
jne 0x406da9
xor ecx, ecx
jmp 0x406dc1
mov ecx, eax
lea edx, [ecx + 1]
mov dword [ebp - 0x1ec], edx
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x406db4
sub ecx, dword [ebp - 0x1ec]
push ecx
push eax
lea ecx, [ebp - 0x1e8]
call fcn.004056b0
push 0xf
push str.255.255.255.255
lea ecx, [ebp - 0x1f0]
call fcn.004056b0
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
movzx edx, byte [ecx]
mov byte [esi + 0x10ec], dl
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
movzx edx, byte [ecx + 1]
mov byte [esi + 0x10ed], dl
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
movzx edx, byte [ecx + 2]
mov byte [esi + 0x10ee], dl
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
movzx edx, byte [ecx + 3]
lea eax, [ebp - 0x1e4]
push eax
push 0x202
mov byte [esi + 0x10ef], dl
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
je 0x406e5d
push ebx
push ebx
push str.we_could_not_find_a_usable
mov ecx, esi
call fcn.0041684a
mov eax, dword [ebp - 0x1f0]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4071ba
mov eax, dword [ebp - 0x1e4]
cmp al, 2
jne 0x40718d
shr eax, 8
cmp al, 2
jne 0x40718d
mov edx, dword [ebp - 0x1e8]
mov ecx, 2
lea edi, [esi + 0x98]
push edx
mov word [edi], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
push ebx
mov dword [esi + 0x9c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x9a], ax
mov eax, 2
push 0xc350
mov word [esi + 0xa8], ax
mov dword [esi + 0xac], 0xffffffff
call dword [sym.imp.WS2_32.dll_htons]
push 0x11
push 2
push 2
mov word [esi + 0xaa], ax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x94], eax
cmp eax, 0xffffffff
jne 0x406f09
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
push ebx
push str.we_could_not_socket
mov ecx, esi
call fcn.0041684a
mov edx, dword [esi]
mov eax, dword [edx + 0x180]
mov ecx, esi
call eax
jmp 0x406e3f
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x406f60
mov ecx, dword [esi + 0x94]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
push ebx
push str.bind_
mov ecx, esi
call fcn.0041684a
mov edx, dword [esi]
mov eax, dword [edx + 0x180]
mov ecx, esi
call eax
lea ecx, [ebp - 0x1f0]
call fcn.00401140
lea ecx, [ebp - 0x1e8]
call fcn.00401140
jmp 0x4071ef
mov edx, dword [esi + 0x94]
push 4
lea ecx, [ebp - 0x1fc]
push ecx
push 0x20
push 0xffff
push edx
mov dword [ebp - 0x1fc], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x94]
push 1
push 0x401
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x406fd6
mov edx, dword [esi + 0x94]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
push ebx
push 0x53171c
mov ecx, esi
call fcn.0041684a
mov eax, dword [esi]
mov edx, dword [eax + 0x180]
mov ecx, esi
call edx
jmp 0x406f45
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0x54]
push eax
push ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x54]
add edx, 0x64
sub eax, 0xdc
add ecx, 0xc8
push 1
mov dword [ebp - 0x48], eax
add edi, 0xc8
mov dword [ebp - 0x4c], ecx
sub eax, edx
push eax
sub ecx, edi
push ecx
push edx
push edi
mov ecx, esi
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], edi
call fcn.00414207
push 0x5316c0
push 0x467
mov ecx, esi
mov dword [esi + 0xf98], 1
call fcn.00414066
mov ecx, eax
call fcn.0041417c
lea ecx, [ebp - 0x1ec]
call fcn.00402db0
lea ecx, [ebp - 0x1f4]
call fcn.00402db0
push str.11.02_1508122.27_150407
lea edx, [ebp - 0x1ec]
push 0x5316f8
push edx
mov byte [ebp - 4], 3
call fcn.00406080
lea eax, [ebp - 0x1ec]
push eax
lea ecx, [ebp - 0x1f8]
push 0x53170c
push ecx
call fcn.004065a0
add esp, 0x18
push eax
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 4
call fcn.00405fd0
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 4], 3
call fcn.00401140
mov edx, dword [ebp - 0x1ec]
push edx
push 0x46f
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.0041417c
push str.DAQ_DM9_V10_PB01_150506
lea eax, [ebp - 0x1f4]
push 0x5316f8
push eax
call fcn.00406080
lea ecx, [ebp - 0x1f4]
push ecx
push 0x5316fc
lea edx, [ebp - 0x1f8]
push edx
call fcn.004065a0
add esp, 0x18
push eax
lea ecx, [ebp - 0x1f4]
mov byte [ebp - 4], 5
call fcn.00405fd0
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 4], 3
call fcn.00401140
mov eax, dword [ebp - 0x1f4]
push eax
push 0x470
mov ecx, esi
call fcn.00414066
mov ecx, eax
call fcn.0041417c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 0x20]
push ebx
push 0x3e8
push 3
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [ebp - 0x1f4]
call fcn.00401140
lea ecx, [ebp - 0x1ec]
call fcn.00401140
lea ecx, [ebp - 0x1f0]
call fcn.00401140
lea ecx, [ebp - 0x1e8]
call fcn.00401140
mov eax, 1
jmp 0x4071f1
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
push ebx
push str.we_could_not_find_a_usable
mov ecx, esi
call fcn.0041684a
mov eax, dword [ebp - 0x1f0]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4071c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1e8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4071ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050a1b1
mov esp, ebp
pop ebp
ret