Function at 0x47b660
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d761d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5080f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x50], edi
mov esi, 0x490
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x78], esi
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x80], eax
xor al, al
mov byte [ebp - 0x49], al
mov byte [ebp - 0x51], al
mov byte [ebp - 0x4a], al
mov byte [ebp - 0x52], al
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
mov dword [ebp - 0x70], 0
test edi, edi
jne 0x47b6e4
lea esi, [edi + 0x57]
jmp 0x47be48
mov ecx, 0x105
cmp ax, cx
je 0x47b7c3
push str.GetSystemFirmwareTable
push 0x4eafd0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x47be43
push 0
push 0
push 0
push 0x52534d42
mov ecx, esi
call dword [0x4d9444]
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x47be43
xor ecx, ecx
add eax, 0x400
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.004aefd0
add esp, 4
mov ecx, eax
mov dword [ebp - 0x68], ecx
test ecx, ecx
jne 0x47b75b
lea esi, [eax + 8]
jmp 0x47be48
mov eax, dword [ebp - 0x1c]
add eax, 0x400
push eax
push 0
push ecx
call fcn.004a08b0
add esp, 0xc
push dword [ebp - 0x1c]
push dword [ebp - 0x68]
push 0
push 0x52534d42
mov ecx, esi
call dword [0x4d9444]
call esi
test eax, eax
je 0x47be43
mov edx, dword [ebp - 0x68]
mov al, byte [edx + 1]
mov byte [ebp - 0x49], al
mov cl, byte [edx + 2]
mov byte [ebp - 0x4a], cl
cmp al, 2
jae 0x47b7ab
mov esi, 0x718
jmp 0x47be48
lea eax, [edx + 8]
mov dword [ebp - 0x58], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x64], 0
jmp 0x47ba49
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x48], 0x2e002c
mov dword [ebp - 0x44], str.DevicePhysicalMemory
mov dword [ebp - 4], 0
push str.NtOpenSection
push 0x4e9d3c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x47b9ed
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x34]
push ecx
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call dword [0x4d9444]
call dword [ebp - 0x18]
test eax, eax
js 0x47b9ed
push 0x10000
push 0xf0000
push 0
push 4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [ebp - 0x70], ecx
test ecx, ecx
je 0x47b9ed
mov esi, ecx
mov dword [ebp - 0x84], esi
mov eax, esi
sub eax, ecx
cmp eax, 0x10000
jae 0x47b88b
cmp dword [esi], 0x5f4d535f
je 0x47b891
add esi, 0x10
jmp 0x47b86d
je 0x47b9e8
mov al, byte [esi + 5]
cmp al, 0x1f
ja 0x47b9e8
cmp al, 0x1e
je 0x47b8a8
cmp al, 0x1f
jne 0x47b9e8
movzx eax, al
sub eax, ecx
add eax, esi
cmp eax, 0x10000
ja 0x47b9e8
movzx eax, word [esi + 0x16]
mov dword [ebp - 0x18], eax
test ax, ax
je 0x47b9e8
mov eax, 0x494d445f
cmp eax, dword [esi + 0x10]
jne 0x47b9e8
mov eax, 0x5f
cmp al, byte [esi + 0x14]
jne 0x47b9e8
mov al, byte [esi + 6]
mov byte [ebp - 0x49], al
mov byte [ebp - 0x51], al
mov dl, byte [esi + 7]
mov byte [ebp - 0x4a], dl
mov byte [ebp - 0x52], dl
cmp al, 2
jb 0x47b9e8
mov esi, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, esi
and ecx, 0xfff
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x18]
movzx eax, dx
add eax, 0xfff
add eax, ecx
and eax, 0xfffff000
push eax
sub esi, ecx
push esi
push 0
push 4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x70], esi
test esi, esi
je 0x47b9e8
xor ecx, ecx
mov edx, dword [ebp - 0x18]
movzx eax, dx
add eax, 0x400
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.004aefd0
add esp, 4
mov edx, eax
mov dword [ebp - 0x74], edx
test edx, edx
jne 0x47b985
mov esi, 8
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x47ba2d
mov ecx, dword [ebp - 0x18]
movzx eax, cx
add eax, 0x400
push eax
push 0
push edx
call fcn.004a08b0
mov ecx, dword [ebp - 0x18]
movzx eax, cx
push eax
mov eax, dword [ebp - 0x88]
add eax, esi
push eax
push dword [ebp - 0x74]
call fcn.004a0330
add esp, 0x18
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x18]
movzx eax, cx
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 esi, esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x47ba2d
mov esi, 0x490
mov dword [ebp - 4], 0xffffffff
jmp 0x47ba2d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47ba3b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x47be2e
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
push 1
lea edx, [ebp - 0x6c]
push edx
push 0
mov edx, ecx
mov ecx, eax
call fcn.0047b580
add esp, 0xc
test eax, eax
jne 0x47bb2f
mov dword [ebp - 0x1c], eax
call fcn.0047d2b0
mov dword [ebp - 0x50], eax
test eax, eax
je 0x47be82
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4d9444]
mov ecx, dword [ebp - 0x50]
call esi
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x6c]
mov dl, byte [ecx + 8]
call fcn.0047b4f0
add esp, 4
mov esi, dword [ebp - 0x1c]
test eax, eax
jne 0x47bb04
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push str._d__d__d
push esi
call fcn.0047d400
add esp, 0x14
cmp eax, 3
jne 0x47bb04
dec dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
cmp eax, 0x76c
jl 0x47baf2
sub eax, 0x76c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004bb06a
add esp, 4
mov dword [edi + 0x58], eax
mov dword [edi + 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 0x47bb2f
mov edi, dword [ecx]
mov eax, dword [edi]
mov esi, dword [eax + 4]
push ecx
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
push 1
lea eax, [ebp - 0x50]
push eax
push 1
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
call fcn.0047b580
add esp, 0xc
mov edi, dword [ebp - 0x60]
test eax, eax
jne 0x47bb76
lea eax, [edi + 4]
push eax
mov esi, dword [ebp - 0x50]
mov dl, byte [esi + 7]
mov ecx, esi
call fcn.0047b4f0
add esp, 4
cmp byte [ebp - 0x49], 2
ja 0x47bb6e
jne 0x47bb76
cmp byte [ebp - 0x4a], 1
jb 0x47bb76
movups xmm0, xmmword [esi + 8]
movups xmmword [edi + 8], xmm0
push 1
lea eax, [ebp - 0x50]
push eax
push 2
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
call fcn.0047b580
add esp, 0xc
test eax, eax
jne 0x47bbb2
lea eax, [edi + 0x18]
push eax
mov esi, dword [ebp - 0x50]
mov dl, byte [esi + 7]
mov ecx, esi
call fcn.0047b4f0
lea eax, [edi + 0x1c]
push eax
mov dl, byte [esi + 8]
mov ecx, esi
call fcn.0047b4f0
add esp, 8
push 1
lea eax, [ebp - 0x50]
push eax
push 3
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
call fcn.0047b580
add esp, 0xc
test eax, eax
jne 0x47bbee
lea eax, [edi + 0x20]
push eax
mov esi, dword [ebp - 0x50]
mov dl, byte [esi + 7]
mov ecx, esi
call fcn.0047b4f0
lea eax, [edi + 0x24]
push eax
mov dl, byte [esi + 8]
mov ecx, esi
call fcn.0047b4f0
add esp, 8
push 1
lea eax, [ebp - 0x50]
push eax
push 4
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
call fcn.0047b580
add esp, 0xc
test eax, eax
jne 0x47bc44
mov esi, dword [ebp - 0x50]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
cmp byte [ebp - 0x49], 2
ja 0x47bc25
jne 0x47bc44
cmp byte [ebp - 0x4a], 3
jb 0x47bc44
lea eax, [edi + 0x30]
push eax
mov dl, byte [esi + 0x20]
mov ecx, esi
call fcn.0047b4f0
lea eax, [edi + 0x34]
push eax
mov dl, byte [esi + 0x21]
mov ecx, esi
call fcn.0047b4f0
add esp, 8
mov byte [ebp - 0x1c], 1
nop dword [eax + eax]
mov dword [ebp - 0x18], 0
call fcn.0047d2b0
mov dword [ebp - 0x50], eax
test eax, eax
je 0x47be82
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4d9444]
mov ecx, dword [ebp - 0x50]
call esi
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 6
push dword [ebp - 0x1c]
lea eax, [ebp - 0x6c]
push eax
push 0x11
mov edx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x58]
mov ecx, esi
call fcn.0047b580
add esp, 0xc
test eax, eax
jne 0x47bd58
cmp byte [ebp - 0x49], 2
ja 0x47bcb5
jne 0x47bd1b
cmp byte [ebp - 0x4a], 3
jb 0x47bd1b
lea eax, [ebp - 0x18]
push eax
mov esi, dword [ebp - 0x6c]
mov dl, byte [esi + 0x1a]
mov ecx, esi
call fcn.0047b4f0
add esp, 4
test eax, eax
jne 0x47bcd9
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x38]
call fcn.0047c2a0
lea eax, [ebp - 0x18]
push eax
mov dl, byte [esi + 0x18]
mov ecx, esi
call fcn.0047b4f0
add esp, 4
test eax, eax
jne 0x47bcfa
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x3c]
call fcn.0047c2a0
lea eax, [ebp - 0x18]
push eax
mov dl, byte [esi + 0x19]
mov ecx, esi
call fcn.0047b4f0
add esp, 4
test eax, eax
jne 0x47bd1b
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x40]
call fcn.0047c2a0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47bd49
mov edi, dword [ecx]
mov eax, dword [edi]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
add byte [ebp - 0x1c], 1
mov edi, dword [ebp - 0x60]
jne 0x47bc50
jmp 0x47bd86
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47bd89
mov edi, dword [ecx]
mov eax, dword [edi]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x58]
mov al, byte [ebp - 0x49]
cmp al, 2
ja 0x47bd9d
jne 0x47bdd4
mov al, byte [ebp - 0x4a]
cmp al, 1
jb 0x47be3e
push 1
lea eax, [ebp - 0x50]
push eax
push 0x16
mov edx, dword [ebp - 0x5c]
mov ecx, esi
call fcn.0047b580
add esp, 0xc
mov edi, dword [ebp - 0x60]
test eax, eax
jne 0x47bdcb
lea eax, [edi + 0x44]
push eax
mov ecx, dword [ebp - 0x50]
mov dl, byte [ecx + 7]
call fcn.0047b4f0
add esp, 4
mov al, byte [ebp - 0x49]
cmp al, 2
ja 0x47bde2
jmp 0x47bdd7
mov edi, dword [ebp - 0x60]
cmp al, 2
jne 0x47be2b
mov al, byte [ebp - 0x4a]
cmp al, 3
jb 0x47be2b
push 1
lea eax, [ebp - 0x50]
push eax
push 0x27
mov edx, dword [ebp - 0x5c]
mov ecx, esi
call fcn.0047b580
add esp, 0xc
test eax, eax
jne 0x47be2b
lea eax, [edi + 0x48]
push eax
mov esi, dword [ebp - 0x50]
mov dl, byte [esi + 0xa]
mov ecx, esi
call fcn.0047b4f0
lea eax, [edi + 0x4c]
push eax
mov dl, byte [esi + 8]
mov ecx, esi
call fcn.0047b4f0
lea eax, [edi + 0x50]
push eax
mov dl, byte [esi + 9]
mov ecx, esi
call fcn.0047b4f0
add esp, 0xc
mov esi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x47be48
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x47be48
mov edi, dword [ebp - 0x60]
jmp 0x47bdde
mov esi, 0x490
push 0
call fcn.004a94f0
push dword [ebp - 0x68]
call fcn.004a94f0
push dword [ebp - 0x74]
call fcn.004a94f0
add esp, 0xc
mov dword [edi], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00484d55
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0047cfe0
int3