Function at 0x4092c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, 0x107c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0043cef0
sub esp, eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1048]
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00427850
mov edx, dword [ebp - 0x1044]
test edx, edx
jne 0x4093b5
call fcn.0042c430
lea ebx, [ebp - 0x1010]
mov dword [esp], 0x11
mov esi, eax
mov dword [ebp - 0x1018], ebx
call fcn.004ed900
mov dword [eax], 0x72447349
mov dword [eax + 4], 0x72657669
mov dword [eax + 8], 0x46666e49
mov dword [eax + 0xc], 0x73656c69
mov byte [eax + 0x10], 0
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1018]
mov dword [esp + 0x10], str.IsDriverInfFiles_CanonicalizePath_failed
mov dword [esp + 0xc], 0x52
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
mov dword [ebp - 0x1010], 0x10
mov dword [ebp - 0x1014], 0x10
call fcn.0042ce70
mov eax, dword [ebp - 0x1018]
cmp eax, ebx
je 0x409391
mov dword [esp], eax
call fcn.004ed8c0
xor ebx, ebx
mov eax, dword [ebp - 0x1048]
lea edx, [ebp - 0x1040]
cmp eax, edx
je 0x4093ab
mov dword [esp], eax
call fcn.004ed8c0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1048]
mov dword [ebp - 0x104c], 0
mov dword [esp + 8], 0x4fb3d5
mov dword [esp + 4], eax
lea eax, [ebp - 0x104c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fopen_s]
test eax, eax
mov ebx, eax
je 0x409480
call fcn.0042c430
lea ebx, [ebp - 0x1010]
mov dword [esp], 0x11
mov esi, eax
mov edi, dword [ebp - 0x1048]
mov dword [ebp - 0x1018], ebx
call fcn.004ed900
mov dword [eax], 0x72447349
mov dword [eax + 4], 0x72657669
mov dword [eax + 8], 0x46666e49
mov dword [eax + 0xc], 0x73656c69
mov byte [eax + 0x10], 0
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1018]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], str.Open__s_failed
mov dword [esp + 0xc], 0x58
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
mov dword [ebp - 0x1010], 0x10
mov dword [ebp - 0x1014], 0x10
call fcn.0042ce70
jmp 0x40937f
lea edi, [ebp - 0x1018]
mov ecx, 0x400
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x104c]
lea edi, [ebp - 0x1018]
mov dword [esp + 8], 0xfff
mov dword [esp + 4], 1
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fread
mov dword [ebp - 0x105c], eax
mov eax, dword [ebp - 0x104c]
mov byte [ebp - 0x19], 0
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x105c]
test eax, eax
jne 0x409580
call fcn.0042c430
lea esi, [ebp - 0x1028]
mov dword [esp], 0x11
mov edi, eax
mov dword [ebp - 0x1030], esi
call fcn.004ed900
mov dword [eax], 0x72447349
mov dword [eax + 4], 0x72657669
mov dword [eax + 8], 0x46666e49
mov dword [eax + 0xc], 0x73656c69
mov byte [eax + 0x10], 0
mov dword [ebp - 0x1030], eax
lea eax, [ebp - 0x1030]
mov dword [esp + 0x10], str.fread_return_size_error
mov dword [esp + 0xc], 0x62
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], edi
mov dword [ebp - 0x1028], 0x10
mov dword [ebp - 0x102c], 0x10
call fcn.0042ce70
mov eax, dword [ebp - 0x1030]
cmp eax, esi
je 0x409393
mov dword [esp], eax
call fcn.004ed8c0
jmp 0x409393
mov dword [esp + 4], 0x1000
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__strlwr_s]
test eax, eax
jne 0x409614
mov eax, dword [ebp + 0xc]
mov ebx, 1
mov eax, dword [eax]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x409393
call fcn.0042c430
lea ebx, [ebp - 0x1030]
mov esi, dword [esi]
mov dword [esp], str.IsDriverInfFiles
mov edi, eax
mov ecx, ebx
call fcn.00409100
sub esp, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str._s_is_not_driver_inf_file
mov dword [esp + 0xc], 0x6f
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.0042ce70
mov eax, dword [ebp - 0x1030]
lea edx, [ebp - 0x1028]
cmp eax, edx
jne 0x409389
jmp 0x409391
call fcn.0042c430
lea esi, [ebp - 0x1028]
mov dword [esp], 0x11
mov edi, eax
mov dword [ebp - 0x1030], esi
call fcn.004ed900
mov dword [eax], 0x72447349
mov dword [eax + 4], 0x72657669
mov dword [eax + 8], 0x46666e49
mov dword [eax + 0xc], 0x73656c69
mov byte [eax + 0x10], 0
mov dword [ebp - 0x1030], eax
lea eax, [ebp - 0x1030]
mov dword [esp + 0x10], str._strlwr_s_return_failed
mov dword [esp + 0xc], 0x67
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], edi
mov dword [ebp - 0x1028], 0x10
mov dword [ebp - 0x102c], 0x10
call fcn.0042ce70
jmp 0x40955d