Function at 0x40db70
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov ax, word [esp + 0x18]
mov byte [esp], 0x14
mov byte [esp + 1], 0xe7
cmp ax, word [esp]
push esi
jne 0x40dbae
mov esi, dword [esp + 0xc]
push esi
call fcn.00404b20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub ecx, eax
push ecx
push eax
push esi
call fcn.00418140
push esi
call fcn.00404cd0
add esp, 0x14
pop esi
pop ecx
ret
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
sub edx, esi
cmp edx, 0xc
jae 0x40dbcd
push str.DNS_Message_too_short
call fcn.00410bc0
add esp, 4
pop esi
pop ecx
ret
mov al, byte [esi + 2]
and al, 0xf8
mov byte [esp + 0x10], al
xor eax, eax
mov ah, byte [esi + 4]
xor ecx, ecx
xor edx, edx
push ebp
mov ebp, dword [esp + 0x10]
mov al, byte [esi + 5]
mov word [esi + 4], ax
mov ch, byte [esi + 6]
xor eax, eax
test ebp, ebp
mov cl, byte [esi + 7]
mov word [esi + 6], cx
mov dh, byte [esi + 8]
mov dl, byte [esi + 9]
mov word [esi + 8], dx
mov ah, byte [esi + 0xa]
mov al, byte [esi + 0xb]
mov word [esi + 0xa], ax
jne 0x40dc20
push str.mDNSCoreReceive_ERROR_m_is_NULL
call fcn.00410bc0
add esp, 4
pop ebp
pop esi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
cmp eax, 4
jne 0x40dc43
mov eax, dword [ebx + 4]
cmp eax, dword [0x42deac]
je 0x40ddeb
cmp eax, dword [0x42dec8]
jmp 0x40dca3
cmp eax, 6
jne 0x40ddeb
mov eax, dword [ebx + 4]
cmp eax, dword [0x42deb0]
jne 0x40dc7c
mov ecx, dword [ebx + 8]
cmp ecx, dword [0x42deb4]
jne 0x40dc7c
mov edx, dword [ebx + 0xc]
cmp edx, dword [0x42deb8]
jne 0x40dc7c
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [0x42debc]
je 0x40ddeb
cmp eax, dword [0x42decc]
jne 0x40dca9
mov edx, dword [ebx + 8]
cmp edx, dword [0x42ded0]
jne 0x40dca9
mov eax, dword [ebx + 0xc]
cmp eax, dword [0x42ded4]
jne 0x40dca9
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [0x42ded8]
je 0x40ddeb
push edi
push ebp
call fcn.00404b20
mov edx, dword [ebp + 0xa8]
mov edi, dword [esp + 0x30]
add esp, 4
inc edx
mov dword [ebp + 0xa8], edx
mov eax, dword [edi]
cmp eax, 4
jne 0x40dcd6
mov edx, dword [edi + 4]
cmp edx, dword [0x42df08]
je 0x40dd33
cmp eax, 6
jne 0x40dd07
mov eax, dword [edi + 4]
cmp eax, dword [0x42df0c]
jne 0x40dd07
mov ecx, dword [edi + 8]
cmp ecx, dword [0x42df10]
jne 0x40dd07
mov edx, dword [edi + 0xc]
cmp edx, dword [0x42df14]
jne 0x40dd07
mov eax, dword [edi + 0x10]
cmp eax, dword [0x42df18]
je 0x40dd33
mov al, byte [esp + 0x1c]
cmp al, 0x80
je 0x40dd13
cmp al, 0xa8
jne 0x40dd37
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push edi
push eax
push ebx
push ecx
push esi
push ebp
call fcn.0041ebb0
add esp, 0x20
mov al, byte [esp + 0x1c]
test al, al
jne 0x40dd6a
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push edx
push edi
push eax
mov eax, dword [esp + 0x40]
push ebx
push ecx
push esi
mov ecx, ebp
call fcn.0040d290
add esp, 0x18
push ebp
call fcn.00404cd0
add esp, 4
pop edi
pop ebx
pop ebp
pop esi
pop ecx
ret
cmp al, 0x80
jne 0x40dd9d
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
push eax
push edi
push ecx
push ebx
push edx
push esi
push ebp
call fcn.0040d410
add esp, 0x20
push ebp
call fcn.00404cd0
add esp, 4
pop edi
pop ebx
pop ebp
pop esi
pop ecx
ret
cmp al, 0xa8
je 0x40dde1
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov ch, al
movzx eax, ah
movzx edx, cx
or edx, eax
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov ch, al
push edx
movzx eax, ah
push edi
movzx edx, cx
movzx ecx, byte [esi + 3]
or edx, eax
push edx
movzx edx, byte [esi + 2]
push ebx
push ecx
push edx
push str.Unknown_DNS_packet_type__02X_02X_from___15a:__5d_to___15a:__5d_on__p__ignored_
call fcn.00410bc0
add esp, 0x20
push ebp
call fcn.00404cd0
add esp, 4
pop edi
pop ebx
pop ebp
pop esi
pop ecx
ret