Function at 0x41af70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov dword [ebp - 0x38], edx
mov ecx, 0xc
mov edx, dword [0x458d30]
push edi
call fcn.00412330
mov ebx, eax
push 0x2000
push 4
push dword [0x458d0c]
mov dword [ebp - 0x20], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0x800
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebx + 8], eax
xor esi, esi
mov eax, dword [0x459190]
xor edx, edx
mov edi, dword [0x45918c]
mov dword [ebp - 0x2c], esi
mov ecx, dword [eax + 0x10]
movzx eax, word [eax + 0x24]
add ecx, edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], eax
cmp dx, ax
jae 0x41b4a1
mov edi, edi
movzx esi, si
shl esi, 6
add esi, ecx
mov eax, dword [esi + 4]
cmp eax, 2
je 0x41aff9
cmp eax, 0xb
jne 0x41b482
cmp dword [esi + 0x38], 0x18
jne 0x41b4af
cmp dword [esi + 0x3c], 0
jne 0x41b4af
push 0
push 0x18
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.00447c30
mov ecx, dword [0x459190]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x18]
add eax, edi
mov dword [ebp - 0xc], edx
mov ecx, dword [ecx + 0x10]
mov edx, 0x6fffffff
mov dword [ebp - 0x10], eax
add ecx, edi
movzx eax, word [esi + 0x28]
mov esi, ecx
shl eax, 6
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + esi + 0x18]
add eax, edi
mov dword [ebp - 8], eax
call fcn.0041aec0
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0x18], eax
xor eax, eax
movzx edx, dx
cmp ax, dx
jae 0x41b08a
jmp 0x41b070
movzx eax, cx
shl eax, 6
cmp dword [eax + esi + 4], 0x6ffffffe
je 0x41b1aa
inc ecx
cmp cx, dx
jb 0x41b070
xor esi, esi
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0xc]
mov eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0
test ecx, ecx
jb 0x41b443
ja 0x41b0b4
cmp dword [ebp - 0x28], eax
jbe 0x41b443
mov edx, dword [ebp - 0x10]
jmp 0x41b0c0
lea eax, [eax + eax*2]
cmp word [edx + eax*8 + 6], 0
lea edi, [edx + eax*8]
jne 0x41b2e1
push 0x218
push 4
push dword [0x458d0c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x218
push 0
push eax
mov dword [ebp - 4], eax
call fcn.0042e280
mov edx, dword [ebp - 4]
add esp, 0xc
mov byte [edx], 1
mov ecx, dword [edi + 8]
mov dword [edx + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [edx + 0xc], ecx
lea ecx, [edx + 0x18]
mov eax, dword [edi + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [edx + 0x14], eax
mov al, byte [edi + 4]
mov byte [edx + 1], al
mov eax, dword [edi]
add eax, dword [ebp - 8]
mov edi, eax
mov dword [ebp - 0x30], eax
lea edx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x41b130
sub edi, edx
test ecx, ecx
je 0x41b15c
lea eax, [edi + 1]
cmp eax, 0x100
ja 0x41b15c
push ecx
mov ecx, dword [ebp - 0x30]
mov edx, edi
call fcn.00413590
mov eax, dword [ebp - 4]
xor ecx, ecx
mov word [eax + edi*2 + 0x18], cx
cmp dword [ebp - 0x18], 0
je 0x41b3df
test esi, esi
je 0x41b3df
xor ecx, ecx
cmp dword [esi], ecx
je 0x41b3df
mov eax, dword [esi + 8]
jmp 0x41b180
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edx, dword [eax]
movzx ebx, word [esi + edi*2]
mov esi, dword [ebp - 0x1c]
cmp word [edx], bx
mov ebx, dword [ebp - 0x20]
mov edi, dword [esi]
je 0x41b28b
inc ecx
add eax, 4
cmp ecx, edi
jb 0x41b180
jmp 0x41b3df
mov eax, dword [eax + esi + 0x18]
add eax, edi
mov dword [ebp - 4], eax
je 0x41b08a
mov edx, dword [0x458d30]
mov ecx, 0xc
call fcn.00412330
push 0x28
mov esi, eax
mov dword [ebp - 0x1c], eax
push 4
push dword [0x458d0c]
mov dword [esi], 0
mov dword [esi + 4], 0xa
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, dword [ebp - 4]
mov dword [esi + 8], eax
mov edi, dword [edx + 8]
add edi, edx
push 0xc
push 4
push dword [0x458d0c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, dword [ebp - 4]
mov ebx, eax
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov cx, word [edi + 6]
mov word [ebx], cx
mov ecx, dword [edi + 8]
add ecx, dword [ebp - 8]
mov dword [ebx + 4], ecx
mov eax, dword [edx + 4]
add eax, dword [ebp - 8]
mov dword [ebx + 8], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x41b259
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push dword [esi + 8]
push 4
push dword [0x458d0c]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [esi]
mov edx, dword [ebp - 4]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], ebx
inc dword [esi]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x41b26c
add edi, eax
jmp 0x41b1f6
mov eax, dword [edx + 0xc]
test eax, eax
je 0x41b27d
add edx, eax
mov dword [ebp - 4], edx
jmp 0x41b1f1
mov edi, dword [0x45918c]
mov ebx, dword [ebp - 0x20]
jmp 0x41b08f
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x41b3df
mov edx, dword [ebp - 4]
mov edi, ecx
add edx, 0x118
lea eax, [edi + 1]
mov dword [ebp - 0x30], eax
mov al, byte [edi]
inc edi
test al, al
jne 0x41b2a7
sub edi, dword [ebp - 0x30]
test edx, edx
je 0x41b3df
lea eax, [edi + 1]
cmp eax, 0x100
ja 0x41b3df
push edx
mov edx, edi
call fcn.00413590
mov eax, dword [ebp - 4]
xor ecx, ecx
mov word [eax + edi*2 + 0x118], cx
jmp 0x41b3df
mov eax, dword [edi + 8]
or eax, dword [edi + 0xc]
je 0x41b359
mov al, byte [edi + 4]
and al, 0xf
cmp al, 3
je 0x41b418
push 0x218
push 4
push dword [0x458d0c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x218
push 0
push eax
mov dword [ebp - 4], eax
call fcn.0042e280
mov edx, dword [ebp - 4]
add esp, 0xc
mov byte [edx], 2
mov ecx, dword [edi + 8]
mov dword [edx + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [edx + 0xc], ecx
lea ecx, [edx + 0x18]
mov eax, dword [edi + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [edx + 0x14], eax
mov al, byte [edi + 4]
mov byte [edx + 1], al
mov eax, dword [edi]
add eax, dword [ebp - 8]
mov edi, eax
mov dword [ebp - 0x30], eax
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x41b350
jmp 0x41b3ba
push 0x218
push 4
push dword [0x458d0c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x218
push 0
push eax
mov dword [ebp - 4], eax
call fcn.0042e280
mov edx, dword [ebp - 4]
add esp, 0xc
mov byte [edx], 4
mov ecx, dword [edi + 8]
mov dword [edx + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [edx + 0xc], ecx
lea ecx, [edx + 0x18]
mov eax, dword [edi + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [edx + 0x14], eax
mov al, byte [edi + 4]
mov byte [edx + 1], al
mov eax, dword [edi]
add eax, dword [ebp - 8]
mov edi, eax
mov dword [ebp - 0x30], eax
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x41b3b3
sub edi, edx
test ecx, ecx
je 0x41b3df
lea eax, [edi + 1]
cmp eax, 0x100
ja 0x41b3df
push ecx
mov ecx, dword [ebp - 0x30]
mov edx, edi
call fcn.00413590
mov eax, dword [ebp - 4]
xor ecx, ecx
mov word [eax + edi*2 + 0x18], cx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
cmp ecx, eax
jne 0x41b407
add eax, eax
mov dword [ebx + 4], eax
shl eax, 2
push eax
push dword [ebx + 8]
push 4
push dword [0x458d0c]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [ebx]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 4]
mov dword [eax + ecx*4], edx
inc dword [ebx]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x14], eax
adc edi, 0
mov dword [ebp - 0x24], edi
cmp edi, ecx
jb 0x41b0c0
ja 0x41b43d
cmp eax, dword [ebp - 0x28]
jb 0x41b0c0
mov edi, dword [0x45918c]
test esi, esi
je 0x41b482
xor edi, edi
cmp dword [esi], edi
jbe 0x41b469
lea ecx, [ecx]
mov eax, dword [esi + 8]
push dword [eax + edi*4]
push 0
push dword [0x458d0c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
inc edi
cmp edi, dword [esi]
jb 0x41b450
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41b47c
call fcn.00412410
mov edi, dword [0x45918c]
mov eax, dword [0x459190]
mov esi, dword [ebp - 0x2c]
inc esi
mov dword [ebp - 0x2c], esi
movzx ecx, word [eax + 0x24]
mov dword [ebp - 0x24], ecx
cmp si, cx
mov ecx, dword [ebp - 0x34]
jb 0x41afe0
mov eax, dword [ebp - 0x38]
mov dword [eax], ebx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret