Function at 0x1012df00
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x1017438b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10206870]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x18], vtable.CTList_class_CDevice_.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
call fcn.1013c470
cmp dword [eax + 0x3c], ebx
jne 0x1012df6a
mov eax, dword [esp + 0x34]
mov esi, dword [eax + 0xc]
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100014a0
mov eax, esi
jmp 0x1012e1b7
mov esi, dword [esp + 0x34]
cmp dword [esi + 0xc], ebx
jne 0x1012df94
push 0xc
call fcn.1003ddbb
add esp, 4
cmp eax, ebx
je 0x1012df8f
mov dword [eax], vtable.CTList_class_CDevice_.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x1012df91
xor eax, eax
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
cmp eax, ebx
jne 0x1012e186
call fcn.1013c470
mov eax, dword [eax + 0x3c]
lea edx, [esp + 0x18]
push edx
push 0x1700
push 0x1022
mov ecx, eax
call fcn.10074900
test eax, eax
jle 0x1012e186
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x1012e184
mov eax, ebx
mov edi, dword [eax + 4]
test edi, edi
je 0x1012e184
or eax, 0xffffffff
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x1012e010
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x14]
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 + 0x14]
mov ecx, dword [ebp + 0x5c]
mov esi, dword [ebp + 0x58]
and eax, 7
imul ecx, eax
mov eax, 1
or dl, 0xff
cmp esi, eax
jle 0x1012e030
add eax, eax
add dl, dl
cmp eax, esi
jl 0x1012e028
movzx eax, dl
and eax, dword [ebp + 0x1c]
cmp eax, ecx
je 0x1012e05b
test ebx, ebx
je 0x1012e184
mov eax, dword [ebx + 8]
test eax, eax
je 0x1012e184
mov edi, dword [eax + 4]
mov ebx, eax
test edi, edi
jne 0x1012dfe1
jmp 0x1012e184
movzx esi, byte [edi + 0x15]
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 0xc]
movzx ebx, byte [edi + 0x14]
push edi
mov dword [esp + 0x3c], esi
call fcn.100014e0
cmp ebx, 0xffffffff
je 0x1012e184
cmp esi, 0xffffffff
je 0x1012e184
call fcn.1013c470
mov eax, dword [eax + 0x30]
test eax, eax
je 0x1012e184
mov edi, dword [eax + 4]
test edi, edi
je 0x1012e184
mov eax, dword [edi + 4]
test eax, eax
je 0x1012e184
lea esp, [esp]
test byte [eax + 4], 1
je 0x1012e16c
mov ecx, dword [eax + 0x18]
movzx edx, word [ecx + 4]
movzx esi, dx
mov ebp, 0x1022
cmp si, bp
jne 0x1012e0fc
movzx esi, word [ecx + 6]
mov ebp, 0x1701
cmp si, bp
jne 0x1012e0fc
movzx edx, byte [eax + 0x14]
cmp edx, ebx
jne 0x1012e16c
movzx ecx, byte [eax + 0x15]
cmp ecx, dword [esp + 0x38]
jne 0x1012e16c
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 0xc]
push eax
jmp 0x1012e167
movzx esi, dx
mov ebp, 0x1022
cmp si, bp
jne 0x1012e117
movzx esi, word [ecx + 6]
mov ebp, 0x1702
cmp si, bp
je 0x1012e14d
movzx esi, dx
mov ebp, 0x1022
cmp si, bp
jne 0x1012e132
movzx esi, word [ecx + 6]
mov ebp, 0x1703
cmp si, bp
je 0x1012e14d
movzx edx, dx
mov esi, 0x1022
cmp dx, si
jne 0x1012e16c
movzx ecx, word [ecx + 6]
mov edx, 0x1704
cmp cx, dx
jne 0x1012e16c
movzx ecx, byte [eax + 0x14]
cmp ecx, ebx
jne 0x1012e16c
movzx edx, byte [eax + 0x15]
cmp edx, dword [esp + 0x38]
jne 0x1012e16c
push eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0xc]
call fcn.100014e0
test edi, edi
je 0x1012e184
mov eax, dword [edi + 8]
test eax, eax
je 0x1012e184
mov edi, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x1012e0b0
xor ebx, ebx
mov ecx, dword [esp + 0x34]
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x2c], 0xffffffff
mov ecx, dword [esp + 0x1c]
mov esi, ecx
cmp ecx, ebx
je 0x1012e1b5
nop
mov esi, dword [esi + 8]
cmp ecx, ebx
je 0x1012e1af
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, esi
cmp esi, ebx
jne 0x1012e1a0
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8