Function at 0x413d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4759ee
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov edx, dword [0x49f474]
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, 0x49f474
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 0x41408a
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 0x414069
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
call fcn.004062a0
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 0x413ef2
push esi
lea ecx, [esp + 0x18]
call fcn.00401ea0
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 0x41410b
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x41410b
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 0x414045
push str.USBSTOR
push ecx
call edi
add esp, 8
cmp eax, ebx
je 0x414041
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jle 0x414045
cmp dword [ecx - 0xc], ebx
jl 0x414045
push str.CDROM
push ecx
call edi
add esp, 8
cmp eax, ebx
je 0x414041
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jle 0x414045
cmp dword [ecx - 0xc], ebx
jl 0x414045
push 0x47e364
push ecx
call edi
add esp, 8
cmp eax, ebx
je 0x414041
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jle 0x414045
push str._kkam__CDeviceDetect::IsICMDevice__ICM_Device_Dectected___
call fcn.00403100
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 0x413fe2
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 0x414009
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 0x414037
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4140e1
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 0x414069
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 0x413e93
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 0x4140b1
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 0x4140df
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.00472076
add esp, 0x254
ret 4
push 0x80070057
call fcn.00401120
int3