Function at 0x47ee00
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed0bd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x78
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x60], eax
mov eax, 0x490
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x78], eax
xor edi, edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x7c], edi
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x80], eax
xor al, al
mov byte [ebp - 0x4d], al
mov byte [ebp - 0x56], al
mov byte [ebp - 0x4e], al
mov byte [ebp - 0x57], al
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
mov dword [ebp - 0x70], edi
cmp dword [ebp - 0x54], edi
jne 0x47eea0
mov dword [ebp - 0x68], 0x57
xor edi, edi
jmp 0x47f66d
mov ecx, 0x105
cmp ax, cx
je 0x47ef7a
push str.GetSystemFirmwareTable
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x47ee99
push 0
push 0
push 0
push 0x52534d42
mov ecx, esi
call dword [0x4f1320]
call esi
mov edi, eax
test edi, edi
je 0x47ee99
xor ecx, ecx
add eax, 0x400
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.004b2710
add esp, 4
mov ecx, eax
mov dword [ebp - 0x6c], ecx
test ecx, ecx
jne 0x47ef14
mov dword [ebp - 0x68], 8
mov edi, eax
jmp 0x47f66d
lea eax, [edi + 0x400]
push eax
push 0
push ecx
call fcn.004a8c90
add esp, 0xc
push edi
mov edi, dword [ebp - 0x6c]
push edi
push 0
push 0x52534d42
mov ecx, esi
call dword [0x4f1320]
call esi
test eax, eax
je 0x47f66d
mov edx, edi
mov al, byte [edx + 1]
mov byte [ebp - 0x4d], al
mov cl, byte [edx + 2]
mov byte [ebp - 0x4e], cl
cmp al, 2
jae 0x47ef62
mov dword [ebp - 0x68], 0x718
jmp 0x47f66d
lea edi, [edx + 8]
mov dword [ebp - 0x64], edi
mov eax, dword [edx + 4]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x68], 0
jmp 0x47f1f8
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x4c], 0x2e002c
mov dword [ebp - 0x48], str.DevicePhysicalMemory
mov dword [ebp - 4], 0
push str.NtOpenSection
push 0x51f94c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x47f18e
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x38]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call dword [0x4f1320]
call esi
test eax, eax
js 0x47f18e
push 0x10000
push 0xf0000
push 0
push 4
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [ebp - 0x70], ecx
test ecx, ecx
je 0x47f18e
mov esi, ecx
mov dword [ebp - 0x84], esi
mov eax, esi
sub eax, ecx
cmp eax, 0x10000
jae 0x47f03c
cmp dword [esi], 0x5f4d535f
je 0x47f042
add esi, 0x10
jmp 0x47f01e
je 0x47f18e
mov al, byte [esi + 5]
cmp al, 0x1f
ja 0x47f18e
cmp al, 0x1e
je 0x47f059
cmp al, 0x1f
jne 0x47f18e
movzx eax, al
sub eax, ecx
add eax, esi
cmp eax, 0x10000
ja 0x47f18e
movzx eax, word [esi + 0x16]
test ax, ax
je 0x47f18e
mov ecx, 0x494d445f
cmp ecx, dword [esi + 0x10]
jne 0x47f18e
mov ecx, 0x5f
cmp cl, byte [esi + 0x14]
jne 0x47f18e
mov cl, byte [esi + 6]
mov byte [ebp - 0x4d], cl
mov byte [ebp - 0x56], cl
mov dl, byte [esi + 7]
mov byte [ebp - 0x4e], dl
mov byte [ebp - 0x57], dl
cmp cl, 2
jb 0x47f18e
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, esi
and ecx, 0xfff
mov dword [ebp - 0x88], ecx
lea eax, [edi + 0xfff]
add eax, ecx
and eax, 0xfffff000
push eax
sub esi, ecx
push esi
push 0
push 4
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x70], esi
test esi, esi
je 0x47f18c
xor ecx, ecx
mov eax, edi
add eax, 0x400
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.004b2710
add esp, 4
mov ecx, eax
mov dword [ebp - 0x74], ecx
test ecx, ecx
jne 0x47f132
mov ecx, 8
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x78], ecx
xor edi, edi
mov dword [ebp - 4], 0xffffffff
jmp 0x47f1dc
lea eax, [edi + 0x400]
push eax
push 0
push ecx
call fcn.004a8c90
add esp, 0xc
push edi
mov eax, dword [ebp - 0x88]
add eax, esi
push eax
push dword [ebp - 0x74]
call fcn.004a8710
add esp, 0xc
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x7c], eax
mov eax, edi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x80], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x70], 0
xor ecx, ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x78], ecx
mov edi, dword [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
jmp 0x47f1dc
xor edi, edi
mov ecx, 0x490
mov dword [ebp - 4], 0xffffffff
jmp 0x47f1dc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x47f1ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x68]
test ecx, ecx
jne 0x47f65c
mov eax, dword [ebp - 0x5c]
push 1
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, eax
mov ecx, edi
call fcn.0047ed90
add esp, 0xc
test eax, eax
jne 0x47f2e2
mov dword [ebp - 0x20], eax
call fcn.00441300
mov edi, eax
test edi, edi
je 0x47f6ee
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4f1320]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x60]
mov dl, byte [ecx + 8]
call fcn.0047ed00
add esp, 4
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x47f2b4
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push str._d__d__d
push esi
call fcn.0043e2b0
add esp, 0x14
cmp eax, 3
jne 0x47f2b4
dec dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
cmp eax, 0x76c
jl 0x47f29f
sub eax, 0x76c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x44]
push eax
call fcn.004c02ed
add esp, 4
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47f2df
mov edi, dword [ecx]
mov eax, dword [edi]
mov esi, dword [eax + 4]
push ecx
mov ecx, esi
call dword [0x4f1320]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x64]
push 1
lea eax, [ebp - 0x60]
push eax
push 1
mov edx, dword [ebp - 0x5c]
mov ecx, edi
call fcn.0047ed90
add esp, 0xc
test eax, eax
jne 0x47f32d
mov eax, dword [ebp - 0x54]
add eax, 4
push eax
mov esi, dword [ebp - 0x60]
mov dl, byte [esi + 7]
mov ecx, esi
call fcn.0047ed00
add esp, 4
cmp byte [ebp - 0x4d], 2
ja 0x47f320
jne 0x47f32d
cmp byte [ebp - 0x4e], 1
jb 0x47f32d
movups xmm0, xmmword [esi + 8]
mov esi, dword [ebp - 0x54]
movups xmmword [esi + 8], xmm0
jmp 0x47f330
mov esi, dword [ebp - 0x54]
push 1
lea eax, [ebp - 0x60]
push eax
push 2
mov edx, dword [ebp - 0x5c]
mov ecx, edi
call fcn.0047ed90
add esp, 0xc
test eax, eax
jne 0x47f371
lea eax, [esi + 0x18]
push eax
mov esi, dword [ebp - 0x60]
mov dl, byte [esi + 7]
mov ecx, esi
call fcn.0047ed00
add esp, 4
mov eax, dword [ebp - 0x54]
add eax, 0x1c
push eax
mov dl, byte [esi + 8]
mov ecx, esi
call fcn.0047ed00
add esp, 4
push 1
lea eax, [ebp - 0x60]
push eax
push 3
mov edx, dword [ebp - 0x5c]
mov ecx, edi
call fcn.0047ed90
add esp, 0xc
test eax, eax
jne 0x47f3b5
mov eax, dword [ebp - 0x54]
add eax, 0x20
push eax
mov esi, dword [ebp - 0x60]
mov dl, byte [esi + 7]
mov ecx, esi
call fcn.0047ed00
add esp, 4
mov eax, dword [ebp - 0x54]
add eax, 0x24
push eax
mov dl, byte [esi + 8]
mov ecx, esi
call fcn.0047ed00
add esp, 4
push 1
lea eax, [ebp - 0x60]
push eax
push 4
mov edx, dword [ebp - 0x5c]
mov ecx, edi
call fcn.0047ed90
add esp, 0xc
test eax, eax
jne 0x47f410
mov esi, dword [ebp - 0x60]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edi, dword [ebp - 0x54]
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
cmp byte [ebp - 0x4d], 2
ja 0x47f3ee
jne 0x47f410
cmp byte [ebp - 0x4e], 3
jb 0x47f410
lea eax, [edi + 0x30]
push eax
mov dl, byte [esi + 0x20]
mov ecx, esi
call fcn.0047ed00
add esp, 4
lea eax, [edi + 0x34]
push eax
mov dl, byte [esi + 0x21]
mov ecx, esi
call fcn.0047ed00
add esp, 4
mov byte [ebp - 0x55], 1
mov dword [ebp - 0x20], 0
call fcn.00441300
mov edi, eax
test edi, edi
je 0x47f6ee
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4f1320]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 6
mov dl, 1
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x47f498
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x47f498
mov esi, eax
lea edi, [ecx + eax]
add eax, 4
cmp eax, edi
ja 0x47f498
mov dh, byte [ebp - 0x55]
cmp byte [esi], 0x11
jne 0x47f476
cmp dh, dl
je 0x47f532
inc dl
movzx ecx, byte [esi + 1]
add ecx, esi
nop dword [eax]
cmp byte [ecx], 0
jne 0x47f48b
cmp byte [ecx + 1], 0
je 0x47f48e
inc ecx
jmp 0x47f480
lea esi, [ecx + 2]
lea eax, [ecx + 6]
cmp eax, edi
jbe 0x47f467
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47f4c6
mov edi, dword [ecx]
mov eax, dword [edi]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4f1320]
mov ecx, edi
call esi
mov dh, byte [ebp - 0x4d]
cmp dh, 2
ja 0x47f4df
jne 0x47f65c
mov al, byte [ebp - 0x4e]
cmp al, 1
jb 0x47f614
mov dl, 1
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x47f60a
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x47f60a
mov esi, eax
lea edi, [ecx + eax]
add eax, 4
cmp eax, edi
ja 0x47f60a
cmp byte [esi], 0x16
jne 0x47f517
cmp dl, 1
je 0x47f5f3
inc dl
movzx ecx, byte [esi + 1]
add ecx, esi
nop dword [eax]
cmp byte [ecx], 0
jne 0x47f52f
cmp byte [ecx + 1], 0
je 0x47f5e3
inc ecx
jmp 0x47f520
cmp byte [ebp - 0x4d], 2
ja 0x47f540
jne 0x47f5a6
cmp byte [ebp - 0x4e], 3
jb 0x47f5a6
lea eax, [ebp - 0x20]
push eax
mov dl, byte [esi + 0x1a]
mov ecx, esi
call fcn.0047ed00
add esp, 4
mov edi, dword [ebp - 0x54]
test eax, eax
jne 0x47f564
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x38]
call fcn.0047fbb0
lea eax, [ebp - 0x20]
push eax
mov dl, byte [esi + 0x18]
mov ecx, esi
call fcn.0047ed00
add esp, 4
test eax, eax
jne 0x47f585
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x3c]
call fcn.0047fbb0
lea eax, [ebp - 0x20]
push eax
mov dl, byte [esi + 0x19]
mov ecx, esi
call fcn.0047ed00
add esp, 4
test eax, eax
jne 0x47f5a6
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x40]
call fcn.0047fbb0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47f5d4
mov edi, dword [ecx]
mov eax, dword [edi]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4f1320]
mov ecx, edi
call esi
add byte [ebp - 0x55], 1
jne 0x47f414
jmp 0x47f4c6
lea esi, [ecx + 2]
lea eax, [esi + 4]
cmp eax, edi
jbe 0x47f507
jmp 0x47f60a
mov eax, dword [ebp - 0x54]
add eax, 0x44
push eax
mov dl, byte [esi + 7]
mov ecx, esi
call fcn.0047ed00
add esp, 4
mov dh, byte [ebp - 0x4d]
cmp dh, 2
ja 0x47f618
jne 0x47f65c
mov al, byte [ebp - 0x4e]
cmp al, 3
jb 0x47f65c
mov dl, 1
mov edi, dword [ebp - 0x64]
test edi, edi
je 0x47f65c
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x47f65c
lea esi, [eax + edi]
lea eax, [edi + 4]
cmp eax, esi
ja 0x47f65c
cmp byte [edi], 0x27
jne 0x47f63e
cmp dl, 1
je 0x47f6b3
inc dl
movzx ecx, byte [edi + 1]
add ecx, edi
cmp byte [ecx], 0
jne 0x47f64f
cmp byte [ecx + 1], 0
je 0x47f652
inc ecx
jmp 0x47f644
lea edi, [ecx + 2]
lea eax, [edi + 4]
cmp eax, esi
jbe 0x47f632
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x47f66a
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [ebp - 0x6c]
push 0
call fcn.004b2720
add esp, 4
push edi
call fcn.004b2720
add esp, 4
push dword [ebp - 0x74]
call fcn.004b2720
add esp, 4
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [ebp - 0x54]
lea eax, [esi + 0x48]
push eax
mov dl, byte [edi + 0xa]
mov ecx, edi
call fcn.0047ed00
add esp, 4
lea eax, [esi + 0x4c]
push eax
mov dl, byte [edi + 8]
mov ecx, edi
call fcn.0047ed00
add esp, 4
lea eax, [esi + 0x50]
push eax
mov dl, byte [edi + 9]
mov ecx, edi
call fcn.0047ed00
add esp, 4
jmp 0x47f65c
push 0x80004005
call fcn.004411b0
int3