Function at 0x10126020
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x10174322
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10206870]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [esp + 0x3c]
xor esi, esi
mov dword [esp + 0x20], vtable.CTList_class_CDevice_.0
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], esi
call fcn.1013c470
cmp dword [eax + 0x3c], esi
jne 0x10126088
mov esi, dword [edi + 0xc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xffffffff
call fcn.100014a0
mov eax, esi
jmp 0x101264c7
cmp dword [edi + 0xc], esi
jne 0x101260ae
push 0xc
call fcn.1003ddbb
add esp, 4
cmp eax, esi
je 0x101260a9
mov dword [eax], vtable.CTList_class_CDevice_.0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
jmp 0x101260ab
xor eax, eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x10126491
or eax, 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
call fcn.1013c470
mov eax, dword [eax + 0x3c]
lea ecx, [esp + 0x20]
push ecx
push 0x1530
push 0x1022
mov ecx, eax
call fcn.10074900
test eax, eax
jle 0x101262b1
mov eax, dword [esp + 0x24]
mov ebp, eax
test eax, eax
je 0x101262b1
mov esi, dword [eax + 4]
test esi, esi
je 0x101262b1
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10126135
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x1c]
push eax
movzx eax, byte [esi + 0x16]
push 0x60
push eax
movzx eax, byte [esi + 0x15]
push eax
movzx eax, byte [esi + 0x14]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x5c]
mov edi, dword [ebx + 0x58]
and eax, 7
imul ecx, eax
mov eax, 1
or dl, 0xff
cmp edi, eax
jle 0x10126158
lea ecx, [ecx]
add eax, eax
add dl, dl
cmp eax, edi
jl 0x10126150
movzx eax, dl
and eax, dword [ebx + 0x1c]
cmp eax, ecx
je 0x10126183
test ebp, ebp
je 0x101262b1
mov eax, dword [ebp + 8]
test eax, eax
je 0x101262b1
mov esi, dword [eax + 4]
mov ebp, eax
test esi, esi
jne 0x10126106
jmp 0x101262b1
movzx ecx, byte [esi + 0x15]
movzx edi, byte [esi + 0x14]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 0xc]
push esi
mov dword [esp + 0x1c], edi
call fcn.100014e0
cmp edi, 0xffffffff
je 0x101262b1
cmp dword [esp + 0x14], 0xffffffff
je 0x101262b1
call fcn.1013c470
mov eax, dword [eax + 0x30]
test eax, eax
je 0x101262b1
mov edi, dword [eax + 4]
test edi, edi
je 0x101262b1
mov eax, dword [edi + 4]
test eax, eax
je 0x101262b1
lea ebx, [ebx]
test byte [eax + 4], 1
je 0x10126299
mov ecx, dword [eax + 0x18]
movzx edx, word [ecx + 4]
movzx esi, dx
mov ebp, 0x1022
cmp si, bp
jne 0x1012620c
movzx esi, word [ecx + 6]
mov ebp, 0x1531
cmp si, bp
je 0x10126278
movzx esi, dx
mov ebp, 0x1022
cmp si, bp
jne 0x10126227
movzx esi, word [ecx + 6]
mov ebp, 0x1532
cmp si, bp
je 0x10126278
movzx esi, dx
mov ebp, 0x1022
cmp si, bp
jne 0x10126242
movzx esi, word [ecx + 6]
mov ebp, 0x1533
cmp si, bp
je 0x10126278
movzx esi, dx
mov ebp, 0x1022
cmp si, bp
jne 0x1012625d
movzx esi, word [ecx + 6]
mov ebp, 0x1534
cmp si, bp
je 0x10126278
movzx edx, dx
mov esi, 0x1022
cmp dx, si
jne 0x10126299
movzx ecx, word [ecx + 6]
mov edx, 0x1535
cmp cx, dx
jne 0x10126299
movzx ecx, byte [eax + 0x14]
cmp ecx, dword [esp + 0x18]
jne 0x10126299
movzx edx, byte [eax + 0x15]
cmp edx, dword [esp + 0x14]
jne 0x10126299
push eax
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0xc]
call fcn.100014e0
test edi, edi
je 0x101262b1
mov eax, dword [edi + 8]
test eax, eax
je 0x101262b1
mov edi, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x101261e0
call fcn.1013c470
mov eax, dword [eax + 0x3c]
lea ecx, [esp + 0x20]
push ecx
push 0x1580
push 0x1022
mov ecx, eax
call fcn.10074900
test eax, eax
jle 0x10126491
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x1012637c
mov edi, dword [ebp + 4]
test edi, edi
je 0x1012637c
mov edi, edi
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x1012631f
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x1c]
push eax
movzx eax, byte [edi + 0x16]
push 0x60
push eax
movzx eax, byte [edi + 0x15]
push eax
movzx eax, byte [edi + 0x14]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x5c]
mov esi, dword [ebx + 0x58]
and eax, 7
imul ecx, eax
mov eax, 1
or dl, 0xff
cmp esi, eax
jle 0x1012633f
add eax, eax
add dl, dl
cmp eax, esi
jl 0x10126337
movzx eax, dl
and eax, dword [ebx + 0x1c]
cmp eax, ecx
je 0x1012635f
test ebp, ebp
je 0x1012637c
mov eax, dword [ebp + 8]
test eax, eax
je 0x1012637c
mov edi, dword [eax + 4]
mov ebp, eax
test edi, edi
jne 0x101262f0
jmp 0x1012637c
movzx ecx, byte [edi + 0x14]
movzx edx, byte [edi + 0x15]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0xc]
push edi
mov dword [esp + 0x18], edx
call fcn.100014e0
cmp dword [esp + 0x18], 0xffffffff
je 0x10126491
cmp dword [esp + 0x14], 0xffffffff
je 0x10126491
call fcn.1013c470
mov eax, dword [eax + 0x30]
test eax, eax
je 0x10126491
mov edi, dword [eax + 4]
test edi, edi
je 0x10126491
mov eax, dword [edi + 4]
test eax, eax
je 0x10126491
jmp 0x101263c0
test byte [eax + 4], 1
je 0x10126479
mov ecx, dword [eax + 0x18]
movzx edx, word [ecx + 4]
movzx esi, dx
mov ebx, 0x1022
cmp si, bx
jne 0x101263ec
movzx esi, word [ecx + 6]
mov ebx, 0x1581
cmp si, bx
je 0x10126458
movzx esi, dx
mov ebx, 0x1022
cmp si, bx
jne 0x10126407
movzx esi, word [ecx + 6]
mov ebx, 0x1582
cmp si, bx
je 0x10126458
movzx esi, dx
mov ebx, 0x1022
cmp si, bx
jne 0x10126422
movzx esi, word [ecx + 6]
mov ebx, 0x1583
cmp si, bx
je 0x10126458
movzx esi, dx
mov ebx, 0x1022
cmp si, bx
jne 0x1012643d
movzx esi, word [ecx + 6]
mov ebx, 0x1584
cmp si, bx
je 0x10126458
movzx edx, dx
mov esi, 0x1022
cmp dx, si
jne 0x10126479
movzx ecx, word [ecx + 6]
mov edx, 0x1585
cmp cx, dx
jne 0x10126479
movzx ecx, byte [eax + 0x14]
cmp ecx, dword [esp + 0x18]
jne 0x10126479
movzx edx, byte [eax + 0x15]
cmp edx, dword [esp + 0x14]
jne 0x10126479
push eax
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0xc]
call fcn.100014e0
test edi, edi
je 0x10126491
mov eax, dword [edi + 8]
test eax, eax
je 0x10126491
mov edi, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x101263c0
mov ecx, dword [esp + 0x3c]
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x34], 0xffffffff
mov ecx, dword [esp + 0x24]
mov esi, ecx
test ecx, ecx
je 0x101264c5
lea ebx, [ebx]
mov esi, dword [esi + 8]
test ecx, ecx
je 0x101264bf
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, esi
test esi, esi
jne 0x101264b0
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4