Function at 0x40a1d9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
push ebx
xor ebx, ebx
push esi
push edi
mov esi, eax
xor eax, eax
mov byte [ebp - 0x74], bl
lea edi, [ebp - 0x73]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x38], bl
lea edi, [ebp - 0x37]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push dword [ebp + 8]
mov byte [ebp - 0x4c], bl
xor eax, eax
lea edi, [ebp - 0x4b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebp - 0x18]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], 0x100
mov dword [ebp - 0x10], ebx
call fcn.004066dd
lea eax, [esi + 0x120]
push eax
push str._device_name_
mov eax, edi
push eax
call fcn.0040a18e
lea eax, [esi + 0xa0]
push eax
push str._device_desc_
mov eax, edi
push eax
call fcn.0040a18e
lea eax, [esi + 0xc25]
cmp byte [eax], bl
jne 0x40a273
lea ecx, [esi + 0xaa5]
cmp byte [ecx], bl
je 0x40a273
push ecx
jmp 0x40a274
push eax
push str._drive_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
lea eax, [esi + 0x625]
push eax
push str._serial_number_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
mov eax, esi
call fcn.0040215e
mov ebx, eax
call fcn.00406c85
push eax
push str._device_type_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
lea eax, [esi + 0x1a0]
push eax
push str._service_name_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
lea eax, [esi + 0x10]
push eax
push str._device_class_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
lea eax, [esi + 0x725]
push eax
push str._device_mfg_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
lea eax, [esi + 0x2a0]
push eax
push str._driver_file_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
lea eax, [esi + 0xa25]
push eax
push str._driver_version_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
push 0x63
xor edi, edi
lea eax, [ebp - 0xdb]
push edi
push eax
mov byte [ebp - 0xdc], 0
call sub.msvcrt.dll_memset
fild dword [esi + 0xc58]
mov eax, dword [esi + 0xc58]
test eax, eax
jge 0x40a348
fadd qword [0x415f88]
fdiv qword [0x415f98]
lea eax, [ebp - 0xdc]
fstp qword [esp + 4]
mov dword [esp], str._2.2f
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
lea eax, [ebp - 0xdc]
push eax
push str._firmware_revision_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
mov ebx, 0xff
push ebx
lea eax, [ebp - 0x2db]
push edi
push eax
mov byte [ebp - 0x2dc], 0
call sub.msvcrt.dll_memset
push ebx
lea eax, [ebp - 0x1db]
push edi
push eax
mov byte [ebp - 0x1dc], 0
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0xc80]
add esp, 0x18
cmp eax, edi
je 0x40a3c6
push eax
lea edi, [ebp - 0x2dc]
call fcn.00405845
pop ecx
mov eax, dword [esi + 0xc84]
test eax, eax
je 0x40a3dd
push eax
lea edi, [ebp - 0x1dc]
call fcn.00405845
pop ecx
lea eax, [ebp - 0x1dc]
push eax
push str._product_name_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
lea eax, [ebp - 0x2dc]
push eax
push str._vendor_name_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
movzx eax, word [esi + 0xc88]
cmp ax, 0xffff
jne 0x40a422
xor eax, eax
push 0xa
lea ecx, [ebp - 0x24]
movzx eax, ax
push ecx
push eax
call sub.msvcrt.dll__itoa
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push str._power_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
xor eax, eax
mov byte [ebp - 0x60], 0
lea edi, [ebp - 0x5f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, word [esi + 0xc8a]
test ax, ax
je 0x40a47b
movzx ecx, al
movzx eax, ah
push ecx
push eax
lea eax, [ebp - 0x60]
push str._d._2.2x
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
lea eax, [ebp - 0x60]
push eax
push str._usb_version_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
push 0xa
lea eax, [ebp - 0x74]
push eax
push dword [esi + 0xc6c]
call sub.msvcrt.dll__itoa
add esp, 0xc
push eax
push str._vid_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
push 0xa
lea eax, [ebp - 0x74]
push eax
push dword [esi + 0xc70]
call sub.msvcrt.dll__itoa
add esp, 0xc
push eax
push str._pid_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
push dword [esi + 0xc6c]
mov edi, str._4.4x
lea eax, [ebp - 0x38]
push edi
push eax
call sub.msvcrt.dll_sprintf
push dword [esi + 0xc70]
lea eax, [ebp - 0x4c]
push edi
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x18
lea eax, [ebp - 0x38]
push eax
push str._vid_hex_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
lea eax, [ebp - 0x4c]
push eax
push str._pid_hex_
lea eax, [ebp - 0x18]
push eax
call fcn.0040a18e
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40a52b
mov eax, 0x4144fe
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea esi, [ebp - 0x18]
call fcn.004066b8
pop edi
pop esi
pop ebx
leave
ret 4