Function at 0x1001a0c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056ef4
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c4], ecx
lea ecx, [ebp - 0x28]
call fcn.10005620
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10005620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10005620
mov byte [ebp - 4], 2
mov dword [ebp - 0x1d8], 0
lea ecx, [ebp - 0x70]
call fcn.10005620
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.10005620
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
call fcn.10005ad0
mov byte [ebp - 4], 5
push str._INF__UpdateBCD_Element_EFI__Start
call fcn.100098e0
add esp, 4
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
movsx edx, byte [ecx + 0x69dc]
cmp edx, 4
jne 0x1001a1d1
mov byte [ebp - 0x1ca], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
call fcn.10005900
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.10005450
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.10005450
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10005450
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005450
mov al, byte [ebp - 0x1ca]
jmp 0x1001ac92
movsx eax, byte [ebp + 8]
test eax, eax
je 0x1001a1e1
movsx ecx, byte [ebp + 0xc]
test ecx, ecx
jne 0x1001a25b
movsx edx, byte [ebp + 0xc]
push edx
movsx eax, byte [ebp + 8]
push eax
push str._ERR__UpdateBCD_Element_EFI__chSys__0___d___chWin__0___d_
call fcn.100098e0
add esp, 0xc
mov byte [ebp - 0x1cb], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
call fcn.10005900
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.10005450
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.10005450
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10005450
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005450
mov al, byte [ebp - 0x1cb]
jmp 0x1001ac92
movsx ecx, byte [ebp + 8]
push ecx
push 0x1006c0c4
lea edx, [ebp - 0xd0]
push edx
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x1e0]
push eax
lea ecx, [ebp - 0x40]
call fcn.100054a0
lea ecx, [ebp - 0xd0]
call fcn.10005450
movsx ecx, byte [ebp + 8]
push ecx
push str._c:EFIMicrosoft_boot_bcd.clx
lea edx, [ebp - 0x100]
push edx
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x1dc]
push eax
lea ecx, [ebp - 0x58]
call fcn.100054a0
lea ecx, [ebp - 0x100]
call fcn.10005450
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x250], esp
lea edx, [ebp - 0x40]
push edx
call fcn.10005670
call fcn.10009b10
add esp, 0x18
mov byte [ebp - 0x1cc], al
movzx eax, byte [ebp - 0x1cc]
test eax, eax
je 0x1001a3a7
push 0x80
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x258], esp
lea edx, [ebp - 0x40]
push edx
call fcn.10005670
call fcn.10009e20
add esp, 0x1c
mov byte [ebp - 0x1cd], al
movzx eax, byte [ebp - 0x1cd]
test eax, eax
jne 0x1001a344
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERR__UpdateBCD_Element_EFI__SetFileAttributes__GetLastError__d
call fcn.100098e0
add esp, 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x25c], esp
lea edx, [ebp - 0x58]
push edx
call fcn.10005670
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 6
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x264], esp
lea eax, [ebp - 0x40]
push eax
call fcn.10005670
mov byte [ebp - 4], 5
call fcn.10009f80
add esp, 0x30
mov byte [ebp - 0x1ce], al
movzx ecx, byte [ebp - 0x1ce]
test ecx, ecx
jne 0x1001a3a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERR__UpdateBCD_Element_EFI__MyMoveFile__bcd____bcd.clx__GetLastError__d
call fcn.100098e0
add esp, 8
mov edx, dword [ebp - 0x1c4]
mov eax, dword [edx]
movsx ecx, byte [eax + 0x69dc]
cmp ecx, 7
jl 0x1001a3c9
mov edx, dword [ebp - 0x1c4]
movzx eax, byte [edx + 8]
test eax, eax
jne 0x1001a3ff
mov ecx, dword [ebp - 0x1c4]
mov edx, dword [ecx]
movsx eax, byte [edx + 0x69dc]
cmp eax, 7
jl 0x1001a43f
mov ecx, dword [ebp - 0x1c4]
movzx edx, byte [ecx + 8]
test edx, edx
jne 0x1001a43f
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
movsx edx, byte [ecx + 0x69dd]
cmp edx, 7
jl 0x1001a43f
movsx eax, byte [ebp + 8]
push eax
movsx ecx, byte [ebp + 0xc]
push ecx
push str._c:Windows__s__c:__f_UEFI
lea edx, [ebp - 0xe8]
push edx
call fcn.1002eaa0
add esp, 0x10
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x1f4]
push eax
lea ecx, [ebp - 0x28]
call fcn.100054a0
lea ecx, [ebp - 0xe8]
call fcn.10005450
jmp 0x1001a47d
movsx ecx, byte [ebp + 8]
push ecx
movsx edx, byte [ebp + 0xc]
push edx
push str._c:Windows__s__c:
lea eax, [ebp - 0x118]
push eax
call fcn.1002eaa0
add esp, 0x10
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x28]
call fcn.100054a0
lea ecx, [ebp - 0x118]
call fcn.10005450
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x268], esp
lea edx, [ebp - 0x28]
push edx
call fcn.10005670
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x270], esp
push str.bcdboot
call fcn.100055b0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c4]
call fcn.10016d00
lea ecx, [ebp - 0x28]
call fcn.10005370
push eax
push str._INF__UpdateBCD_Element_EFI__BCDBOOT__s
call fcn.100098e0
add esp, 8
push 0x1f4
mov ecx, dword [ebp - 0x1c4]
call fcn.100170f0
call fcn.1000a2a0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x274], esp
lea eax, [ebp - 0x40]
push eax
call fcn.10005670
call fcn.10009b10
add esp, 0x18
mov byte [ebp - 0x1c9], al
movzx ecx, byte [ebp - 0x1c9]
test ecx, ecx
jne 0x1001a6be
push str._ERR__UpdateBCD_Element_EFI__BCD_FileExists__false
call fcn.100098e0
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x27c], esp
lea edx, [ebp - 0x58]
push edx
call fcn.10005670
call fcn.10009b10
add esp, 0x18
mov byte [ebp - 0x1cf], al
movzx eax, byte [ebp - 0x1cf]
test eax, eax
je 0x1001a6bc
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x280], esp
lea edx, [ebp - 0x40]
push edx
call fcn.10005670
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x288], esp
lea eax, [ebp - 0x58]
push eax
call fcn.10005670
mov byte [ebp - 4], 5
call fcn.10009f80
add esp, 0x30
mov byte [ebp - 0x1d0], al
movzx ecx, byte [ebp - 0x1d0]
test ecx, ecx
jne 0x1001a5bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERR__UpdateBCD_Element_EFI__MyMoveFile__bcd.clx____bcd__GetLastError__d
call fcn.100098e0
add esp, 8
movsx edx, byte [ebp + 0xc]
push edx
movsx eax, byte [ebp + 8]
push eax
push 0x1006c370
lea ecx, [ebp - 0x130]
push ecx
call fcn.1002eaa0
add esp, 0x10
mov dword [ebp - 0x204], eax
mov edx, dword [ebp - 0x204]
push edx
lea ecx, [ebp - 0x28]
call fcn.100054a0
lea ecx, [ebp - 0x130]
call fcn.10005450
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x28c], esp
lea eax, [ebp - 0x28]
push eax
call fcn.10005670
mov dword [ebp - 0x290], eax
mov byte [ebp - 4], 9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x294], esp
push 0x1006c1f4
call fcn.100055b0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c4]
call fcn.10016d00
movsx ecx, byte [ebp + 0xc]
push ecx
movsx edx, byte [ebp + 8]
push edx
push 0x1006c400
lea eax, [ebp - 0x148]
push eax
call fcn.1002eaa0
add esp, 0x10
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x200]
push ecx
lea ecx, [ebp - 0x28]
call fcn.100054a0
lea ecx, [ebp - 0x148]
call fcn.10005450
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x298], esp
lea edx, [ebp - 0x28]
push edx
call fcn.10005670
mov dword [ebp - 0x29c], eax
mov byte [ebp - 4], 0xa
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x20c], esp
push 0x1006c2dc
call fcn.100055b0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c4]
call fcn.10016d00
jmp 0x1001a71b
push str._INF__UpdateBCD_Element_EFI__BCD_FileExists_
call fcn.100098e0
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x210], esp
lea eax, [ebp - 0x58]
push eax
call fcn.10005670
call fcn.10009b10
add esp, 0x18
mov byte [ebp - 0x1d1], al
movzx ecx, byte [ebp - 0x1d1]
test ecx, ecx
je 0x1001a71b
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x214], esp
lea ecx, [ebp - 0x58]
call fcn.10005370
push eax
mov ecx, esi
call fcn.100055b0
call fcn.10009ca0
add esp, 0x18
call fcn.1000a2a0
cmp dword [ebp - 0x1d8], 3
jl 0x1001a82d
movsx edx, byte [ebp + 0xc]
push edx
movsx eax, byte [ebp + 8]
push eax
push str._store__c:EFIMicrosoft_boot_bcd__set_default_device___partition_c:
lea ecx, [ebp - 0xb8]
push ecx
call fcn.1002eaa0
add esp, 0x10
mov dword [ebp - 0x1fc], eax
mov edx, dword [ebp - 0x1fc]
push edx
lea ecx, [ebp - 0x28]
call fcn.100054a0
lea ecx, [ebp - 0xb8]
call fcn.10005450
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x218], esp
lea eax, [ebp - 0x28]
push eax
call fcn.10005670
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0xb
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x220], esp
push 0x1006c35c
call fcn.100055b0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c4]
call fcn.10016d00
movsx ecx, byte [ebp + 0xc]
push ecx
movsx edx, byte [ebp + 8]
push edx
push str._store__c:EFIMicrosoft_boot_bcd__set_default_osdevice_partition_c:
lea eax, [ebp - 0x160]
push eax
call fcn.1002eaa0
add esp, 0x10
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x1f8]
push ecx
lea ecx, [ebp - 0x28]
call fcn.100054a0
lea ecx, [ebp - 0x160]
call fcn.10005450
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x224], esp
lea edx, [ebp - 0x28]
push edx
call fcn.10005670
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 0xc
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x22c], esp
push 0x1006c5e0
call fcn.100055b0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c4]
call fcn.10016d00
push str.rescan_r_n
lea eax, [ebp - 0x178]
push eax
call fcn.1002e950
add esp, 8
mov dword [ebp - 0x1e4], eax
mov ecx, dword [ebp - 0x1e4]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.10005950
lea ecx, [ebp - 0x178]
call fcn.10005900
push 1
push 0x40
push 2
mov edx, dword [ebp - 0x1c4]
add edx, 0x270
push edx
lea ecx, [ebp - 0x34c]
call fcn.10022830
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xa0]
call fcn.10005e70
xor ecx, ecx
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.100057f0
push eax
lea ecx, [ebp - 0x34c]
call fcn.10023680
lea ecx, [ebp - 0x34c]
call fcn.10022770
push 1
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x230], esp
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x288
call fcn.10005370
push eax
mov ecx, esi
call fcn.100055b0
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0xe
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x238], esp
push 0x1006bfcc
call fcn.100055b0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x1c4]
call fcn.10016bc0
call fcn.1000a2a0
push 0x1f4
mov ecx, dword [ebp - 0x1c4]
call fcn.100170f0
movsx edx, byte [ebp + 8]
push edx
push str._c:EFIMicrosoft_boot_bcd
lea eax, [ebp - 0x190]
push eax
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x1e8], eax
mov ecx, dword [ebp - 0x1e8]
push ecx
lea ecx, [ebp - 0x70]
call fcn.100054a0
lea ecx, [ebp - 0x190]
call fcn.10005450
movzx edx, byte [ebp + 0xc]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x23c], esp
lea eax, [ebp - 0x70]
push eax
call fcn.10005670
mov ecx, dword [ebp - 0x1c4]
call fcn.1001af20
mov byte [ebp - 0x1d2], al
movzx ecx, byte [ebp - 0x1d2]
test ecx, ecx
jne 0x1001ab93
cmp dword [ebp - 0x1d8], 5
jl 0x1001aa1a
push str._ERR__UpdateBCD_Element_EFI__Set_BCD_Error
call fcn.100098e0
add esp, 4
mov byte [ebp - 0x1c5], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34c]
call fcn.100115c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
call fcn.10005900
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.10005450
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.10005450
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10005450
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005450
mov al, byte [ebp - 0x1c5]
jmp 0x1001ac92
cmp dword [ebp - 0x1d8], 4
jne 0x1001ab70
mov edx, dword [ebp - 0x1c4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c4]
imul edx, dword [ecx + 0x2c], 0xbb
mov eax, dword [eax + 0x7623]
mov ecx, dword [eax + edx + 0x17]
push ecx
mov edx, dword [eax + edx + 0x13]
push edx
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c4]
imul eax, dword [edx + 0x2c], 0xbb
mov ecx, dword [ecx + 0x7623]
mov edx, dword [ecx + eax + 0xf]
push edx
mov eax, dword [ecx + eax + 0xb]
push eax
mov ecx, dword [ebp - 0x1c4]
mov edx, dword [ecx + 0x2c]
push edx
mov ecx, dword [ebp - 0x1c4]
call fcn.1001c970
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
movsx edx, byte [ecx + 0x69dc]
cmp edx, 6
jne 0x1001ab70
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x240], esp
lea eax, [ebp - 0x70]
push eax
call fcn.10005670
call fcn.10009b10
add esp, 0x18
mov byte [ebp - 0x1c6], al
movzx ecx, byte [ebp - 0x1c6]
test ecx, ecx
je 0x1001aae7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x244], esp
lea edx, [ebp - 0x70]
push edx
call fcn.10005670
call fcn.10009ca0
add esp, 0x18
movsx eax, byte [ebp + 8]
push eax
push str._c:EFIMicrosoft_boot_bcd_win7
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x1ec], eax
mov edx, dword [ebp - 0x1ec]
push edx
lea ecx, [ebp - 0x88]
call fcn.100054a0
lea ecx, [ebp - 0x1a8]
call fcn.10005450
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x248], esp
lea eax, [ebp - 0x88]
push eax
call fcn.10005670
call fcn.10009b10
add esp, 0x18
mov byte [ebp - 0x1c7], al
movzx ecx, byte [ebp - 0x1c7]
test ecx, ecx
je 0x1001ab70
push 0
lea ecx, [ebp - 0x70]
call fcn.10005370
push eax
lea ecx, [ebp - 0x88]
call fcn.10005370
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x1d8]
add edx, 1
mov dword [ebp - 0x1d8], edx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34c]
call fcn.100115c0
jmp 0x1001a25b
movsx eax, byte [ebp + 8]
push eax
push str._store__c:_boot_bcd__set_default_bootstatuspolicy_IgnoreAllFailures
lea ecx, [ebp - 0x1c0]
push ecx
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x1f0], eax
mov edx, dword [ebp - 0x1f0]
push edx
lea ecx, [ebp - 0x28]
call fcn.100054a0
lea ecx, [ebp - 0x1c0]
call fcn.10005450
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x24c], esp
lea eax, [ebp - 0x28]
push eax
call fcn.10005670
mov dword [ebp - 0x278], eax
mov byte [ebp - 4], 0xf
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x254], esp
push str.bcdedit
call fcn.100055b0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x1c4]
call fcn.10016d00
movsx ecx, byte [ebp + 0xc]
push ecx
movsx edx, byte [ebp + 8]
push edx
push str._SUC__UpdateBCD_Element_EFI__End__chSys__c__chWin__c
call fcn.100098e0
add esp, 0xc
mov byte [ebp - 0x1c8], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34c]
call fcn.100115c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
call fcn.10005900
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.10005450
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.10005450
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10005450
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005450
mov al, byte [ebp - 0x1c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret 8