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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x44ce16
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x468cb0]
xor eax, esp
mov dword [esp + 0x2a4], eax
push esi
push edi
mov eax, dword [0x468cb0]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
push 0x45b844
push eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x38], str.CDevFind5::GetDevList2
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 1
call fcn.0040a3d0
add esp, 8
push 0x12
push 0
push 0
mov dword [esp + 0x2cc], 0
push edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
jne 0x402805
xor esi, esi
jmp 0x402bce
lea eax, [esp + 0x64]
push eax
push 0
push edi
xorps xmm0, xmm0
push 0
movdqa xmmword [esp + 0x74], xmm0
push esi
movq qword [esp + 0x88], xmm0
mov dword [esp + 0x90], 0
mov dword [esp + 0x78], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x402bc2
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
lea eax, [esp + 0x74]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
push dword [esp + 0x18]
call fcn.0042f6f5
mov edi, eax
xor eax, eax
mov word [edi + 4], ax
add esp, 4
mov dword [edi], 6
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x70]
push edi
xorps xmm0, xmm0
push eax
movdqa xmmword [esp + 0x98], xmm0
push esi
movq qword [esp + 0xac], xmm0
mov dword [esp + 0x9c], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x402bb9
push 0x1ff
lea eax, [esp + 0xb1]
push 0
push eax
mov byte [esp + 0xb8], 0
call fcn.00432320
add esp, 0xc
mov dword [esp + 0x1c], 0
call fcn.0040e738
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x402baf
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
call fcn.0040e738
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x402baf
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
call fcn.0040e738
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x402baf
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov byte [esp + 0x54], al
mov dword [esp + 0x58], eax
mov byte [esp + 0x2c0], 1
mov eax, dword [esp + 0x98]
lea edx, [edi + 4]
mov dword [esp + 0x3c], eax
test edx, edx
jne 0x40298a
xor eax, eax
jmp 0x40299f
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402990
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x48]
call fcn.00401b90
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 0x824]
test esi, esi
je 0x402ad1
push 0x200
lea eax, [esp + 0xb0]
push 0
push eax
call fcn.00432320
add esp, 0xc
lea eax, [esp + 0x1c]
push 0
push eax
push 0x200
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x6c]
push eax
push 0x45b1b4
lea eax, [esp + 0x9c]
push eax
push dword [esp + 0x3c]
call esi
push dword [esp + 0x1c]
lea eax, [esp + 0x34]
push str.LocationPaths_RequiredSize:__d__n
push eax
call fcn.0040a3d0
lea ecx, [esp + 0xb8]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402a20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x4c]
call fcn.00401b90
push 0x200
lea eax, [esp + 0xb0]
push 0
push eax
call fcn.00432320
add esp, 0xc
lea eax, [esp + 0x1c]
push 0
push eax
push 0x200
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x6c]
push eax
push 0x45b1c8
lea eax, [esp + 0x9c]
push eax
mov eax, dword [esp + 0x48]
push dword [esp + 0x3c]
mov eax, dword [eax + 0x824]
call eax
push dword [esp + 0x1c]
lea eax, [esp + 0x34]
push str.CompatibleIds_RequiredSize:__d__n
push eax
call fcn.0040a3d0
lea ecx, [esp + 0xb8]
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ab0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x50]
call fcn.00401b90
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x3c]
mov esi, dword [esi]
push eax
push dword [esi + 4]
push esi
call fcn.00402d00
mov edx, eax
mov eax, dword [esp + 0x24]
mov ecx, 0x6666665
mov eax, dword [eax + 4]
sub ecx, eax
cmp ecx, 1
jb 0x402ba5
lea ecx, [eax + 1]
mov eax, dword [esp + 0x24]
push edi
mov dword [eax + 4], ecx
mov dword [esi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
call fcn.0042f6bd
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x2c4], 0
mov edx, dword [esp + 0x4c]
add edx, 0xfffffff0
inc esi
add esp, 4
mov dword [esp + 0x28], esi
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402b48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x44]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402b66
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x40]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402b84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x64]
push eax
push esi
push dword [esp + 0x68]
mov esi, dword [esp + 0x2c]
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x402843
jmp 0x402bc2
push str.list_T__too_long
call fcn.004498e7
push 0x80004005
call fcn.00401b40
push edi
call fcn.0042f6bd
add esp, 4
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov esi, 1
lea eax, [esp + 0x30]
push str.EXIT________n
push eax
call fcn.0040a3d0
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2a4]
xor ecx, esp
call fcn.0042f518
mov esp, ebp
pop ebp
ret 8