Function at 0x417010
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x1c], 0
push edi
mov edi, dword [ebp + 8]
je 0x417041
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x417041
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor ebx, ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x1c], bl
jmp 0x417043
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov eax, esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], ebx
call fcn.004172d0
mov edi, 4
cmp dword [esi + 0x28], edi
mov dword [esp + 0x10], ebx
jb 0x417203
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, eax
mov eax, dword [esi + 0x28]
cmp eax, edi
mov dword [esp + 0x18], ecx
ja 0x417095
mov edx, dword [esi + 0x18]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x14], edx
mov dword [esi + 0x20], ebx
jmp 0x4170a1
add dword [esi + 0x14], edi
add dword [esi + 0x20], edi
add eax, 0xfffffffc
mov dword [esi + 0x28], eax
cmp ecx, ebx
mov dword [esp + 0x14], ebx
jbe 0x417188
lea ecx, [ecx]
cmp dword [esi + 0x28], ebx
jbe 0x417188
mov edi, 2
cmp dword [esi + 0x28], edi
jb 0x417203
mov eax, dword [esi + 0x14]
movzx eax, word [eax]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ebx, ax
mov eax, dword [esi + 0x28]
cmp eax, edi
ja 0x4170ee
mov ecx, dword [esi + 0x18]
xor edi, edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x14], ecx
mov dword [esi + 0x20], edi
jmp 0x4170fc
add dword [esi + 0x14], edi
add dword [esi + 0x20], edi
add eax, 0xfffffffe
mov dword [esi + 0x28], eax
xor edi, edi
push 0xb
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, edi
je 0x41711d
mov dword [eax + 2], edi
mov dword [eax + 6], edi
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xa], 0
mov edi, eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x10]
push edx
push edi
call fcn.00416870
test al, al
je 0x4171d9
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea eax, [esi + 4]
mov word [esp + 0x24], bx
mov dword [esp + 0x28], edi
call fcn.00415fb0
mov edx, dword [esi + 0x14]
mov ecx, dword [esp + 0x10]
add edx, ecx
cmp dword [esi + 0x18], edx
ja 0x417171
mov eax, dword [esi + 0x28]
cmp ecx, eax
jg 0x417171
add dword [esi + 0x20], ecx
sub eax, ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x14]
add eax, 1
xor ebx, ebx
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jb 0x4170b0
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
lea eax, [esi + 4]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
cmp eax, ebx
mov dword [esi + 0x30], ecx
je 0x4171a2
mov edx, dword [esi + 0x20]
mov dword [eax], edx
cmp byte [esi + 0x1c], 0
je 0x4171bf
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x4171bf
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x18], ebx
mov byte [esi + 0x1c], 0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x417203
cmp byte [edi + 0xa], 0
je 0x4171fa
mov eax, dword [edi + 6]
test eax, eax
je 0x4171fa
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [edi + 6], 0
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc