Function at 0x42cee0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4b8f98
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 8]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x64], ebp
jne 0x42cf1c
mov dword [esp + 0x1c], ebp
jmp 0x42cf28
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 3
mov dword [esp + 0x1c], eax
xor edi, edi
cmp dword [esp + 0x1c], ebp
mov dword [esp + 0x14], edi
jbe 0x42d26b
jmp 0x42cf40
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov ecx, dword [esi + 8]
cmp ecx, ebp
mov byte [esp + 0x64], 1
je 0x42cf64
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x42cf69
call fcn.00488c34
mov eax, dword [esi + 8]
lea ecx, [edi*8]
add eax, ecx
mov eax, dword [eax]
push eax
push str.DEVICES
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.004252c0
mov eax, dword [eax]
lea ecx, [esp + 0x4c]
push ecx
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x6c], 2
call fcn.00454420
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x64], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42cfc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
cmp dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebx
jbe 0x42d21f
lea ecx, [esp + 0x34]
call fcn.0041f500
mov dword [esp + 0x38], eax
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x38]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x38]
mov dword [eax], eax
mov eax, dword [esp + 0x38]
mov dword [eax + 8], eax
mov dword [esp + 0x3c], ebp
mov eax, dword [esp + 0x50]
cmp eax, ebp
mov byte [esp + 0x64], 3
je 0x42d01b
mov ecx, dword [esp + 0x54]
sub ecx, eax
sar ecx, 3
cmp ebx, ecx
jb 0x42d024
call fcn.00488c34
mov eax, dword [esp + 0x50]
mov eax, dword [eax + ebx*8 + 4]
push 0x4c1250
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.00454580
add esp, 0xc
call fcn.0045a356
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x42d32d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x40], edi
call fcn.0045a356
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x42d32d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
mov ecx, dword [esi + 8]
cmp ecx, ebp
mov byte [esp + 0x64], 4
je 0x42d09d
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 3
cmp dword [esp + 0x14], eax
jb 0x42d0a2
call fcn.00488c34
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 8]
add ecx, ecx
add ecx, ecx
add ecx, ecx
add eax, ecx
mov eax, dword [eax]
lea ecx, [eax - 0x10]
add edi, 0xfffffff0
cmp ecx, edi
je 0x42d10b
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x42d0fb
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x42d0fb
push ecx
call fcn.00403380
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x42d0ee
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x18]
jmp 0x42d109
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00401700
xor ebp, ebp
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], ebp
call fcn.00428490
mov eax, dword [eax]
mov edi, dword [esp + 0x44]
lea ecx, [eax - 0x10]
add edi, 0xfffffff0
cmp ecx, edi
je 0x42d17b
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x42d16b
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x42d16b
push ecx
call fcn.00403380
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x42d15e
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x18]
jmp 0x42d179
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x4c]
call fcn.00401700
xor ebp, ebp
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esi + 0x84]
mov dword [esp + 0x4c], ebp
call fcn.0042b6d0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x64], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42d1b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d1d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x38]
push ecx
mov edi, ecx
push edx
push edi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
mov byte [esp + 0x78], 1
call fcn.00426e10
mov edx, dword [esp + 0x38]
push edx
call fcn.00458aee
add ebx, 1
add esp, 4
cmp ebx, dword [esp + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x18], ebx
jb 0x42cfd8
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
cmp eax, ebp
mov byte [esp + 0x64], 0
je 0x42d24e
mov ecx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x50]
push edx
push ecx
push eax
call fcn.00424a20
mov edx, dword [esp + 0x60]
push edx
call fcn.00458aee
add esp, 0x14
add edi, 1
cmp edi, dword [esp + 0x1c]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x14], edi
jb 0x42cf40
xor edi, edi
xor ebx, ebx
nop
mov eax, dword [esi + 0x88]
cmp eax, ebp
je 0x42d337
mov ecx, dword [esi + 0x8c]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x42d337
mov eax, dword [esi + 0x88]
cmp eax, ebp
je 0x42d2c4
mov ecx, dword [esi + 0x8c]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x42d2c9
call fcn.00488c34
mov ebp, dword [esi + 0x88]
mov eax, dword [esi + 0x88]
add ebp, ebx
test eax, eax
je 0x42d2f7
mov ecx, dword [esi + 0x8c]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x42d2fc
call fcn.00488c34
mov eax, dword [esi + 0x88]
mov ecx, dword [ebp]
mov edx, dword [eax + ebx + 4]
add eax, ebx
push ecx
push edx
push str.Device:_s__s_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0x10
add edi, 1
add ebx, 0xc
xor ebp, ebp
jmp 0x42d270
push 0x80004005
call fcn.00401000
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
call fcn.00454bc0
mov al, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x14