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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x42f4cc]
xor eax, ebp
push ebx
push esi
mov dword [esp + 0x268], eax
mov eax, dword [ebp + 8]
test eax, eax
push edi
mov edi, ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0xc], 0
jl 0x403ccb
cmp eax, 2
jae 0x403ccb
push 0x12
push 0
shl eax, 4
lea ebx, [eax + 0x42882c]
push 0
push ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403a77
or eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, ebp
call fcn.004199fa
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x228]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x68]
sub eax, edi
lea edx, [eax - 0x228]
lea ecx, [edi + 0x124]
add eax, 0xfffffedc
mov dword [esp + 0x4c], 0x1c
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
test edi, edi
je 0x403ac5
mov eax, dword [esp + 0xc]
cmp eax, dword [ebp + 0xc]
jge 0x403cab
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
push ecx
push edx
push ebx
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x403cab
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0
lea ecx, [esp + 0x5c]
push ecx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
mov edx, dword [esp + 0x24]
push edx
call fcn.0041a0db
mov ebx, eax
mov dword [ebx], 5
mov edx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x30]
push ecx
push eax
push edx
mov dword [esp + 0x54], eax
push ebx
lea eax, [esp + 0x5c]
push eax
push esi
mov dword [esp + 0x48], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x403c90
test edi, edi
je 0x403c5a
mov eax, dword [ebp + 8]
sub eax, 0
lea ecx, [ebx + 4]
je 0x403b72
dec eax
jne 0x403c90
mov edx, dword [esp + 0xc]
push 0
push edx
jmp 0x403b79
mov eax, dword [esp + 0xc]
push 1
push eax
push edi
call fcn.00403810
add esp, 0xc
test eax, eax
je 0x403c90
push 0
push 0x200
lea ecx, [esp + 0x70]
push ecx
push 0
push 0
lea edx, [esp + 0x44]
push edx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x403bd5
mov eax, dword [esp + 0x14]
mov edx, 0x104
lea ecx, [edx - 1]
test ecx, ecx
je 0x403bcd
mov ecx, dword [esp + 0x18]
mov cl, byte [ecx + eax]
test cl, cl
je 0x403bcd
mov byte [eax], cl
inc eax
dec edx
jne 0x403bb3
jmp 0x403bd1
test edx, edx
jne 0x403bd2
dec eax
mov byte [eax], 0
xor eax, eax
push eax
push 0x200
lea edx, [esp + 0x70]
push edx
push eax
mov ecx, 0x80
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
push 0xb
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x403c32
mov eax, dword [esp + 0x1c]
mov edx, 0x104
lea esp, [esp]
lea ecx, [edx - 1]
test ecx, ecx
je 0x403c2a
mov ecx, dword [esp + 0x10]
mov cl, byte [ecx + eax]
test cl, cl
je 0x403c2a
mov byte [eax], cl
inc eax
dec edx
jne 0x403c10
jmp 0x403c2e
test edx, edx
jne 0x403c2f
dec eax
mov byte [eax], 0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov eax, 0x338
inc edx
sub ecx, eax
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], ecx
jmp 0x403c7c
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
mov dword [esp + 0xc], eax
mov eax, 0x338
sub edx, eax
sub ecx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add edx, eax
add ecx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
push ebx
call fcn.0041941d
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
add esp, 4
inc eax
mov dword [esp + 0x20], eax
jmp 0x403ab4
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, ebp
call fcn.004199fa
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
xor ecx, ebp
mov eax, 0xfffffffe
pop ebx
call fcn.004199fa
mov esp, ebp
pop ebp
ret