Function at 0x40a036
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
push esi
push 3
push esi
push ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp._sectors___lu_byte_SetupOpenInfFileA]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x40a0a6
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp + 0x18]
push edi
push str.ClassGUID
push str.version
push eax
push esi
call dword [sym.imp._sectors___lu_byte_SetupGetLineTextA]
test eax, eax
jne 0x40a09b
push 9
pop ecx
mov esi, str.4D36E97B_E325_11CE_BFC1_08002BE10318
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push dword [ebp - 0x28]
call dword [sym.imp._sectors___lu_byte_SetupCloseInfFile]
jmp 0x40a0d1
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push str.SetupOpenInfFile_returned_an_error:_0x_x
call fcn.0041c7ee
push str.Setting_default_ClassGUID
call fcn.0041c7ee
add esp, 0xc
push 9
pop ecx
mov esi, str.4D36E97B_E325_11CE_BFC1_08002BE10318
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x469650
push ebx
call fcn.00450b1b
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x40a0f7
push ebx
push str.cant_open_inf_file:__s
call fcn.0041c7ee
xor eax, eax
jmp 0x40a205
push eax
call fcn.00450a39
push eax
call fcn.00450943
mov edi, eax
lea eax, [edi + 0x64]
xor ebx, ebx
push eax
inc ebx
push ebx
call fcn.00450903
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a207
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push 2
push ebx
push eax
call fcn.004508e6
add esp, 0x10
cmp byte [ebp - 0x24], 0xff
jne 0x40a145
cmp byte [ebp - 0x23], 0xfe
jne 0x40a145
mov dword [ebp - 0x30], ebx
sub edi, 2
jmp 0x40a14e
push dword [ebp - 0x28]
call fcn.004505de
pop ecx
push dword [ebp - 0x28]
push edi
push ebx
push esi
call fcn.004508e6
add esp, 0x10
cmp edi, eax
jne 0x40a1f4
cmp dword [ebp - 0x30], 0
je 0x40a171
push edi
push esi
call section..text
cmp byte [esi], 0
mov edi, esi
je 0x40a1f4
push str.PCIVEN
push edi
call fcn.004501a0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40a1f4
xor eax, eax
add edi, 4
mov cl, byte [edi]
test cl, cl
je 0x40a1ab
cmp cl, 0x20
je 0x40a1ab
cmp cl, 0xa
je 0x40a1ab
inc edi
mov byte [ebp + eax - 0x24], cl
inc eax
cmp eax, 0x11
jl 0x40a190
xor ebx, ebx
mov byte [ebp + eax - 0x24], 0
cmp dword [ebp - 0x2c], ebx
jle 0x40a1d2
mov eax, dword [ebp - 0x34]
push dword [eax + ebx*4]
lea eax, [ebp - 0x24]
push eax
call fcn.00450597
pop ecx
pop ecx
test eax, eax
je 0x40a1ee
inc ebx
cmp ebx, dword [ebp - 0x2c]
jl 0x40a1b7
lea eax, [ebp - 0x24]
push eax
call fcn.004503c5
mov edx, dword [ebp - 0x34]
pop ecx
mov ecx, dword [ebp - 0x2c]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [ebp - 0x2c], ecx
cmp ecx, dword [ebp + 0x10]
je 0x40a1f4
inc edi
cmp byte [edi], 0
jne 0x40a178
push esi
call fcn.0045038b
push dword [ebp - 0x28]
call fcn.00450317
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 0x14