Function at 0x46e370
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x530010]
xor eax, esp
mov dword [esp + 0x48], eax
cmp word [0x532418], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, ecx
jne 0x46e458
push 0x518710
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46e458
push str.RtlGetNtVersionNumbers
push ebx
call esi
test eax, eax
je 0x46e451
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x44]
push ecx
call eax
movzx eax, word [esp + 0x40]
push ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x3c], 5
jbe 0x46e462
push str.GetSystemFirmwareTable
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
mov dword [esp + 0xc], eax
test eax, eax
jne 0x46e62f
mov dword [esp + 0x3c], eax
mov ecx, edi
lea eax, [esp + 0x3c]
push eax
call fcn.0046eb20
test al, al
je 0x46e60a
push dword [edi + 4]
mov esi, dword [esp + 0x40]
mov ecx, edi
push esi
call fcn.0046e9b0
test esi, esi
je 0x46e6b1
jmp 0x46e6a8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp word [0x532418], 3
jae 0x46e3fe
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x46e498
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x46e498
cmp dword [esp + 0x44], 0
jne 0x46e3fe
lea eax, [esp + 0x1c]
mov dword [esp + 0x44], 0
push str.ntdll.dll
mov dword [esp + 0x24], str.devicephysicalmemory
mov dword [esp + 0x20], 0x2e002c
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0xf0000
mov dword [esp + 0x50], 0
mov dword [esp + 0x44], 0xffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x46e5a6
push str.ZwOpenSection
push ebx
call esi
push str.ZwMapViewOfSection
push ebx
mov dword [esp + 0x1c], eax
call esi
push str.ZwUnmapViewOfSection
push ebx
mov dword [esp + 0x14], eax
call esi
push str.ZwClose
push ebx
mov dword [esp + 0x18], eax
call esi
mov ebx, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46e5a6
mov esi, dword [esp + 0xc]
test esi, esi
je 0x46e5a6
cmp dword [esp + 0x10], 0
je 0x46e5a6
test ebx, ebx
je 0x46e5a6
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0
push ecx
push 4
lea ecx, [esp + 0x20]
push ecx
call eax
test eax, eax
js 0x46e5a6
push 2
push 0
push 1
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x58]
push eax
push 0xffff
push 0
lea eax, [esp + 0x58]
push eax
push 0xffffffffffffffff
push dword [esp + 0x3c]
call esi
test eax, eax
jns 0x46e5c7
push dword [esp + 0x18]
call ebx
lea eax, [esp + 0x44]
mov ecx, edi
push eax
call fcn.0046eb20
test al, al
je 0x46e669
push dword [edi + 4]
mov esi, dword [esp + 0x48]
push esi
jmp 0x46e6a1
push dword [esp + 0x40]
call fcn.00476a95
mov edx, dword [esp + 0x44]
add esp, 4
mov esi, eax
mov ecx, esi
push edx
push dword [esp + 0x40]
call fcn.0046bbd0
mov eax, dword [esp + 0x48]
add esp, 8
mov dword [edi + 4], eax
push dword [esp + 0x3c]
push dword [esp + 0x1c]
call dword [esp + 0x18]
push dword [esp + 0x18]
call ebx
push dword [edi + 4]
push esi
jmp 0x46e6a1
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x46e669
push eax
call fcn.00476a52
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00476a44
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0x52534d42
call eax
mov ebx, eax
test ebx, ebx
je 0x46e669
push ebx
call fcn.00476a95
add esp, 4
mov esi, eax
push ebx
push esi
push 0
push 0x52534d42
call dword [esp + 0x1c]
mov ecx, eax
test ecx, ecx
jne 0x46e67d
push esi
call fcn.00476a52
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00476a44
mov esp, ebp
pop ebp
ret
mov al, byte [esi]
mov byte [edi], al
mov al, byte [esi + 1]
mov byte [edi + 1], al
mov al, byte [esi + 2]
mov byte [edi + 2], al
mov al, byte [esi + 3]
mov byte [edi + 3], al
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
lea eax, [ecx - 8]
push eax
lea eax, [esi + 8]
push eax
mov ecx, edi
call fcn.0046e9b0
push esi
call fcn.00476a52
add esp, 4
mov ecx, dword [esp + 0x54]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00476a44
mov esp, ebp
pop ebp
ret