Function at 0x402380
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 edi, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_inet_ntoa
mov dword [esp + 4], eax
mov dword [esp], 0x401e0a
call sub.cygwin1.dll_printf
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4027c0
mov eax, dword [edi]
test eax, eax
jne 0x4026b0
mov eax, dword [edi + 4]
test eax, eax
jne 0x402610
mov edx, dword [edi + 8]
test edx, edx
jne 0x4023e0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x401e30
movzx eax, byte [edx]
mov dword [esp + 4], eax
movzx eax, byte [edx + 1]
mov dword [esp + 8], eax
movzx eax, byte [edx + 2]
mov dword [esp + 0xc], eax
movzx eax, byte [edx + 3]
mov dword [esp + 0x10], eax
movzx eax, byte [edx + 4]
mov dword [esp + 0x14], eax
movzx eax, byte [edx + 5]
mov dword [esp + 0x18], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x401e60
mov eax, dword [edi + 8]
movzx eax, byte [eax + 6]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x401e7e
mov eax, dword [edi + 8]
movzx eax, byte [eax + 7]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x401e9c
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x401eb5
mov eax, dword [edi + 8]
movzx eax, word [eax + 0xa]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x401ef0
mov eax, dword [edi + 8]
movzx eax, word [eax + 0xc]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x401f30
mov eax, dword [edi + 8]
movzx eax, word [eax + 0xe]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x401f70
mov eax, dword [edi + 8]
movzx eax, word [eax + 0x10]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x401f8f
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x401faa
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x401fd0
mov eax, dword [edi + 8]
movzx eax, word [eax + 0x1c]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x402010
mov eax, dword [edi + 8]
movzx eax, word [eax + 0x1e]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x402032
mov eax, dword [edi + 8]
movzx eax, word [eax + 0x20]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x40204d
mov eax, dword [edi + 8]
movzx eax, word [eax + 0x22]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x402068
mov eax, dword [edi + 8]
movzx eax, word [eax + 0x24]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x402081
mov eax, dword [edi + 8]
movzx eax, word [eax + 0x26]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x402095
mov eax, dword [edi + 8]
movzx eax, word [eax + 0x28]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x4020b0
mov eax, dword [edi + 8]
movzx eax, word [eax + 0x2a]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x4020d3
mov eax, dword [edi + 8]
movzx eax, word [eax + 0x2c]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x4020f0
mov eax, dword [edi + 8]
movzx eax, word [eax + 0x2e]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x402110
mov eax, dword [edi + 8]
movzx eax, word [eax + 0x30]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x402130
mov eax, dword [edi + 8]
movzx eax, word [eax + 0x32]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
jmp 0x4023ce
mov dword [esp], 0x40214f
call sub.cygwin1.dll_puts
mov eax, dword [edi]
mov dword [ebp - 0x2c], 0
cmp byte [eax + 0x3a], 0
je 0x4023c7
xor esi, esi
jmp 0x402640
mov eax, dword [edi + 4]
lea edx, [ebp - 0x28]
movzx ebx, byte [eax + esi + 0xf]
mov dword [esp + 8], 0xf
add eax, esi
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.cygwin1.dll_strncpy
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
movzx eax, bl
mov byte [ebp - 0x18], 0
mov dword [esp], 0x402170
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
movzx eax, word [eax + esi + 0x10]
add esi, 0x12
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_printf
mov eax, dword [edi]
inc dword [ebp - 0x2c]
movzx eax, byte [eax + 0x3a]
cmp dword [ebp - 0x2c], eax
jl 0x402640
jmp 0x4023c7
mov dword [esp], 0x4021b0
movzx eax, word [eax]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x4021cf
mov eax, dword [edi]
movzx eax, word [eax + 2]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x4021f0
mov eax, dword [edi]
movzx eax, word [eax + 4]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x40220f
mov eax, dword [edi]
movzx eax, word [eax + 6]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x402230
mov eax, dword [edi]
movzx eax, word [eax + 8]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x402270
mov eax, dword [edi]
movzx eax, word [eax + 0xa]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x402298
mov eax, dword [edi]
add eax, 0xc
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x4022ab
mov eax, dword [edi]
movzx eax, word [eax + 0x2e]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x4022d0
mov eax, dword [edi]
movzx eax, word [eax + 0x30]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x4022ef
mov eax, dword [edi]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x40230c
mov eax, dword [edi]
movzx eax, word [eax + 0x38]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 0x402330
mov eax, dword [edi]
movzx eax, byte [eax + 0x3a]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
jmp 0x4023bc
mov dword [esp], 0x402350
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
jmp 0x4023b2