Function at 0x401940
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x423a70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.00418deb
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], ebx
call fcn.00418deb
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 1
call fcn.00418deb
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 2
call fcn.00418deb
mov byte [esp + 0x5c], 3
call fcn.004224ed
mov ecx, dword [eax + 4]
call fcn.00418237
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x74], 4
call fcn.00401ee0
test eax, eax
je 0x401e6f
lea edi, [esi + 0x74]
lea ecx, [esp + 0x24]
push edi
call fcn.00418dfb
mov eax, dword [edi]
mov byte [esp + 0x5c], 5
push eax
call sub.WSOCK32.dll_inet_addr
or ebp, 0xffffffff
cmp eax, ebp
jne 0x401a40
mov ecx, dword [edi]
push ecx
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
jne 0x401a39
call sub.WSOCK32.dll_WSAGetLastError
push eax
lea edx, [esp + 0x20]
push 0x42b3e4
push edx
call fcn.00417084
add esp, 0xc
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00418dfb
jmp 0x401af8
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
mov dword [esi + 0xac], eax
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [esp + 0x24]
call fcn.00418fa4
push eax
mov ecx, edi
mov byte [esp + 0x60], 6
call fcn.0041902f
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 5
call fcn.00418f36
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esi + 0xb0], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esi + 0xb8], ecx
mov cx, word [esp + 0x28]
lea eax, [eax + eax*4]
mov dword [esi + 0xbc], edx
mov dl, byte [esp + 0x2c]
lea eax, [eax + eax*4]
mov word [esi + 0xc4], cx
mov ecx, esi
mov byte [esi + 0xc6], dl
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0xc0], eax
call fcn.00402ef0
test eax, eax
je 0x401aff
mov eax, dword [esi + 0x1c]
push ebx
push 1
push 1
push eax
call dword [sym.imp.USER32.dll_SetTimer]
cmp eax, ebx
mov dword [esi + 0xa8], eax
jne 0x401b51
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.Fatal_Error____can_not_start_system_timer.
call fcn.00418fa4
mov ecx, esi
call fcn.00402330
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 4
call fcn.00418f36
mov byte [esp + 0x5c], 3
call fcn.004224ed
mov ecx, dword [eax + 4]
call fcn.0041824c
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 2
call fcn.00418f36
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 1
call fcn.00418f36
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], bl
call fcn.00418f36
mov dword [esp + 0x5c], ebp
jmp 0x401eb2
lea ebp, [esi + 0x10268]
push 0x42f8e4
mov ecx, ebp
call fcn.0041907e
mov eax, dword [esi + 0x9c]
mov dword [esi + 0x1026c], ebx
cmp eax, ebx
je 0x401ce1
mov ecx, esi
call fcn.00404340
mov ecx, esi
call fcn.004043f0
test eax, eax
jne 0x401be3
push 0x41a
mov ecx, esi
mov dword [esi + 0x9c], ebx
call fcn.0041c004
mov ecx, dword [eax + 0x1c]
push ebx
push ebx
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x42f8e4
mov ecx, ebp
call fcn.0041907e
push 0x30
mov dword [esi + 0x1026c], ebx
call dword [sym.imp.USER32.dll_MessageBeep]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.Cannot_create_log_file.__Log_mode_is_going_to_DISABLE_automatically.
call fcn.00418fa4
mov ecx, esi
call fcn.00402330
jmp 0x401e61
lea ecx, [esp + 0x20]
call fcn.00418deb
lea edx, [esp + 0x48]
mov byte [esp + 0x5c], 7
push edx
call fcn.00406020
mov eax, dword [esp + 0x4c]
add esp, 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x40], eax
push str._Y__m__d__H:_M:_S
push ecx
lea ecx, [esp + 0x48]
call fcn.00416d10
mov edx, dword [esp + 0x4c]
mov eax, dword [eax]
and edx, 0xffff
lea ecx, [esp + 0x20]
push edx
push eax
push str._s._03hu
push ecx
mov byte [esp + 0x6c], 8
call fcn.00417084
add esp, 0x10
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 7
call fcn.00418f36
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00418dfb
mov ecx, esi
call fcn.004045a0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.____
call fcn.00418fa4
mov ecx, esi
call fcn.004045a0
mov eax, dword [edi]
mov ecx, esi
push eax
call fcn.00404730
push eax
lea ecx, [esp + 0x28]
push str.Ping_from__s_to__s
push ecx
call fcn.00417084
add esp, 0xc
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00418dfb
mov ecx, esi
call fcn.004045a0
push 0x6f
lea ecx, [esp + 0x24]
call fcn.0041c29b
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00418dfb
mov ecx, esi
call fcn.004045a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 5
call fcn.00418f36
mov dword [esi + 0x10218], ebx
mov dword [esi + 0x10220], ebx
mov dword [esi + 0x10228], ebx
push 0x42f8e4
lea ecx, [esi + 0x10250]
mov dword [esi + 0xa4], 1
mov dword [esi + 0x10204], ebx
mov dword [esi + 0x10208], ebx
mov dword [esi + 0x1020c], ebx
mov dword [esi + 0x10210], 0x186a0
mov dword [esi + 0x10214], ebx
mov dword [esi + 0x1021c], ebx
mov dword [esi + 0x10224], 0x40f86a00
mov dword [esi + 0x1022c], ebx
mov dword [esi + 0x10230], ebx
mov dword [esi + 0x10244], ebx
call fcn.0041907e
mov ecx, dword [esi + 0xb0]
mov dword [esi + 0x10254], 0xa
mov dword [esi + 0xb4], ecx
mov ecx, esi
call fcn.00402b20
mov ecx, esi
call fcn.00403c00
mov ecx, esi
call fcn.00402670
mov edx, dword [edi]
lea eax, [esp + 0x18]
push edx
push str.Ping_to__s_with
push eax
call fcn.00417084
mov eax, dword [esi + 0x10238]
add esp, 0xc
sub eax, ebx
je 0x401dc1
dec eax
je 0x401db1
dec eax
jne 0x401dde
push str.INCREMENTAL_Data_Size
lea ecx, [esp + 0x14]
call fcn.0041907e
jmp 0x401dde
push str.RANDOM_Data_Size
lea ecx, [esp + 0x14]
call fcn.0041907e
jmp 0x401dde
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
and ecx, 0xffff
push ecx
push str._u_bytes_of_data
push edx
call fcn.00417084
add esp, 0xc
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
and eax, 0xff
push eax
push str.and__d_of_TTL:
push ecx
call fcn.00417084
mov edi, dword [esi + 0x10248]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
mov dword [esi + 0x10248], 0xc
call fcn.004190e6
push ecx
lea ecx, [esp + 0x18]
mov edx, esp
mov dword [esp + 0x44], esp
push ecx
push eax
push edx
mov byte [esp + 0x6c], 9
call fcn.004190e6
mov ecx, esi
call fcn.00402330
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 5
call fcn.00418f36
push 1
mov ecx, esi
mov dword [esi + 0x10248], edi
call fcn.0041c004
mov ecx, eax
call fcn.0041c205
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 4
call fcn.00418f36
mov byte [esp + 0x5c], 3
call fcn.004224ed
mov ecx, dword [eax + 4]
call fcn.0041824c
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 2
call fcn.00418f36
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 1
call fcn.00418f36
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], bl
call fcn.00418f36
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00418f36
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret