Function at 0x46dab0
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 0x4c9e3d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x78
mov eax, dword [0x519100]
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 0x46db50
mov dword [ebp - 0x68], 0x57
xor edi, edi
jmp 0x46e31d
mov ecx, 0x105
cmp ax, cx
je 0x46dc2a
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 0x46db49
push 0
push 0
push 0
push 0x52534d42
mov ecx, esi
call dword [0x4cc2f8]
call esi
mov edi, eax
test edi, edi
je 0x46db49
xor ecx, ecx
add eax, 0x400
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00498320
add esp, 4
mov ecx, eax
mov dword [ebp - 0x6c], ecx
test ecx, ecx
jne 0x46dbc4
mov dword [ebp - 0x68], 8
mov edi, eax
jmp 0x46e31d
lea eax, [edi + 0x400]
push eax
push 0
push ecx
call fcn.00486ef0
add esp, 0xc
push edi
mov edi, dword [ebp - 0x6c]
push edi
push 0
push 0x52534d42
mov ecx, esi
call dword [0x4cc2f8]
call esi
test eax, eax
je 0x46e31d
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 0x46dc12
mov dword [ebp - 0x68], 0x718
jmp 0x46e31d
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 0x46dea8
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 0x4f9d50
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x46de3e
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 [0x4cc2f8]
call esi
test eax, eax
js 0x46de3e
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 0x46de3e
mov esi, ecx
mov dword [ebp - 0x84], esi
mov eax, esi
sub eax, ecx
cmp eax, 0x10000
jae 0x46dcec
cmp dword [esi], 0x5f4d535f
je 0x46dcf2
add esi, 0x10
jmp 0x46dcce
je 0x46de3e
mov al, byte [esi + 5]
cmp al, 0x1f
ja 0x46de3e
cmp al, 0x1e
je 0x46dd09
cmp al, 0x1f
jne 0x46de3e
movzx eax, al
sub eax, ecx
add eax, esi
cmp eax, 0x10000
ja 0x46de3e
movzx eax, word [esi + 0x16]
test ax, ax
je 0x46de3e
mov ecx, 0x494d445f
cmp ecx, dword [esi + 0x10]
jne 0x46de3e
mov ecx, 0x5f
cmp cl, byte [esi + 0x14]
jne 0x46de3e
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 0x46de3e
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 0x46de3c
xor ecx, ecx
mov eax, edi
add eax, 0x400
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00498320
add esp, 4
mov ecx, eax
mov dword [ebp - 0x74], ecx
test ecx, ecx
jne 0x46dde2
mov ecx, 8
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x78], ecx
xor edi, edi
mov dword [ebp - 4], 0xffffffff
jmp 0x46de8c
lea eax, [edi + 0x400]
push eax
push 0
push ecx
call fcn.00486ef0
add esp, 0xc
push edi
mov eax, dword [ebp - 0x88]
add eax, esi
push eax
push dword [ebp - 0x74]
call fcn.00486970
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 0x46de8c
xor edi, edi
mov ecx, 0x490
mov dword [ebp - 4], 0xffffffff
jmp 0x46de8c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x46de9d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x68]
test ecx, ecx
jne 0x46e30c
mov eax, dword [ebp - 0x5c]
push 1
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, eax
mov ecx, edi
call fcn.0046da40
add esp, 0xc
test eax, eax
jne 0x46df92
mov dword [ebp - 0x20], eax
call fcn.0046fac0
mov edi, eax
test edi, edi
je 0x46e39e
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4cc2f8]
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.0046d9b0
add esp, 4
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x46df64
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.0046fc40
add esp, 0x14
cmp eax, 3
jne 0x46df64
dec dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
cmp eax, 0x76c
jl 0x46df4f
sub eax, 0x76c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x44]
push eax
call fcn.004a18cb
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 0x46df8f
mov edi, dword [ecx]
mov eax, dword [edi]
mov esi, dword [eax + 4]
push ecx
mov ecx, esi
call dword [0x4cc2f8]
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.0046da40
add esp, 0xc
test eax, eax
jne 0x46dfdd
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.0046d9b0
add esp, 4
cmp byte [ebp - 0x4d], 2
ja 0x46dfd0
jne 0x46dfdd
cmp byte [ebp - 0x4e], 1
jb 0x46dfdd
movups xmm0, xmmword [esi + 8]
mov esi, dword [ebp - 0x54]
movups xmmword [esi + 8], xmm0
jmp 0x46dfe0
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.0046da40
add esp, 0xc
test eax, eax
jne 0x46e021
lea eax, [esi + 0x18]
push eax
mov esi, dword [ebp - 0x60]
mov dl, byte [esi + 7]
mov ecx, esi
call fcn.0046d9b0
add esp, 4
mov eax, dword [ebp - 0x54]
add eax, 0x1c
push eax
mov dl, byte [esi + 8]
mov ecx, esi
call fcn.0046d9b0
add esp, 4
push 1
lea eax, [ebp - 0x60]
push eax
push 3
mov edx, dword [ebp - 0x5c]
mov ecx, edi
call fcn.0046da40
add esp, 0xc
test eax, eax
jne 0x46e065
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.0046d9b0
add esp, 4
mov eax, dword [ebp - 0x54]
add eax, 0x24
push eax
mov dl, byte [esi + 8]
mov ecx, esi
call fcn.0046d9b0
add esp, 4
push 1
lea eax, [ebp - 0x60]
push eax
push 4
mov edx, dword [ebp - 0x5c]
mov ecx, edi
call fcn.0046da40
add esp, 0xc
test eax, eax
jne 0x46e0c0
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 0x46e09e
jne 0x46e0c0
cmp byte [ebp - 0x4e], 3
jb 0x46e0c0
lea eax, [edi + 0x30]
push eax
mov dl, byte [esi + 0x20]
mov ecx, esi
call fcn.0046d9b0
add esp, 4
lea eax, [edi + 0x34]
push eax
mov dl, byte [esi + 0x21]
mov ecx, esi
call fcn.0046d9b0
add esp, 4
mov byte [ebp - 0x55], 1
mov dword [ebp - 0x20], 0
call fcn.0046fac0
mov edi, eax
test edi, edi
je 0x46e39e
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4cc2f8]
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 0x46e148
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x46e148
mov esi, eax
lea edi, [ecx + eax]
add eax, 4
cmp eax, edi
ja 0x46e148
mov dh, byte [ebp - 0x55]
cmp byte [esi], 0x11
jne 0x46e126
cmp dh, dl
je 0x46e1e2
inc dl
movzx ecx, byte [esi + 1]
add ecx, esi
nop dword [eax]
cmp byte [ecx], 0
jne 0x46e13b
cmp byte [ecx + 1], 0
je 0x46e13e
inc ecx
jmp 0x46e130
lea esi, [ecx + 2]
lea eax, [ecx + 6]
cmp eax, edi
jbe 0x46e117
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 0x46e176
mov edi, dword [ecx]
mov eax, dword [edi]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4cc2f8]
mov ecx, edi
call esi
mov dh, byte [ebp - 0x4d]
cmp dh, 2
ja 0x46e18f
jne 0x46e30c
mov al, byte [ebp - 0x4e]
cmp al, 1
jb 0x46e2c4
mov dl, 1
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x46e2ba
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x46e2ba
mov esi, eax
lea edi, [ecx + eax]
add eax, 4
cmp eax, edi
ja 0x46e2ba
cmp byte [esi], 0x16
jne 0x46e1c7
cmp dl, 1
je 0x46e2a3
inc dl
movzx ecx, byte [esi + 1]
add ecx, esi
nop dword [eax]
cmp byte [ecx], 0
jne 0x46e1df
cmp byte [ecx + 1], 0
je 0x46e293
inc ecx
jmp 0x46e1d0
cmp byte [ebp - 0x4d], 2
ja 0x46e1f0
jne 0x46e256
cmp byte [ebp - 0x4e], 3
jb 0x46e256
lea eax, [ebp - 0x20]
push eax
mov dl, byte [esi + 0x1a]
mov ecx, esi
call fcn.0046d9b0
add esp, 4
mov edi, dword [ebp - 0x54]
test eax, eax
jne 0x46e214
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x38]
call fcn.0046e860
lea eax, [ebp - 0x20]
push eax
mov dl, byte [esi + 0x18]
mov ecx, esi
call fcn.0046d9b0
add esp, 4
test eax, eax
jne 0x46e235
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x3c]
call fcn.0046e860
lea eax, [ebp - 0x20]
push eax
mov dl, byte [esi + 0x19]
mov ecx, esi
call fcn.0046d9b0
add esp, 4
test eax, eax
jne 0x46e256
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x40]
call fcn.0046e860
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 0x46e284
mov edi, dword [ecx]
mov eax, dword [edi]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4cc2f8]
mov ecx, edi
call esi
add byte [ebp - 0x55], 1
jne 0x46e0c4
jmp 0x46e176
lea esi, [ecx + 2]
lea eax, [esi + 4]
cmp eax, edi
jbe 0x46e1b7
jmp 0x46e2ba
mov eax, dword [ebp - 0x54]
add eax, 0x44
push eax
mov dl, byte [esi + 7]
mov ecx, esi
call fcn.0046d9b0
add esp, 4
mov dh, byte [ebp - 0x4d]
cmp dh, 2
ja 0x46e2c8
jne 0x46e30c
mov al, byte [ebp - 0x4e]
cmp al, 3
jb 0x46e30c
mov dl, 1
mov edi, dword [ebp - 0x64]
test edi, edi
je 0x46e30c
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x46e30c
lea esi, [eax + edi]
lea eax, [edi + 4]
cmp eax, esi
ja 0x46e30c
cmp byte [edi], 0x27
jne 0x46e2ee
cmp dl, 1
je 0x46e363
inc dl
movzx ecx, byte [edi + 1]
add ecx, edi
cmp byte [ecx], 0
jne 0x46e2ff
cmp byte [ecx + 1], 0
je 0x46e302
inc ecx
jmp 0x46e2f4
lea edi, [ecx + 2]
lea eax, [edi + 4]
cmp eax, esi
jbe 0x46e2e2
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x46e31a
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [ebp - 0x6c]
push 0
call fcn.00490970
add esp, 4
push edi
call fcn.00490970
add esp, 4
push dword [ebp - 0x74]
call fcn.00490970
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.0048471b
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.0046d9b0
add esp, 4
lea eax, [esi + 0x4c]
push eax
mov dl, byte [edi + 8]
mov ecx, edi
call fcn.0046d9b0
add esp, 4
lea eax, [esi + 0x50]
push eax
mov dl, byte [edi + 9]
mov ecx, edi
call fcn.0046d9b0
add esp, 4
jmp 0x46e30c
push 0x80004005
call fcn.0046f7f0
int3