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

Disassembly:
push 0xffffffffffffffff
push 0x49ec2e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x4b0c90]
xor eax, esp
mov dword [esp + 0x29c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b0c90]
xor eax, esp
push eax
lea eax, [esp + 0x2b4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c4]
xor ebx, ebx
push 0x4a4459
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], ebx
call fcn.00415ce0
push 0x4a4459
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c0], ebx
call fcn.00415ce0
push 0x12
mov byte [esp + 0x2c0], 1
mov eax, dword [ebp + 0xcabc]
push ebx
push ebx
push 0x4a5600
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], eax
mov dword [ebp + 0x314], ebx
mov dword [esp + 0x78], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x424188
lea ecx, [esp + 0x68]
push ecx
push ebx
push esi
mov dword [esp + 0x48], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x424181
push esi
lea esi, [esp + 0x4c]
lea edi, [esp + 0x38]
lea ebx, [esp + 0x6c]
call fcn.00422200
add esp, 4
test eax, eax
je 0x424153
mov edx, dword [esp + 0x34]
test edx, edx
jne 0x42393b
xor eax, eax
jmp 0x42394b
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x423940
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.004160a0
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ebx, 1
mov ecx, ebx
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x42397e
push esi
lea ecx, [esp + 0x18]
call fcn.00415ba0
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.004848fe
push eax
call fcn.004285e0
add esp, 0xc
test esi, esi
jl 0x424226
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x424226
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x14]
mov byte [esi + ecx], 0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x424158
push str.RTKUSBAD
push eax
call fcn.004847e8
add esp, 8
test eax, eax
je 0x424158
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x424158
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0
push ebx
lea eax, [esp + 0x7c]
push eax
push ecx
mov dword [esp + 0x4c], 0
call edi
mov edx, dword [esp + 0x28]
push edx
call fcn.00484fe0
mov esi, eax
add esp, 4
test esi, esi
je 0x423a7d
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push ecx
push esi
push 0
push ebx
lea edx, [esp + 0x7c]
push edx
push eax
call edi
cmp byte [esi], 0
je 0x423a69
push esi
lea ecx, [esp + 0xa4]
push 0x104
push ecx
call fcn.004850a3
add esp, 0xc
lea edx, [esp + 0xa0]
push 0x104
push edx
call fcn.00484d00
add esp, 8
mov dword [esp + 0x30], ebx
push esi
call fcn.00474618
add esp, 4
cmp dword [esp + 0x30], 0
je 0x424158
mov esi, dword [ebp + 0xcac8]
test esi, esi
je 0x423aa3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00474618
add esp, 4
mov dword [ebp + 0xcac8], 0
push 0x10c
call fcn.004745ed
mov esi, eax
add esp, 4
test esi, esi
je 0x423ae1
push str.HDMONMUTEX
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
mov dword [esi], eax
jne 0x423add
push str.HDMONMUTEX
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
mov eax, esi
jmp 0x423ae3
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword [ebp + 0xcac8], eax
mov dword [eax + ecx*4 + 4], ebx
mov edx, dword [ebp + 0xcabc]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
imul edx, edx, 0x334
or dword [edx + ebp + 0x6768], 0x20
lea eax, [edx + ebp + 0x6768]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x84]
push eax
xor esi, esi
push esi
push 0x4a5600
lea ecx, [esp + 0x74]
push ecx
push edx
mov dword [esp + 0x98], 0x1c
call edi
test eax, eax
jne 0x423b86
lea ecx, [ecx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x424158
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x84]
push ecx
add esi, ebx
push esi
push 0x4a5600
lea edx, [esp + 0x74]
push edx
push eax
mov dword [esp + 0x38], 0
call edi
test eax, eax
je 0x423b40
jmp 0x423b9d
mov eax, dword [esp + 0x24]
test eax, eax
je 0x423b9d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
lea edx, [esp + 0x94]
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
jne 0x423bce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x424158
mov eax, dword [esp + 0x2c]
push eax
push 0x40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x24], eax
je 0x424158
push 0
lea ecx, [esp + 0x30]
push ecx
mov edi, eax
mov eax, dword [esp + 0x24]
push esi
push edi
lea edx, [esp + 0x94]
push edx
push eax
mov dword [edi], 5
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
jne 0x423c1d
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x424158
mov ecx, dword [ebp + 0xcabc]
imul ecx, ecx, 0x334
lea eax, [edi + 4]
push eax
lea ecx, [ecx + ebp + 0x6789]
push 0x104
push ecx
mov dword [0x4b9c78], edi
call fcn.004850a3
mov ecx, dword [0x4b9c78]
mov eax, dword [ebp + 0xcac8]
add esp, 0xc
add ecx, 4
push ecx
add eax, 8
push 0x104
push eax
call fcn.004850a3
add esp, 0xc
lea edx, [esp + 0x38]
push edx
mov eax, ebp
call fcn.00427470
mov edx, dword [ebp + 0xcabc]
mov eax, dword [esp + 0x38]
imul edx, edx, 0x334
mov ecx, eax
shr eax, 0x10
mov word [edx + ebp + 0x6780], ax
mov eax, dword [ebp + 0xcabc]
imul eax, eax, 0x334
xor esi, esi
cmp dword [esp + 0x30], esi
mov word [eax + ebp + 0x6782], cx
je 0x42408e
mov edx, dword [ebp + 0xcabc]
imul edx, edx, 0x334
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [edx + ebp + 0x6a98]
call fcn.00416020
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x1c]
call fcn.00416020
mov ecx, str.SUBSYS_
lea esi, [esp + 0x18]
call fcn.00428230
cmp eax, 0xffffffff
mov ecx, str.VID_
je 0x423efd
push 4
call fcn.00428230
add eax, 4
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
call fcn.00428260
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 2
call fcn.00428690
lea ecx, [esp + 0x60]
mov byte [esp + 0x2bc], bl
call fcn.00416190
mov eax, dword [esp + 0x14]
push 0x10
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00484f67
mov ecx, dword [ebp + 0xcabc]
imul ecx, ecx, 0x334
add esp, 0xc
mov word [ecx + ebp + 0x676c], ax
push 4
mov ecx, str.PID_
call fcn.00428230
add eax, 4
push eax
lea edx, [esp + 0x58]
push edx
mov ecx, esi
call fcn.00428260
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 3
call fcn.00428690
lea ecx, [esp + 0x50]
mov byte [esp + 0x2bc], bl
call fcn.00416190
mov ecx, dword [esp + 0x14]
push 0x10
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.00484f67
mov edx, dword [ebp + 0xcabc]
imul edx, edx, 0x334
add esp, 0xc
push 2
mov ecx, str.MI_
mov word [edx + ebp + 0x676e], ax
call fcn.00428230
add eax, 4
push eax
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call fcn.00428260
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 4
call fcn.00428690
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2bc], bl
call fcn.00416190
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00484f67
mov ecx, dword [ebp + 0xcabc]
add esp, 0xc
imul ecx, ecx, 0x334
mov word [ecx + ebp + 0x676e], ax
push 4
mov ecx, str.SUBSYS_
call fcn.00428230
add eax, 7
push eax
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call fcn.00428260
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 5
call fcn.00428690
lea ecx, [esp + 0x58]
mov byte [esp + 0x2bc], bl
call fcn.00416190
mov ecx, dword [esp + 0x14]
push 0x10
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.00484f67
mov edx, dword [ebp + 0xcabc]
imul edx, edx, 0x334
add esp, 0xc
push 4
mov ecx, str.SUBSYS_
mov word [edx + ebp + 0x6784], ax
call fcn.00428230
add eax, 0xb
push eax
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
call fcn.00428260
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 6
call fcn.00428690
lea ecx, [esp + 0x64]
mov byte [esp + 0x2bc], bl
call fcn.00416190
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00484f67
mov ecx, dword [ebp + 0xcabc]
add esp, 0xc
imul ecx, ecx, 0x334
mov word [ecx + ebp + 0x6786], ax
jmp 0x4240d3
call fcn.00428230
cmp eax, 0xffffffff
je 0x423f71
push 4
mov ecx, str.VID_
lea esi, [esp + 0x1c]
call fcn.00428230
add eax, 4
push eax
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call fcn.00428260
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 7
call fcn.00428690
lea ecx, [esp + 0x44]
mov byte [esp + 0x2bc], bl
call fcn.00416190
mov ecx, dword [esp + 0x14]
push 0x10
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.00484f67
mov edx, dword [ebp + 0xcabc]
add esp, 0xc
imul edx, edx, 0x334
mov word [edx + ebp + 0x676c], ax
mov ecx, str.PID_
lea esi, [esp + 0x18]
call fcn.00428230
cmp eax, 0xffffffff
je 0x423fea
push 4
mov ecx, str.PID_
call fcn.00428230
add eax, 4
push eax
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call fcn.00428260
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 8
call fcn.00428690
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2bc], bl
call fcn.00416190
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00484f67
mov ecx, dword [ebp + 0xcabc]
add esp, 0xc
imul ecx, ecx, 0x334
mov word [ecx + ebp + 0x676e], ax
mov ecx, str.MI_
lea esi, [esp + 0x18]
call fcn.00428230
cmp eax, 0xffffffff
je 0x424062
push 2
mov ecx, str.MI_
call fcn.00428230
add eax, 4
push eax
lea edx, [esp + 0x5c]
push edx
mov ecx, esi
call fcn.00428260
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 9
call fcn.00428690
lea ecx, [esp + 0x54]
mov byte [esp + 0x2bc], bl
call fcn.00416190
mov ecx, dword [esp + 0x14]
push 0x10
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.00484f67
mov edx, dword [ebp + 0xcabc]
add esp, 0xc
imul edx, edx, 0x334
mov byte [edx + ebp + 0x6770], al
mov ecx, dword [ebp + 0xcabc]
imul ecx, ecx, 0x334
xor eax, eax
mov word [ecx + ebp + 0x6784], ax
mov edx, dword [ebp + 0xcabc]
imul edx, edx, 0x334
mov word [edx + ebp + 0x6786], ax
jmp 0x4240d3
mov eax, dword [ebp + 0xcabc]
imul eax, eax, 0x334
push 0x4a4459
lea ecx, [eax + ebp + 0x6a98]
call fcn.00416020
mov ecx, dword [ebp + 0xcabc]
imul ecx, ecx, 0x334
mov word [ecx + ebp + 0x6784], si
mov edx, dword [ebp + 0xcabc]
imul edx, edx, 0x334
mov word [edx + ebp + 0x6786], si
mov eax, dword [ebp + 0xcabc]
mov cl, byte [ebp + 0x314]
imul eax, eax, 0x334
push 0
push 0x104
lea edx, [esp + 0x1b0]
push edx
push 0
mov byte [eax + ebp + 0x6788], cl
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x7c]
push eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x42413c
mov edx, dword [ebp + 0xcabc]
imul edx, edx, 0x334
lea ecx, [esp + 0x1a8]
push ecx
lea eax, [edx + ebp + 0x688d]
push 0x104
push eax
call fcn.004850a3
add esp, 0xc
add dword [ebp + 0xcabc], ebx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x24], 0
jmp 0x424158
mov ebx, 1
mov eax, dword [esp + 0x3c]
add eax, ebx
lea edx, [esp + 0x68]
push edx
push eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
mov esi, dword [esp + 0x1c]
jne 0x423912
xor ebx, ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov esi, dword [ebp + 0xcac8]
cmp esi, ebx
je 0x4241aa
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00474618
add esp, 4
mov dword [ebp + 0xcac8], ebx
mov byte [esp + 0x2bc], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4241d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2bc], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4241fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x29c]
xor ecx, esp
call fcn.00483e52
add esp, 0x2ac
ret 4
push 0x80070057
call fcn.00415b20
int3