Function at 0x10017990
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x101c7480]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
jb 0x100179cd
cmp dword [ebp - 0x4c], 0xff
jbe 0x100179d4
xor eax, eax
jmp 0x10017f02
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x44], eax
jmp 0x100179eb
mov ecx, dword [ebp - 0x44]
add ecx, 0x178
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp + 8]
imul eax, dword [edx + 0x28], 0x178
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x24]
cmp dword [ebp - 0x44], eax
jae 0x10017a69
mov edx, dword [ebp - 0x44]
cmp dword [edx + 0x24], 0
jne 0x10017a17
cmp dword [ebp - 0x38], 0
jne 0x10017a15
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
jmp 0x10017a64
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 0x24], 1
je 0x10017a64
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x286c]
jne 0x10017a64
mov edx, dword [ebp - 0x44]
movzx eax, word [edx + 0x1c]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x2870]
cmp eax, edx
jne 0x10017a5b
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x10]
cmp edx, dword [ecx + 0x28]
jne 0x10017a5b
xor eax, eax
jmp 0x10017f02
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
jmp 0x100179df
cmp dword [ebp - 0x38], 0
je 0x10017a7d
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x54]
cmp edx, dword [ecx + 0x2898]
jb 0x10017a84
xor eax, eax
jmp 0x10017f02
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [eax + 0x2c]
jbe 0x10017a98
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x4c], eax
imul ecx, dword [ebp - 0x4c], 0x3c
push ecx
call fcn.10005894
add esp, 4
mov edx, dword [ebp - 0x38]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x28], 0
jne 0x10017abb
xor eax, eax
jmp 0x10017f02
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x4c]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x24], 2
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x286c]
mov eax, dword [ecx + 0x2870]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 0x10]
movzx eax, word [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x38]
mov word [ecx + 0xc], ax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x84], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x7c], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x170], eax
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + 6]
cmp eax, 0xff
jne 0x10017b9c
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ecx + 0x14]
mov dword [ebp - 0x58], edx
jmp 0x10017ba6
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 6]
mov dword [ebp - 0x58], ecx
mov dl, byte [ebp - 0x58]
mov byte [ebp - 0x39], dl
movzx eax, byte [ebp - 0x39]
add eax, 1
and eax, 3
mov byte [ebp - 0x39], al
movzx ecx, byte [ebp - 0x39]
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx + 0x14]
cmp ecx, eax
jne 0x10017bd5
movzx ecx, byte [ebp - 0x39]
add ecx, 1
and ecx, 3
mov byte [ebp - 0x39], cl
mov edx, dword [ebp - 0x38]
mov al, byte [ebp - 0x39]
mov byte [edx + 0x14], al
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx + 7]
cmp edx, 0xff
jne 0x10017bf9
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + 0x15]
mov dword [ebp - 0x5c], ecx
jmp 0x10017c03
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + 7]
mov dword [ebp - 0x5c], eax
mov cl, byte [ebp - 0x5c]
mov byte [ebp - 0x3a], cl
movzx edx, byte [ebp - 0x3a]
add edx, 1
and edx, 3
mov byte [ebp - 0x3a], dl
movzx eax, byte [ebp - 0x3a]
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ecx + 0x15]
cmp eax, edx
jne 0x10017c32
movzx eax, byte [ebp - 0x3a]
add eax, 1
and eax, 3
mov byte [ebp - 0x3a], al
mov ecx, dword [ebp - 0x38]
mov dl, byte [ebp - 0x3a]
mov byte [ecx + 0x15], dl
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x40], ecx
jmp 0x10017c4f
mov edx, dword [ebp - 0x40]
add edx, 0x3c
mov dword [ebp - 0x40], edx
imul eax, dword [ebp - 0x4c], 0x3c
mov ecx, dword [ebp - 0x38]
add eax, dword [ecx + 0x28]
cmp dword [ebp - 0x40], eax
jae 0x10017cbd
xor edx, edx
mov eax, dword [ebp - 0x40]
mov word [eax], dx
xor ecx, ecx
mov edx, dword [ebp - 0x40]
mov word [edx + 2], cx
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx + 0x26], ax
xor edx, edx
mov eax, dword [ebp - 0x40]
mov word [eax + 0x28], dx
mov ecx, dword [ebp - 0x40]
add ecx, 0x2c
push ecx
call fcn.10006a28
add esp, 4
mov edx, dword [ebp - 0x40]
add edx, 0x34
push edx
call fcn.10006a28
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx + 4], ax
push 0x20
push 0
mov edx, dword [ebp - 0x40]
add edx, 6
push edx
call fcn.10003332
add esp, 0xc
jmp 0x10017c46
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x240
jae 0x10017cdf
mov dword [ebp - 0x50], 0x240
jmp 0x10017cef
cmp dword [ebp - 0x50], 0x1000
jbe 0x10017cef
mov dword [ebp - 0x50], 0x1000
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x50]
mov dword [edx + 0xb0], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0
jne 0x10017d1c
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x30], 0
jne 0x10017d1c
mov eax, dword [ebp - 0x38]
mov dword [eax + 0xb4], 0x10000
jmp 0x10017d98
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0
je 0x10017d2e
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x30], 0
jne 0x10017d64
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax + 0x10]
cmp edx, dword [ecx + 0x30]
jbe 0x10017d47
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x60], ecx
jmp 0x10017d50
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
shr ecx, 0x10
shl ecx, 0xc
mov edx, dword [ebp - 0x38]
mov dword [edx + 0xb4], ecx
jmp 0x10017d98
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax + 0x10]
cmp edx, dword [ecx + 0x30]
jae 0x10017d7d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x64], ecx
jmp 0x10017d86
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
shr ecx, 0x10
shl ecx, 0xc
mov edx, dword [ebp - 0x38]
mov dword [edx + 0xb4], ecx
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0xb4], 0x1000
jae 0x10017db6
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0xb4], 0x1000
jmp 0x10017dd2
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0xb4], 0x10000
jbe 0x10017dd2
mov eax, dword [ebp - 0x38]
mov dword [eax + 0xb4], 0x10000
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0
jne 0x10017de4
mov dword [ebp - 0x48], 0x10000
jmp 0x10017df3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
shr eax, 0x10
shl eax, 0xc
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
cmp dword [ebp - 0x48], eax
jbe 0x10017e15
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x1000
jae 0x10017e27
mov dword [ebp - 0x48], 0x1000
jmp 0x10017e37
cmp dword [ebp - 0x48], 0x10000
jbe 0x10017e37
mov dword [ebp - 0x48], 0x10000
mov byte [ebp - 0x34], 0x83
mov byte [ebp - 0x33], 0xff
mov edx, dword [ebp - 0x38]
movzx eax, word [edx + 0xe]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x30], ax
mov cl, byte [ebp - 0x39]
mov byte [ebp - 0x2e], cl
mov dl, byte [ebp - 0x3a]
mov byte [ebp - 0x2d], dl
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xb0]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x84]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x7c]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x80]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.1000135c
add esp, 0x14
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003260
mov esp, ebp
pop ebp
ret