Function at 0x10003020
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018bab
mov eax, dword fs:[0]
push eax
sub esp, 0x55c
mov eax, dword [0x10026d00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0xe4], ebx
mov eax, dword [esi + 0xe8]
mov edx, dword [esi + 0xf4]
lea ecx, [esi + 0xf4]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xec], ebx
mov eax, dword [esi + 0xf8]
mov edx, dword [esi + 0x104]
lea ecx, [esi + 0x104]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0xf8], ebx
mov dword [esi + 0x100], ebx
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x108], ebx
mov eax, dword [esi + 0x10c]
mov edx, dword [esi + 0x118]
lea ecx, [esi + 0x118]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x110], ebx
mov eax, dword [esi + 0x11c]
mov edx, dword [esi + 0x128]
lea ecx, [esi + 0x128]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x124], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x12c], ebx
mov eax, dword [esi + 0x130]
mov edx, dword [esi + 0x13c]
lea ecx, [esi + 0x13c]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x130], ebx
mov dword [esi + 0x138], ebx
mov dword [esi + 0x134], ebx
mov eax, dword [esi + 0x140]
mov edx, dword [esi + 0x14c]
lea ecx, [esi + 0x14c]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x140], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x144], ebx
xor ecx, ecx
xor eax, eax
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
mov dword [esi + 0x158], ecx
mov dword [esi + 0x15c], eax
mov byte [esi + 0x160], bl
mov dword [ebp - 0x554], ebx
mov dword [ebp - 0x550], ebx
mov dword [ebp - 0x54c], ebx
mov dword [ebp - 0x548], ebx
lea edx, [ebp - 0x554]
push edx
push 1
push 2
push ebx
push 0x1001b230
push 0x10002b80
mov dword [ebp - 4], ebx
call fcn.10003720
add esp, 0x18
cmp dword [ebp - 0x554], ebx
jne 0x100035d1
lea eax, [ebp - 0x554]
push eax
push 1
push 2
push ebx
push 0x1001b240
push 0x10002b80
call fcn.10003720
add esp, 0x18
cmp dword [ebp - 0x554], ebx
jne 0x100035d1
push 6
push ebx
push ebx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp - 0x564], eax
cmp eax, 0xffffffff
je 0x100035c7
mov edx, dword [esi + 0x9c]
lea ecx, [esi + 0x9c]
mov dword [ebp - 0x538], 0x1c
mov dword [ebp - 0x534], ebx
mov dword [ebp - 0x530], ebx
mov dword [ebp - 0x52c], ebx
mov dword [ebp - 0x528], ebx
mov dword [ebp - 0x524], ebx
mov dword [ebp - 0x520], ebx
test dl, 1
je 0x1000325a
and edx, 0xfffffffe
mov dword [ecx], edx
call fcn.10002070
mov eax, dword [ebp - 0x564]
cmp dword [esi + 0xa8], ebx
je 0x10003279
mov ecx, dword [esi + 0xa4]
mov edx, dword [esi + 0xa0]
mov byte [ecx + edx], bl
mov ecx, dword [esi + 0xa0]
jmp 0x1000327e
mov ecx, 0x1001b250
lea edx, [ebp - 0x538]
push edx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInfoA]
test eax, eax
je 0x100035ae
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x53c], eax
mov ecx, dword [esi + 0xe4]
shr ecx, 1
not cl
test cl, 1
je 0x100032ba
cmp dword [esi + 0xfc], ebx
jmp 0x100032c0
cmp dword [esi + 0xec], ebx
sete al
cmp al, bl
je 0x100035b8
mov edx, dword [ebp - 0x53c]
push ebx
push edx
lea eax, [ebp - 0x55c]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
test eax, eax
jne 0x100035b8
mov eax, dword [ebp - 0x55c]
cmp eax, dword [ebp - 0x53c]
je 0x100035b8
push ebx
push eax
lea ecx, [ebp - 0x568]
push ecx
mov dword [ebp - 0x568], ebx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_ID_Size]
test eax, eax
jne 0x100035ae
mov eax, dword [ebp - 0x55c]
push ebx
push 0xc9
lea edx, [ebp - 0xdc]
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDA]
test eax, eax
jne 0x100035ae
mov edx, dword [ebp - 0x54c]
mov eax, dword [ebp - 0x550]
mov ecx, dword [ebp - 0x568]
sub edx, eax
sar edx, 2
mov byte [ebp + ecx - 0xdc], bl
mov dword [ebp - 0x540], ebx
test edx, edx
je 0x1000359d
mov ecx, dword [ebp - 0x540]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + 0x10]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.1000b599
mov ecx, dword [ebp - 0x540]
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x550]
je 0x100033b8
mov edx, dword [ebp - 0x54c]
sub edx, eax
inc ecx
sar edx, 2
mov dword [ebp - 0x540], ecx
cmp ecx, edx
jb 0x10003365
mov ecx, dword [ebp - 0x55c]
mov dword [ebp - 0x53c], ecx
jmp 0x100032a3
mov edx, dword [eax + ecx*4]
push 0x1001b240
push edx
call fcn.10001000
add esp, 8
test eax, eax
je 0x100033fa
lea eax, [ebp - 0xdc]
push eax
lea ecx, [esi + 0xe4]
call fcn.100027f0
mov ecx, dword [ebp - 0x55c]
mov dword [esi + 0x150], 1
mov dword [ebp - 0x53c], ecx
jmp 0x100032a3
mov eax, dword [ebp - 0x53c]
push ebx
lea ecx, [ebp - 0x560]
push ecx
lea edx, [ebp - 0x4dc]
push edx
push ebx
push 0xa
push eax
mov dword [ebp - 0x560], 0x400
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Registry_PropertyA]
test eax, eax
je 0x10003442
mov ecx, dword [ebp - 0x55c]
mov dword [ebp - 0x554], 0xa0000000
mov dword [ebp - 0x53c], ecx
jmp 0x100032a3
mov ecx, dword [ebp - 0x560]
mov eax, dword [ebp - 0x540]
mov edx, dword [ebp - 0x550]
mov byte [ebp + ecx - 0x4dc], bl
mov ecx, dword [edx + eax*4]
mov eax, dword [ecx + 0x1c]
add ecx, 0x1c
mov dword [ebp - 0x558], ecx
mov ecx, dword [ecx + 4]
sub ecx, eax
sar ecx, 2
mov dword [ebp - 0x53c], ebx
test ecx, ecx
je 0x1000359d
mov ecx, dword [ebp - 0x53c]
mov ecx, dword [eax + ecx*4]
lea edx, [ebp - 0x4dc]
push edx
add ecx, 0x10
call fcn.10002890
test eax, eax
je 0x100034ce
mov edx, dword [ebp - 0x558]
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov ecx, dword [ebp - 0x53c]
sub edx, eax
inc ecx
sar edx, 2
mov dword [ebp - 0x53c], ecx
cmp ecx, edx
jb 0x10003480
mov ecx, dword [ebp - 0x55c]
mov dword [ebp - 0x53c], ecx
jmp 0x100032a3
lea eax, [ebp - 0xdc]
push eax
lea ecx, [esi + 0xe4]
call fcn.100027f0
mov ecx, dword [ebp - 0x550]
mov edx, dword [ebp - 0x540]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax + 0x14]
push ecx
lea ecx, [esi + 0x108]
call fcn.100027f0
mov edx, dword [ebp - 0x550]
mov eax, dword [ebp - 0x540]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x558]
mov eax, dword [ebp - 0x53c]
mov dword [esi + 0x150], edx
mov edx, dword [ecx]
mov edx, dword [edx + eax*4]
mov edx, dword [edx]
mov dword [esi + 0x154], edx
mov edx, dword [ecx]
mov edx, dword [edx + eax*4]
movzx edx, word [edx + 4]
mov word [esi + 0x158], dx
mov ecx, dword [ecx]
mov edx, dword [ecx + eax*4]
add edx, 0x10
push edx
lea ecx, [esi + 0x12c]
call fcn.10002710
mov ecx, dword [ebp - 0x558]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x53c]
mov edx, dword [edx + eax*4]
movzx edx, word [edx + 6]
mov word [esi + 0x15a], dx
mov edx, dword [ecx]
mov edx, dword [edx + eax*4]
movzx edx, word [edx + 8]
mov word [esi + 0x15c], dx
mov edx, dword [ecx]
mov edx, dword [edx + eax*4]
movzx edx, word [edx + 0xa]
mov word [esi + 0x15e], dx
mov ecx, dword [ecx]
mov edx, dword [ecx + eax*4]
mov al, byte [edx + 0xc]
mov byte [esi + 0x160], al
mov ecx, dword [ebp - 0x55c]
mov dword [ebp - 0x53c], ecx
jmp 0x100032a3
mov dword [ebp - 0x554], 0xa0000000
mov edx, dword [ebp - 0x564]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
jmp 0x100035d1
mov dword [ebp - 0x554], 0xa0000000
mov eax, 0x3001
mov word [ebp - 0x51c], ax
mov eax, 0x3005
mov edx, 0x3004
mov word [ebp - 0x50c], ax
mov word [ebp - 0x514], dx
mov eax, 0x3008
mov edx, 0x3006
mov ecx, 0x20
mov word [ebp - 0x4fc], ax
mov word [ebp - 0x504], dx
mov eax, 0x300a
mov edx, 0x3009
mov word [ebp - 0x4ec], ax
mov word [ebp - 0x4f4], dx
mov eax, 0xa1c
mov edx, 0x300b
mov dword [ebp - 0x518], ecx
mov dword [ebp - 0x510], ecx
mov dword [ebp - 0x508], ecx
mov dword [ebp - 0x500], ecx
mov dword [ebp - 0x4f8], ecx
mov dword [ebp - 0x4f0], ecx
mov dword [ebp - 0x4e8], ecx
mov word [ebp - 0x4e4], dx
mov dword [ebp - 0x4e0], 0x60
cmp word [esi + 0x15a], ax
jne 0x100036df
movzx edx, word [esi + 0x15c]
mov eax, 0x2000
cmp dx, ax
jne 0x100036b0
mov eax, dword [esi + 8]
test eax, 0xfffffffd
jne 0x100036b0
or eax, 0x80
mov edx, 0x8201
mov dword [esi + 8], eax
cmp word [esi + 0x15e], dx
jne 0x100036df
or eax, ecx
mov dword [esi + 8], eax
jmp 0x100036df
mov eax, 0x3000
cmp dx, ax
jb 0x100036df
or dword [esi + 8], 0x10
mov eax, dword [esi + 8]
cmp dx, word [ebp + ebx*8 - 0x51c]
je 0x100036d3
inc ebx
cmp ebx, 8
jb 0x100036c1
jmp 0x100036df
mov ecx, dword [ebp + ebx*8 - 0x518]
or ecx, eax
mov dword [esi + 8], ecx
mov esi, dword [ebp - 0x554]
lea ecx, [ebp - 0x554]
mov dword [ebp - 4], 0xffffffff
call fcn.100025b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000c35a
mov esp, ebp
pop ebp
ret