Function at 0x49aae0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
movsx edi, word [esp + 0x14]
shl edi, 6
add edi, dword [0x508488]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x49ad5f
xor bx, bx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
movsx eax, bx
lea ebp, [esi + eax*8]
mov ax, word [ebp + 0xbc]
test ax, ax
je 0x49ab38
mov ecx, dword [esp + 0x14]
push 0
movzx eax, ax
and ecx, 0xffff
shl ecx, 0x10
or eax, ecx
push eax
call fcn.004acd20
add esp, 8
mov ax, word [ebp + 0xbe]
test ax, ax
je 0x49ab61
mov ecx, dword [esp + 0x14]
push 0
movzx eax, ax
and ecx, 0xffff
shl ecx, 0x10
or eax, ecx
push eax
call fcn.004acd20
add esp, 8
inc bx
cmp bx, 0x80
jl 0x49ab09
mov eax, dword [esp + 0x14]
push eax
call fcn.0040dd80
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call fcn.004d4a20
mov ax, word [esp + 0x18]
add esp, 4
cmp ax, word [0x50e1e8]
jne 0x49ab9f
mov eax, dword [esp + 0x14]
push eax
call fcn.004d7e10
add esp, 4
lea ebp, [edi + 0x1e]
push ebp
call fcn.004b2290
add esp, 4
test eax, eax
je 0x49abe5
mov ebx, dword [esp + 0x14]
xor eax, eax
mov ax, word [esi + 0x12]
and ebx, 0xffff
shl ebx, 0x10
or eax, ebx
push eax
call fcn.004ad900
add esp, 4
cmp eax, dword [ebp]
jne 0x49abe5
push 0
xor eax, eax
mov ax, word [esi + 0x12]
or eax, ebx
push eax
call fcn.004acd20
add esp, 8
lea ebp, [edi + 0x14]
push ebp
call fcn.004b2290
add esp, 4
test eax, eax
je 0x49ac2b
mov ebx, dword [esp + 0x14]
xor eax, eax
mov ax, word [esi + 4]
and ebx, 0xffff
shl ebx, 0x10
or eax, ebx
push eax
call fcn.004ad900
add esp, 4
cmp eax, dword [ebp]
jne 0x49ac2b
push 0
xor eax, eax
mov ax, word [esi + 4]
or eax, ebx
push eax
call fcn.004acd20
add esp, 8
cmp dword [edi + 0x30], 0
je 0x49ac74
mov ebx, dword [esp + 0x14]
xor eax, eax
mov ax, word [esi + 0x4c]
and ebx, 0xffff
shl ebx, 0x10
or eax, ebx
push eax
call fcn.004ad900
add esp, 4
mov ebp, eax
mov ecx, dword [edi + 0x30]
push ecx
call fcn.004b2f80
add esp, 4
cmp ebp, eax
jne 0x49ac74
push 0
xor eax, eax
mov ax, word [esi + 0x4c]
or eax, ebx
push eax
call fcn.004acd20
add esp, 8
cmp dword [edi + 0x34], 0
je 0x49acbd
mov ebx, dword [esp + 0x14]
xor eax, eax
mov ax, word [esi + 0x4e]
and ebx, 0xffff
shl ebx, 0x10
or eax, ebx
push eax
call fcn.004ad900
add esp, 4
mov ebp, eax
mov ecx, dword [edi + 0x34]
push ecx
call fcn.004b2f80
add esp, 4
cmp ebp, eax
jne 0x49acbd
push 0
xor eax, eax
mov ax, word [esi + 0x4e]
or eax, ebx
push eax
call fcn.004acd20
add esp, 8
mov ax, word [esi + 6]
test ax, ax
je 0x49ace3
mov ecx, dword [esp + 0x14]
push 0
movzx eax, ax
and ecx, 0xffff
shl ecx, 0x10
or ecx, eax
push ecx
call fcn.004acd20
add esp, 8
mov ax, word [esi + 8]
test ax, ax
je 0x49ad0f
cmp dword [edi + 0xc], 0
je 0x49ad0f
mov ecx, dword [esp + 0x14]
push 0
movzx eax, ax
and ecx, 0xffff
shl ecx, 0x10
or ecx, eax
push ecx
call fcn.004acd20
add esp, 8
mov eax, dword [esp + 0x14]
push eax
call fcn.0049d390
add esp, 4
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
push 0
and eax, 0xffff
shl eax, 0x10
mov al, 1
push eax
call fcn.004acd20
add esp, 8
mov ecx, dword [edi]
push ecx
call fcn.00488e40
add esp, 4
mov ecx, dword [edi + 4]
push ecx
call fcn.00488e40
add esp, 4
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
pop ebp
pop edi
pop esi
pop ebx
ret