Function at 0x401846
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push edx
mov dword [esp + 4], eax
mov dword [esp], str._nPacket_dump_for_Host__s:_n_n
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x401886
mov dword [esp + 4], eax
mov dword [esp], str.Incomplete_packet___d_bytes_long._n
call sub.msvcrt.dll_printf
mov eax, dword [ebx]
test eax, eax
je 0x401993
movzx eax, word [eax]
mov dword [esp], str.Transaction_ID:_0x_04x___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx]
movzx eax, word [eax + 2]
mov dword [esp], str.Flags:_0x_04x___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx]
movzx eax, word [eax + 4]
mov dword [esp], str.Question_count:_0x_04x___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx]
movzx eax, word [eax + 6]
mov dword [esp], str.Answer_count:_0x_04x___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx]
movzx eax, word [eax + 8]
mov dword [esp], str.Name_service_count:_0x_04x___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx]
movzx eax, word [eax + 0xa]
mov dword [esp], str.Additional_record_count:_0x_04x___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx]
mov dword [esp], str.Question_name:__s_n
add eax, 0xc
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx]
movzx eax, word [eax + 0x2e]
mov dword [esp], str.Question_type:_0x_04x___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx]
movzx eax, word [eax + 0x30]
mov dword [esp], str.Question_class:_0x_04x___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
mov dword [esp], str.Time_to_live:_0x_08x___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx]
movzx eax, word [eax + 0x38]
mov dword [esp], str.Rdata_length:_0x_04x___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx]
movzx eax, byte [eax + 0x3a]
mov dword [esp], str.Number_of_names:_0x_02x___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
cmp dword [ebx + 4], 0
jne 0x4019a5
mov eax, dword [ebx + 8]
test eax, eax
jne 0x401a0f
jmp 0x401c2b
mov dword [esp], str.Names_received:
lea esi, [ebp - 0x28]
call sub.msvcrt.dll_puts
xor ecx, ecx
jmp 0x401a03
imul edi, ecx, 0x12
add edi, dword [ebx + 4]
mov al, byte [edi + 0xf]
mov dword [esp + 4], edi
mov dword [esp + 8], 0xf
mov dword [esp], esi
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x29], al
call sub.msvcrt.dll_strncpy
mov byte [ebp - 0x18], 0
movzx eax, word [edi + 0x10]
movzx edi, byte [ebp - 0x29]
mov dword [esp + 4], esi
mov dword [esp], str.__17s_Service:_0x_02x_Flags:_0x_04x_n
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
call sub.msvcrt.dll_printf
mov ecx, dword [ebp - 0x30]
inc ecx
mov eax, dword [ebx]
movzx eax, byte [eax + 0x3a]
cmp ecx, eax
jl 0x4019b8
jmp 0x401999
movzx edx, byte [eax + 5]
mov dword [esp + 0x18], edx
movzx edx, byte [eax + 4]
mov dword [esp + 0x14], edx
movzx edx, byte [eax + 3]
mov dword [esp + 0x10], edx
movzx edx, byte [eax + 2]
mov dword [esp + 0xc], edx
movzx edx, byte [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
mov dword [esp], str.Adapter_address:__02x__02x__02x__02x__02x__02x_n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, byte [eax + 6]
mov dword [esp], str.Version_major:_0x_02x___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, byte [eax + 7]
mov dword [esp], str.Version_minor:_0x_02x___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 8]
mov dword [esp], str.Duration:_0x_04x___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0xa]
mov dword [esp], str.FRMRs_Received:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0xc]
mov dword [esp], str.FRMRs_Transmitted:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0xe]
mov dword [esp], str.IFrame_Receive_errors:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0x10]
mov dword [esp], str.Transmit_aborts:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x14]
mov dword [esp], str.Transmitted:_0x_08___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x18]
mov dword [esp], str.Received:_0x_08___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0x1c]
mov dword [esp], str.IFrame_transmit_errors:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0x1e]
mov dword [esp], str.No_receive_buffers:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0x20]
mov dword [esp], str.tl_timeouts:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0x22]
mov dword [esp], str.ti_timeouts:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0x24]
mov dword [esp], str.Free_NCBS:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0x26]
mov dword [esp], str.NCBS:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0x28]
mov dword [esp], str.Max_NCBS:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0x2a]
mov dword [esp], str.No_transmit_buffers:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0x2c]
mov dword [esp], str.Max_datagram:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0x2e]
mov dword [esp], str.Pending_sessions:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0x30]
mov dword [esp], str.Max_sessions:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0x32]
mov dword [esp], str.Packet_sessions:_0x_04___1_d__n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret