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

Disassembly:
sub esp, 0x450
mov al, byte [0x41f4b4]
push ebx
push ebp
push esi
mov dword [esp + 0x10], ecx
push edi
mov byte [esp + 0x60], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x61]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, dword [esp + 0x46c]
mov edx, 0x1c
stosb byte es:[edi], al
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], edx
rep stosd dword es:[edi], eax
xor ebx, ebx
mov ecx, 6
lea edi, [esp + 0x48]
mov dword [esp + 0x44], edx
cmp ebp, ebx
mov dword [esp + 0x18], ebx
rep stosd dword es:[edi], eax
jne 0x408112
mov ebp, 1
mov eax, dword [esp + 0x468]
cmp eax, ebx
jne 0x408131
cmp ebp, 1
je 0x40812c
cmp ebp, 4
mov eax, 0x12
jne 0x408131
mov eax, 0x10
push eax
push ebx
push ebx
push 0x4170b0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408163
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x4082ed
or eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret 0x10
mov dword [esp + 0x60], 5
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x10]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x24], ebx
push ecx
push edx
push 0x4170b0
push ebx
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x58], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x4081ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4082d9
cmp eax, 0x103
je 0x4082e2
inc dword [esp + 0x10]
jmp 0x40816f
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x60]
lea edx, [esp + 0x44]
rep stosd dword es:[edi], eax
mov ecx, 7
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x60]
push eax
push ebx
push 0x400
push ecx
push edx
push esi
mov dword [esp + 0x78], 5
mov dword [esp + 0x40], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x4082d9
push 0x10
lea eax, [esp + 0x68]
push str._usbstordisk
push eax
call fcn.00412020
add esp, 0xc
test eax, eax
jne 0x4082d9
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x20]
push 1
push ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.004077e0
cmp eax, 0xd
je 0x4082d9
cmp eax, 5
je 0x4082d9
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4082d9
cmp eax, 1
jne 0x40826d
cmp ebp, 4
je 0x4082d9
jmp 0x408277
cmp eax, 5
jne 0x408277
cmp ebp, 2
je 0x4082d9
mov edi, dword [esp + 0x464]
cmp edi, ebx
je 0x4082bd
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push ebx
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.00413200
add esp, 0x10
test eax, eax
je 0x4082d9
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.00413170
add esp, 8
cmp eax, ebx
jne 0x4082b9
mov eax, 0x10000000
test edi, eax
je 0x4082d9
mov edx, dword [esp + 0x470]
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push ebp
push eax
push esi
call fcn.00409230
mov dword [esp + 0x18], eax
inc dword [esp + 0x10]
jmp 0x40816f
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret 0x10