Function at 0x409e40
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x34], str.STORPORT.SYS
mov dword [ebp - 8], str.SCSIPORT.SYS
mov dword [ebp - 0x2c], str.PCIIDEX.SYS
mov dword [ebp - 0xc], str.CLASSPNP.SYS
mov dword [ebp - 0x20], str.NTOSKRNL.EXE
mov dword [ebp - 4], str.HAL.DLL
mov dword [ebp - 0x18], str.WMILIB.SYS
mov dword [ebp - 0x28], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x409eaa
xor eax, eax
jmp 0x40a08a
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40a07d
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x40a073
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 4]
cmp ecx, 0x8664
jne 0x409f1e
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, 0x90
mov dword [ebp - 0x44], eax
jmp 0x409f2a
mov ecx, dword [ebp - 0x1c]
add ecx, 0x80
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004080c0
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 4]
xor edx, edx
mov ecx, 0x14
div ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], 1
jmp 0x409f63
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x40]
jae 0x40a069
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004080c0
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x14
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040124a
add esp, 8
test eax, eax
jne 0x409fab
mov dword [ebp - 0x28], 1
jmp 0x409f5a
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0040124a
add esp, 8
test eax, eax
jne 0x409fc8
mov dword [ebp - 0x28], 2
jmp 0x409f5a
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040124a
add esp, 8
test eax, eax
jne 0x409fe8
mov dword [ebp - 0x28], 3
jmp 0x409f5a
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040124a
add esp, 8
test eax, eax
jne 0x40a008
mov dword [ebp - 0x28], 4
jmp 0x409f5a
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0040124a
add esp, 8
test eax, eax
jne 0x40a021
jmp 0x409f5a
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040124a
add esp, 8
test eax, eax
jne 0x40a03a
jmp 0x409f5a
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040124a
add esp, 8
test eax, eax
jne 0x40a053
jmp 0x409f5a
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00409bc0
jmp 0x409f5a
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret 0xc