Function at 0x4187a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d50c
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ecx + 0x60], 0
je 0x418a22
lea esi, [ecx + 0x30]
push str._bootmgfw.efi
mov edx, esi
lea ecx, [ebp - 0x158]
call fcn.0040c1a0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4187f8
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 3
push str.Z:EFIMicrosoftBoot_bootmgfw.efi
push eax
call edi
test eax, eax
mov eax, dword [ebp - 0x144]
sete bl
cmp eax, 8
jb 0x41882b
inc eax
lea ecx, [ebp - 0x158]
push eax
push dword [ebp - 0x158]
call fcn.0040f5b0
test bl, bl
je 0x418a29
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0xa8]
call fcn.00408c30
push str._bootmgfw.efi
mov edx, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x158]
call fcn.0040c1a0
add esp, 4
mov esi, eax
mov edx, str.MoveFileEx_Error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.0040b820
mov edx, str.SRC:
mov ecx, eax
call fcn.0040b820
mov edx, esi
mov ecx, eax
call fcn.0040be40
mov edx, str.DST:
mov ecx, eax
call fcn.0040b820
mov edx, str.Z:EFIMicrosoftBoot_bootmgfw.efi
mov ecx, eax
call fcn.0040b820
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x144]
cmp eax, 8
jb 0x4188d5
inc eax
lea ecx, [ebp - 0x158]
push eax
push dword [ebp - 0x158]
call fcn.0040f5b0
push 0x15
push str.CGptRestore::FileMove
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x15c], 0xf
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x170], 0
call fcn.0040f450
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
push 0xe
push str.GptRestore.cpp
mov dword [ebp - 0x174], 0xf
mov dword [ebp - 0x178], 0
mov byte [ebp - 0x188], 0
call fcn.0040f450
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xa8]
call fcn.00408b50
push eax
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 4
push eax
push 0x80
lea eax, [ebp - 0x188]
push eax
push ecx
call fcn.0041f440
mov ecx, eax
call fcn.0041f910
mov eax, dword [ebp - 0x144]
cmp eax, 8
jb 0x41898c
inc eax
lea ecx, [ebp - 0x158]
push eax
push dword [ebp - 0x158]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x144], 7
mov word [ebp - 0x158], ax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x148], 0
cmp eax, 0x10
jb 0x4189c7
inc eax
lea ecx, [ebp - 0x188]
push eax
push dword [ebp - 0x188]
call fcn.0040f330
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x174], 0xf
mov dword [ebp - 0x178], 0
mov byte [ebp - 0x188], 0
cmp eax, 0x10
jb 0x418a00
inc eax
lea ecx, [ebp - 0x170]
push eax
push dword [ebp - 0x170]
call fcn.0040f330
lea ecx, [ebp - 0x58]
call fcn.00408b70
mov dword [ebp - 4], 5
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], vtable.std::ios_base.0
push eax
call fcn.0042f0f8
add esp, 4
xor al, al
jmp 0x419160
push str._bootmgr.efi
mov edx, esi
lea ecx, [ebp - 0x158]
call fcn.0040c1a0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x418a46
mov eax, dword [eax]
push 3
push str.Z:EFIMicrosoftBoot_bootmgr.efi
push eax
call edi
test eax, eax
mov eax, dword [ebp - 0x144]
sete bl
cmp eax, 8
jb 0x418a73
inc eax
lea ecx, [ebp - 0x158]
push eax
push dword [ebp - 0x158]
call fcn.0040f5b0
test bl, bl
je 0x418bdf
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0xa8]
call fcn.00408c30
push str._bootmgr.efi
mov edx, esi
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x158]
call fcn.0040c1a0
add esp, 4
mov esi, eax
mov edx, str.MoveFileEx_Error:
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa8]
call fcn.0040b820
mov edx, str.SRC:
mov ecx, eax
call fcn.0040b820
mov edx, esi
mov ecx, eax
call fcn.0040be40
mov edx, str.DST:
mov ecx, eax
call fcn.0040b820
mov edx, str.Z:EFIMicrosoftBoot_bootmgr.efi
mov ecx, eax
call fcn.0040b820
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 6
call fcn.0040f680
push str.CGptRestore::FileMove
lea ecx, [ebp - 0x158]
call fcn.0040f550
push str.GptRestore.cpp
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 8
call fcn.0040f550
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0xa8]
call fcn.00408b50
push eax
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 0xa
push eax
push 0x86
lea eax, [ebp - 0x170]
push eax
push ecx
call fcn.0041f440
mov ecx, eax
call fcn.0041f910
lea ecx, [ebp - 0x188]
call fcn.0040f680
mov eax, dword [ebp - 0x15c]
cmp eax, 0x10
jb 0x418b92
inc eax
lea ecx, [ebp - 0x170]
push eax
push dword [ebp - 0x170]
call fcn.0040f330
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x15c], 0xf
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x170], 0
cmp eax, 0x10
jb 0x418bcb
inc eax
lea ecx, [ebp - 0x158]
push eax
push dword [ebp - 0x158]
call fcn.0040f330
lea ecx, [ebp - 0x58]
call fcn.00408b70
mov dword [ebp - 4], 0xb
jmp 0x418a0f
push str.memtest.efi
mov edx, esi
lea ecx, [ebp - 0x158]
call fcn.0040c1a0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x418bfc
mov eax, dword [eax]
push 3
push str.Z:EFIMicrosoftBootmemtest.efi
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x158]
sete bl
call fcn.0040f680
test bl, bl
je 0x418d41
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0xa8]
call fcn.00408c30
push str.memtest.efi
mov edx, esi
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x158]
call fcn.0040c1a0
add esp, 4
mov esi, eax
mov edx, str.MoveFileEx_Error:
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xa8]
call fcn.0040b820
mov edx, str.SRC:
mov ecx, eax
call fcn.0040b820
mov edx, esi
mov ecx, eax
call fcn.0040be40
mov edx, str.DST:
mov ecx, eax
call fcn.0040b820
mov edx, str.Z:EFIMicrosoftBootmemtest.efi
mov ecx, eax
call fcn.0040b820
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xc
call fcn.0040f680
push str.CGptRestore::FileMove
lea ecx, [ebp - 0x170]
call fcn.0040f550
push str.GptRestore.cpp
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xe
call fcn.0040f550
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0xa8]
call fcn.00408b50
push eax
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 0x10
push eax
push 0x8c
lea eax, [ebp - 0x158]
push eax
push ecx
call fcn.0041f440
mov ecx, eax
call fcn.0041f910
lea ecx, [ebp - 0x188]
call fcn.0040f680
lea ecx, [ebp - 0x158]
call fcn.0040ef30
lea ecx, [ebp - 0x170]
call fcn.0040ef30
lea ecx, [ebp - 0x58]
call fcn.00408b70
mov dword [ebp - 4], 0x11
jmp 0x418a0f
push str.zh_CN_bootmgfw.efi.mui
mov edx, esi
lea ecx, [ebp - 0x158]
call fcn.0040c1a0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x418d5e
mov eax, dword [eax]
push 3
push str.Z:EFIMicrosoftBootzh_CN_bootmgfw.efi.mui
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x158]
sete bl
call fcn.0040f680
test bl, bl
je 0x418ea1
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0xa8]
call fcn.00408c30
push str.zh_CN_bootmgfw.efi.mui
mov edx, esi
mov dword [ebp - 4], 0x12
lea ecx, [ebp - 0x158]
call fcn.0040c1a0
add esp, 4
mov esi, eax
mov edx, str.MoveFileEx_Error:
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xa8]
call fcn.0040b820
mov edx, str.SRC:
mov ecx, eax
call fcn.0040b820
mov edx, esi
mov ecx, eax
call fcn.0040be40
mov edx, str.DST:
mov ecx, eax
call fcn.0040b820
mov edx, str.Z:EFIMicrosoftBootzh_CN_bootmgfw.efi.mui
mov ecx, eax
call fcn.0040b820
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x12
call fcn.0040f680
push str.CGptRestore::FileMove
lea ecx, [ebp - 0x170]
call fcn.0040f550
push str.GptRestore.cpp
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x14
call fcn.0040f550
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0xa8]
call fcn.00408b50
push eax
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 0x16
push eax
push 0x95
lea eax, [ebp - 0x158]
push eax
push ecx
call fcn.0041f440
mov ecx, eax
call fcn.0041f910
lea ecx, [ebp - 0x188]
call fcn.0040f680
lea ecx, [ebp - 0x158]
call fcn.0040ef30
lea ecx, [ebp - 0x170]
call fcn.0040ef30
lea ecx, [ebp - 0xa8]
call fcn.004059f0
xor al, al
jmp 0x419160
push str.zh_CN_bootmgr.efi.mui
mov edx, esi
lea ecx, [ebp - 0x158]
call fcn.0040c1a0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x418ebe
mov eax, dword [eax]
push 3
push str.Z:EFIMicrosoftBootzh_CN_bootmgr.efi.mui
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x158]
sete bl
call fcn.0040f680
test bl, bl
je 0x419001
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0xa8]
call fcn.00408c30
push str.zh_CN_bootmgr.efi.mui
mov edx, esi
mov dword [ebp - 4], 0x17
lea ecx, [ebp - 0x158]
call fcn.0040c1a0
add esp, 4
mov esi, eax
mov edx, str.MoveFileEx_Error:
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xa8]
call fcn.0040b820
mov edx, str.SRC:
mov ecx, eax
call fcn.0040b820
mov edx, esi
mov ecx, eax
call fcn.0040be40
mov edx, str.DST:
mov ecx, eax
call fcn.0040b820
mov edx, str.Z:EFIMicrosoftBoot_bootmgr.efi
mov ecx, eax
call fcn.0040b820
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x17
call fcn.0040f680
push str.CGptRestore::FileMove
lea ecx, [ebp - 0x170]
call fcn.0040f550
push str.GptRestore.cpp
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x19
call fcn.0040f550
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0xa8]
call fcn.00408b50
push eax
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 0x1b
push eax
push 0x9b
lea eax, [ebp - 0x158]
push eax
push ecx
call fcn.0041f440
mov ecx, eax
call fcn.0041f910
lea ecx, [ebp - 0x188]
call fcn.0040f680
lea ecx, [ebp - 0x158]
call fcn.0040ef30
lea ecx, [ebp - 0x170]
call fcn.0040ef30
lea ecx, [ebp - 0xa8]
call fcn.004059f0
xor al, al
jmp 0x419160
push str.zh_CNmemtest.efi.mui
mov edx, esi
lea ecx, [ebp - 0x158]
call fcn.0040c1a0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x41901e
mov eax, dword [eax]
push 3
push str.Z:EFIMicrosoftBootzh_CNmemtest.efi.mui
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x158]
sete bl
call fcn.0040f680
test bl, bl
je 0x41915e
push 0x98
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x140]
call fcn.00408c30
push str.zh_CNmemtest.efi.mui
mov edx, esi
mov dword [ebp - 4], 0x1c
lea ecx, [ebp - 0x158]
call fcn.0040c1a0
add esp, 4
mov esi, eax
mov edx, str.MoveFileEx_Error:
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x140]
call fcn.0040b820
mov edx, str.SRC:
mov ecx, eax
call fcn.0040b820
mov edx, esi
mov ecx, eax
call fcn.0040be40
mov edx, str.DST:
mov ecx, eax
call fcn.0040b820
mov edx, str.Z:EFIMicrosoftBootzh_CNmemtest.efi.mui
mov ecx, eax
call fcn.0040b820
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x1c
call fcn.0040f680
push str.CGptRestore::FileMove
lea ecx, [ebp - 0x188]
call fcn.0040f550
push str.GptRestore.cpp
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 0x1e
call fcn.0040f550
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 0x1f
push eax
lea ecx, [ebp - 0x140]
call fcn.00408b50
push eax
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 0x20
push eax
push 0xa1
lea eax, [ebp - 0x170]
push eax
push ecx
call fcn.0041f440
mov ecx, eax
call fcn.0041f910
lea ecx, [ebp - 0x1a0]
call fcn.0040f680
lea ecx, [ebp - 0x170]
call fcn.0040ef30
lea ecx, [ebp - 0x188]
call fcn.0040ef30
lea ecx, [ebp - 0x140]
call fcn.004059f0
xor al, al
jmp 0x419160
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret