Function at 0x416b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47881e
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov edx, dword [0x4a643c]
mov eax, 0xb6bf
mov word [esp + 0x28], ax
xor eax, eax
xor ebx, ebx
mov ecx, 0x11d0
mov word [esp + 0x2a], cx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4a643c
mov dword [esp + 0x264], ebx
mov dword [esp + 0x24], 0x53f56308
mov byte [esp + 0x2c], 0x94
mov byte [esp + 0x2d], 0xf2
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], 0xa0
mov byte [esp + 0x30], 0xc9
mov byte [esp + 0x31], 0x1e
mov byte [esp + 0x32], 0xfb
mov byte [esp + 0x33], 0x8b
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x104
lea ecx, [esp + 0x54]
push ebx
push ecx
mov byte [esp + 0x270], 1
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x12
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x44], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov ebp, eax
lea eax, [esp + 0x34]
push eax
push ebx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x416e3a
mov edi, dword [sym.imp.MSVCR90.dll_wcsstr]
lea ecx, [esp + 0x20]
push ecx
push 0x208
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x40]
push eax
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
je 0x416e19
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406300
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
mov byte [esp + 0x264], 2
jge 0x416ca2
push esi
lea ecx, [esp + 0x18]
call fcn.00401e80
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call dword [sym.imp.MSVCR90.dll__wcsupr_s]
add esp, 8
cmp esi, ebx
jl 0x416ebb
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x416ebb
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + esi*2], cx
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x416df5
push str.USBSTOR
push ecx
call edi
add esp, 8
cmp eax, ebx
je 0x416df1
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jle 0x416df5
cmp dword [ecx - 0xc], ebx
jl 0x416df5
push str.CDROM
push ecx
call edi
add esp, 8
cmp eax, ebx
je 0x416df1
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jle 0x416df5
cmp dword [ecx - 0xc], ebx
jl 0x416df5
push 0x481440
push ecx
call edi
add esp, 8
cmp eax, ebx
je 0x416df1
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jle 0x416df5
push str._kkam__CDeviceDetect::IsICMDevice__ICM_Device_Dectected___
call fcn.00403170
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x264], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x264], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416db9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x26c]
add eax, 0xfffffff0
mov dword [esp + 0x264], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416de7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x416e91
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
mov byte [esp + 0x264], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416e19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
inc eax
lea ecx, [esp + 0x34]
movsx edx, ax
push ecx
push edx
push ebp
mov dword [esp + 0x24], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x416c43
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x264], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416e61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x26c]
add eax, 0xfffffff0
mov dword [esp + 0x264], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416e8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00475d76
add esp, 0x254
ret 4
push 0x80070057
call fcn.00401100
int3