Function at 0x40bcce
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x95c]
push ebx
push ecx
sub esp, 0x9d8
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0x960], 2
mov dword [ebp - 0x96c], 0x4962e7
mov esi, dword [0x4df22c]
mov dword [ebp - 0x99c], eax
mov eax, dword [ecx + 4]
mov byte [ebp - 0x98d], bl
mov dword [ebp - 0x98c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x968], 0x4962eb
mov dword [ebp - 0x9a0], eax
mov eax, dword [ecx + 0xc]
mov ecx, 5
mov dword [ebp - 0x964], 0x4962ef
mov dword [ebp - 0x9b8], eax
mov eax, dword [0x4df230]
mov dword [ebp - 0x9a8], eax
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x948]
mov ecx, 0x24c
rep stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 4], 0x147
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [0x52416c]
mov dword [esp], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
call edi
xor edx, edx
sub esp, 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x150
mov eax, dword [0x52416c]
mov dword [esp], eax
call edi
xor ecx, ecx
mov dword [ebp - 0x998], eax
mov edi, eax
sar eax, 0x1f
sub esp, 0x10
mov dword [ebp - 0x994], eax
mov eax, dword [ebp - 0x98c]
mov eax, dword [ebp + eax*4 - 0x96c]
mov dword [esp + 0xc], 0xca6
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 4], 1
mov dword [esp], 1
call fcn.00422f82
cmp dword [ebp - 0x994], 0
jne 0x40be0d
test edi, edi
jne 0x40be0d
mov dword [ebp - 0x998], 0x200
xor eax, eax
mov dword [ebp - 0x994], eax
cmp dword [ebp - 0x98c], 2
je 0x40cd6b
test bl, 4
je 0x40be5a
mov dword [esp + 0xc], str.uefi_ntfs.img
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x1f6
mov eax, dword [0x5241b8]
mov dword [esp], eax
call fcn.0043c6de
mov dword [ebp - 0x9a4], eax
test eax, eax
jne 0x40be62
mov dword [esp], str.Could_not_access_embedded_uefi_ntfs.img
jmp 0x40cb6f
xor edi, edi
mov dword [ebp - 0x9a4], edi
mov eax, esi
mul dword [ebp - 0x9a8]
xorps xmm0, xmm0
mov ecx, 0x160
movups xmmword [0x4df208], xmm0
mov dword [ebp - 0x984], edx
mov edx, 0x4df248
mov dword [ebp - 0x988], eax
mov edi, edx
xor eax, eax
cmp dword [ebp - 0x98c], 1
rep stosd dword es:[edi], eax
jne 0x40bea2
mov esi, 0x100000
xor edi, edi
jmp 0x40bf03
mov dword [esp + 4], 0x3fc
mov eax, dword [0x5241b4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
dec eax
push esi
push esi
jne 0x40be99
mov esi, dword [ebp - 0x998]
add esi, dword [ebp - 0x988]
mov edi, dword [ebp - 0x994]
mov eax, dword [ebp - 0x998]
adc edi, dword [ebp - 0x984]
mov edx, dword [ebp - 0x994]
add esi, 0xffffffff
adc edi, 0xffffffff
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.00484ee0
sub esi, eax
sbb edi, edx
add esi, esi
adc edi, edi
cmp dword [0x4df238], 0xc
mov dword [0x4df290], esi
mov dword [0x4df294], edi
je 0x40bf28
cmp dword [0x524a2c], 0x3a98
jbe 0x40c089
test bl, 2
je 0x40c089
cmp dword [ebp - 0x98c], 1
je 0x40bf47
mov dword [esp + 8], 0x907
jmp 0x40c943
xor eax, eax
mov dword [0x4df20c], eax
mov dword [esp + 4], 0x49628a
mov dword [esp], 0x4df248
call sub.msvcrt.dll_wcscpy
mov esi, dword [0x4df290]
mov edi, dword [0x4df294]
xor edx, edx
mov dword [0x4df29c], edx
mov dword [0x4df298], 0x10400000
mov eax, esi
mov edx, edi
add eax, 0x10400000
adc edx, 0
mov dword [ebp - 0x980], eax
add esi, 0x103fffff
mov eax, dword [ebp - 0x988]
mov dword [ebp - 0x97c], edx
mov edx, dword [ebp - 0x984]
adc edi, 0
add esi, dword [ebp - 0x988]
adc edi, dword [ebp - 0x984]
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 0xc], edx
call fcn.004851a0
sub esi, eax
mov eax, dword [0x4df230]
sbb edi, edx
xor ecx, ecx
mov dword [0x4df2e8], esi
mov dword [0x4df2ec], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x998]
mov edx, dword [ebp - 0x994]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00484ee0
test edx, edx
jne 0x40c03c
test eax, eax
jne 0x40c03c
mov eax, dword [ebp - 0x998]
mov edx, dword [ebp - 0x994]
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.004851a0
sub esi, eax
sbb edi, edx
mov dword [0x4df2e8], esi
mov dword [0x4df2ec], edi
mov eax, dword [ebp - 0x980]
cmp dword [0x4df2e8], eax
mov eax, dword [0x4df2ec]
sbb eax, dword [ebp - 0x97c]
jae 0x40c072
mov dword [esp + 8], 0x910
mov dword [esp + 4], str.drive.c
mov dword [esp], str.SelectedDrive.Partition_pi__1_.Offset___SelectedDrive.Partition_pi_.Offset__SelectedDrive.Partition_pi_.Size
call dword [0x491228]
mov dword [ebp - 0x980], 1
mov eax, ebx
and eax, 0xfffffffd
mov byte [ebp - 0x98d], al
jmp 0x40c091
xor eax, eax
mov dword [ebp - 0x980], eax
test byte [ebp - 0x98d], 1
je 0x40c1fd
cmp dword [ebp - 0x98c], 1
je 0x40c0b4
mov dword [esp + 8], 0x918
jmp 0x40c943
mov dword [esp + 4], str.Microsoft_Reserved_Partition
mov eax, dword [ebp - 0x980]
neg eax
and eax, 0x58
add eax, 0x4df248
mov dword [esp], eax
call sub.msvcrt.dll_wcscpy
imul ecx, dword [ebp - 0x980], 0x58
xor eax, eax
mov edx, dword [ebp - 0x984]
mov dword [ecx + 0x4df29c], eax
mov eax, dword [ebp - 0x980]
mov dword [ecx + 0x4df298], 0x8000000
lea edi, [eax + 1]
mov eax, dword [ebp - 0x988]
add eax, 0x7ffffff
adc edx, 0
add eax, dword [ecx + 0x4df290]
adc edx, dword [ecx + 0x4df294]
mov ebx, eax
mov esi, edx
mov eax, dword [ebp - 0x988]
mov edx, dword [ebp - 0x984]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.004851a0
sub ebx, eax
sbb esi, edx
imul eax, edi, 0x58
add eax, 0x4df220
mov dword [ebp - 0x9b0], eax
mov dword [eax + 0x70], ebx
mov dword [eax + 0x74], esi
mov eax, dword [0x4df230]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x998]
mov edx, dword [ebp - 0x994]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00484ee0
test edx, edx
jne 0x40c1b5
test eax, eax
jne 0x40c1b5
mov eax, dword [ebp - 0x998]
mov edx, dword [ebp - 0x994]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.004851a0
mov ecx, ebx
mov ebx, esi
sub ecx, eax
mov eax, dword [ebp - 0x9b0]
sbb ebx, edx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ebx
imul eax, dword [ebp - 0x980], 0x58
imul ebx, edi, 0x58
mov edx, dword [eax + 0x4df294]
mov eax, dword [eax + 0x4df290]
mov ecx, dword [ebx + 0x4df294]
add eax, 0x8000000
adc edx, 0
cmp dword [ebx + 0x4df290], eax
sbb ecx, edx
jae 0x40c1f0
mov dword [esp + 8], 0x91f
jmp 0x40c05d
and byte [ebp - 0x98d], 0xfe
mov dword [ebp - 0x980], edi
mov eax, dword [ebp - 0x980]
cmp dword [0x5240dc], 0
mov edx, 0x49628a
mov dword [0x4df208], eax
lea edi, [eax + 1]
mov eax, str.Main_Data_Partition
cmovne eax, edx
imul ebx, dword [ebp - 0x980], 0x58
lea ecx, [ebx + 0x4df248]
mov dword [ebp - 0x9b4], ecx
mov dword [esp + 4], eax
mov dword [esp], ecx
call sub.msvcrt.dll_wcscpy
cmp byte [ebp - 0x98d], 0
je 0x40c448
test byte [ebp - 0x98d], 0x10
je 0x40c308
cmp dword [0x4df204], 0
jne 0x40c286
cmp dword [0x4df200], 0
jne 0x40c286
mov dword [esp + 8], 0x92e
mov dword [esp + 4], str.drive.c
mov dword [esp], str.persistence_size___0
jmp 0x40c06c
add ebx, 0x4df2a0
mov dword [0x4df210], edi
mov dword [esp], ebx
mov dword [esp + 4], str.Linux_Persistence
call sub.msvcrt.dll_wcscpy
mov eax, dword [ebp - 0x980]
mov esi, dword [ebp - 0x988]
mov edx, dword [ebp - 0x984]
add eax, 2
mov dword [ebp - 0x9b0], eax
imul eax, edi, 0x58
add esi, dword [0x4df200]
mov edi, dword [ebp - 0x984]
adc edi, dword [0x4df204]
add esi, 0xffffffff
adc edi, 0xffffffff
lea ebx, [eax + 0x4df220]
mov eax, dword [ebp - 0x988]
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.004851a0
sub esi, eax
sbb edi, edx
mov dword [ebx + 0x78], esi
mov dword [ebx + 0x7c], edi
mov edi, dword [ebp - 0x9b0]
test byte [ebp - 0x98d], 2
je 0x40c389
imul ebx, edi, 0x58
mov dword [0x4df20c], edi
mov dword [esp + 4], 0x49628a
lea eax, [ebx + 0x4df248]
mov dword [esp], eax
call sub.msvcrt.dll_wcscpy
mov esi, dword [ebp - 0x988]
lea eax, [edi + 1]
mov edi, dword [ebp - 0x984]
mov dword [ebp - 0x9a4], eax
mov edx, dword [ebp - 0x984]
mov eax, dword [ebp - 0x988]
add esi, 0x103fffff
adc edi, 0
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.00484ee0
sub esi, eax
sbb edi, edx
mov dword [ebx + 0x4df298], esi
mov dword [ebx + 0x4df29c], edi
mov edi, dword [ebp - 0x9a4]
jmp 0x40c448
test byte [ebp - 0x98d], 4
je 0x40c40d
imul ebx, edi, 0x58
mov dword [0x4df214], edi
mov dword [esp + 4], 0x4964e4
lea eax, [ebx + 0x4df248]
mov dword [esp], eax
call sub.msvcrt.dll_wcscpy
lea eax, [edi + 1]
mov edi, dword [ebp - 0x984]
mov esi, dword [ebp - 0x988]
add esi, dword [ebp - 0x9a4]
mov dword [ebp - 0x9b0], eax
mov edx, dword [ebp - 0x984]
mov eax, dword [ebp - 0x988]
adc edi, 0
add esi, 0xffffffff
adc edi, 0xffffffff
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.00484ee0
sub esi, eax
sbb edi, edx
mov dword [ebx + 0x4df298], esi
mov dword [ebx + 0x4df29c], edi
mov edi, dword [ebp - 0x9b0]
jmp 0x40c448
test byte [ebp - 0x98d], 8
je 0x40c448
imul ebx, edi, 0x58
mov dword [esp + 4], str.BIOS_Compatibility
inc edi
lea eax, [ebx + 0x4df248]
mov dword [esp], eax
call sub.msvcrt.dll_wcscpy
mov eax, dword [ebp - 0x988]
mov edx, dword [ebp - 0x984]
mov dword [ebx + 0x4df298], eax
mov dword [ebx + 0x4df29c], edx
cmp dword [ebp - 0x98c], 1
mov ecx, dword [0x4df220]
mov ebx, dword [0x4df224]
jne 0x40c46c
mov eax, 0x21
mul dword [0x4df230]
sub ecx, eax
sbb ebx, edx
lea eax, [edi - 1]
mov dword [ebp - 0x9a4], eax
mov edx, dword [ebp - 0x9a4]
cmp dword [ebp - 0x980], edx
jae 0x40c521
imul eax, dword [ebp - 0x9a4], 0x58
mov edx, dword [eax + 0x4df29c]
mov dword [ebp - 0x9b0], eax
mov eax, dword [eax + 0x4df298]
mov esi, edx
cmp eax, ecx
sbb esi, ebx
jb 0x40c4c4
mov dword [esp + 8], 0x949
mov dword [esp + 4], str.drive.c
mov dword [esp], str.SelectedDrive.Partition_i_.Size___last_offset
jmp 0x40c06c
sub ecx, eax
mov eax, dword [ebp - 0x988]
sbb ebx, edx
mov edx, dword [ebp - 0x984]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [ebp - 0x9c0], ecx
mov dword [ebp - 0x9bc], ebx
call fcn.004851a0
mov ecx, dword [ebp - 0x9c0]
mov ebx, dword [ebp - 0x9bc]
sub ecx, eax
mov eax, dword [ebp - 0x9b0]
sbb ebx, edx
dec dword [ebp - 0x9a4]
mov dword [eax + 0x4df290], ecx
mov dword [eax + 0x4df294], ebx
jmp 0x40c475
imul eax, dword [ebp - 0x980], 0x58
add eax, 0x4df220
mov edx, dword [eax + 0x74]
mov dword [ebp - 0x9a4], eax
mov eax, dword [eax + 0x70]
mov esi, edx
cmp eax, ecx
sbb esi, ebx
jb 0x40c55d
mov dword [esp + 8], 0x94f
mov dword [esp + 4], str.drive.c
mov dword [esp], str.last_offset___SelectedDrive.Partition_mi_.Offset
jmp 0x40c06c
sub ecx, eax
mov eax, dword [ebp - 0x988]
sbb ebx, edx
mov edx, dword [ebp - 0x984]
mov dword [esp], ecx
mov esi, ebx
mov dword [esp + 8], eax
mov ebx, ecx
mov dword [esp + 4], esi
mov dword [esp + 0xc], edx
call fcn.004851a0
sub ebx, eax
mov eax, dword [ebp - 0x9a4]
sbb esi, edx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], esi
mov eax, dword [0x4df230]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x998]
mov edx, dword [ebp - 0x994]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00484ee0
test edx, edx
jne 0x40c5f8
test eax, eax
jne 0x40c5f8
mov eax, dword [ebp - 0x998]
mov edx, dword [ebp - 0x994]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.004851a0
mov ecx, ebx
mov ebx, esi
sub ecx, eax
mov eax, dword [ebp - 0x9a4]
sbb ebx, edx
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], ebx
imul eax, dword [ebp - 0x980], 0x58
cmp dword [eax + 0x4df29c], 0
jne 0x40c62e
cmp dword [eax + 0x4df298], 0
jne 0x40c62e
mov eax, dword [ebp - 0x9b4]
mov dword [esp], str.Error:_Invalid__S_size
mov dword [esp + 4], eax
call fcn.0043d9e0
xor eax, eax
jmp 0x40cd70
mov eax, dword [ebp - 0x9a8]
xor edx, edx
xor ecx, ecx
mov esi, 0x4df220
mov dword [ebp - 0x9a8], edx
lea ebx, [ebp - 0x948]
shl eax, 7
mov dword [ebp - 0x9ac], ecx
mov dword [ebp - 0x9a4], eax
mov dword [ebp - 0x9b0], eax
xor eax, eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0043e475
mov edx, dword [esi + 0x74]
mov dword [ebp - 0x9b4], eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x994], edx
mov dword [ebp - 0x998], eax
lea eax, [esi + 0x28]
mov dword [ebp - 0x988], eax
mov dword [esp + 4], str.Partition
mov dword [esp], eax
call sub.msvcrt.dll_wcsstr
mov edx, dword [ebp - 0x9b4]
mov ecx, str._Partition
test eax, eax
mov eax, 0x495854
cmove eax, ecx
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x998]
mov ecx, dword [ebp - 0x994]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x988]
mov dword [esp], str._Creating__S_s__offset:__lld__size:__s_
mov dword [esp + 4], eax
call fcn.0043d9e0
mov eax, dword [esi + 0x78]
mov ecx, dword [ebp - 0x9ac]
cmp dword [ebp - 0x9a4], eax
mov edx, dword [esi + 0x70]
sbb ecx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x74]
cmovb eax, dword [ebp - 0x9a4]
mov dword [ebp - 0x998], edx
mov dword [ebp - 0x994], ecx
mov dword [ebp - 0x970], eax
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_calloc
test eax, eax
mov dword [ebp - 0x9b4], eax
je 0x40c7db
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x998]
mov edx, dword [ebp - 0x994]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x99c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
mov edx, dword [ebp - 0x9b4]
sub esp, 0x14
test eax, eax
jne 0x40c789
mov dword [esp], edx
call sub.msvcrt.dll_free
jmp 0x40c7db
lea eax, [ebp - 0x970]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x970]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x99c]
mov dword [ebp - 0x9b4], edx
mov dword [esp], eax
call fcn.0043ebc0
mov edx, dword [ebp - 0x9b4]
mov dword [ebp - 0x998], eax
mov dword [esp], edx
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x998]
test eax, eax
jne 0x40c7fa
call fcn.0043df77
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x988]
mov dword [esp], str.Could_not_zero__S:__s
mov dword [esp + 4], eax
call fcn.0043d9e0
mov eax, dword [ebp - 0x98c]
mov edx, dword [esi + 0x74]
mov byte [ebx + 0x4c], 1
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x70]
mov dword [ebx + 0x3c], edx
mov edx, dword [esi + 0x7c]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x78]
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x9a8]
inc eax
cmp dword [ebp - 0x98c], 0
mov dword [ebp - 0x998], eax
mov dword [ebx + 0x48], eax
jne 0x40c932
mov ecx, dword [ebp - 0x9a8]
cmp dword [ebp - 0x980], ecx
jne 0x40c8ab
cmp dword [0x5240b0], 0
setne byte [ebx + 0x51]
cmp dword [ebp - 0x9a0], 5
jg 0x40c87f
cmp dword [ebp - 0x9a0], 1
jg 0x40c899
cmp dword [ebp - 0x9a0], 0
je 0x40c893
cmp dword [ebp - 0x9a0], 1
jne 0x40c89f
mov byte [ebx + 0x50], 0xc
jmp 0x40c8ab
mov eax, dword [ebp - 0x9a0]
sub eax, 6
cmp eax, 2
ja 0x40c89f
mov byte [ebx + 0x50], 0x83
jmp 0x40c8ab
mov byte [ebx + 0x50], 0xe
jmp 0x40c8ab
mov byte [ebx + 0x50], 7
jmp 0x40c8ab
mov dword [esp], str.Unsupported_file_system
jmp 0x40cb6f
mov dword [esp + 4], 0x49628a
mov eax, dword [ebp - 0x988]
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x40c8ce
mov byte [ebx + 0x50], 0xef
jmp 0x40caa0
mov dword [esp + 4], 0x4964e4
mov eax, dword [ebp - 0x988]
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x40c8c5
mov dword [esp + 4], str.Linux_Persistence
mov eax, dword [ebp - 0x988]
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x40c90b
mov byte [ebx + 0x50], 0x83
jmp 0x40caa0
mov dword [esp + 4], str.BIOS_Compatibility
mov eax, dword [ebp - 0x988]
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x40caa0
mov byte [ebx + 0x50], 0xea
jmp 0x40caa0
cmp dword [ebp - 0x98c], 1
je 0x40c957
mov dword [esp + 8], 0x992
mov dword [esp + 4], str.drive.c
mov dword [esp], str.partition_style__PARTITION_STYLE_GPT
jmp 0x40c06c
mov dword [esp + 4], 0x4964e4
mov eax, dword [ebp - 0x988]
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x40c9a3
xor eax, eax
mov dword [ebx + 0x50], 0xebd0a0a2
mov word [ebx + 0x54], 0xb9e5
mov word [ebx + 0x56], 0x4433
mov dword [ebx + 0x58], 0xb668c087
mov dword [ebx + 0x5c], 0xc79926b7
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], 0x90000000
jmp 0x40ca7e
mov dword [esp + 4], 0x49628a
mov eax, dword [ebp - 0x988]
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x40c9e3
mov dword [ebx + 0x50], 0xc12a7328
mov word [ebx + 0x54], 0xf81f
mov word [ebx + 0x56], 0x11d2
mov dword [ebx + 0x58], 0xa0004bba
mov dword [ebx + 0x5c], 0x3bc93ec9
jmp 0x40ca7e
mov dword [esp + 4], str.Linux_Persistence
mov eax, dword [ebp - 0x988]
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x40ca20
mov dword [ebx + 0x50], 0xfc63daf
mov word [ebx + 0x54], 0x8483
mov word [ebx + 0x56], 0x4772
mov dword [ebx + 0x58], 0x693d798e
mov dword [ebx + 0x5c], 0xe47d47d8
jmp 0x40ca7e
mov dword [esp + 4], str.Microsoft_Reserved_Partition
mov eax, dword [ebp - 0x988]
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x40ca5d
mov dword [ebx + 0x50], 0xe3c9e316
mov word [ebx + 0x54], 0xb5c
mov word [ebx + 0x56], 0x4db8
mov dword [ebx + 0x58], 0x2df97d81
mov dword [ebx + 0x5c], 0xae1502f0
jmp 0x40ca7e
mov dword [ebx + 0x50], 0xebd0a0a2
mov word [ebx + 0x54], 0xb9e5
mov word [ebx + 0x56], 0x4433
mov dword [ebx + 0x58], 0xb668c087
mov dword [ebx + 0x5c], 0xc79926b7
lea eax, [ebx + 0x60]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push eax
mov eax, dword [ebp - 0x988]
mov dword [esp + 4], eax
lea eax, [ebx + 0x78]
mov dword [esp], eax
call sub.msvcrt.dll_wcscpy
add esi, 0x58
add ebx, 0x90
cmp dword [ebp - 0x998], edi
je 0x40cac2
mov eax, dword [ebp - 0x998]
mov dword [ebp - 0x9a8], eax
jmp 0x40c65e
test byte [ebp - 0x98d], 4
je 0x40cbbc
imul eax, dword [0x4df214], 0x58
mov dword [esp], str.Writing_UEFI:NTFS_data...
add eax, 0x4df248
mov dword [esp + 4], eax
call fcn.0043d9e0
imul eax, dword [0x4df214], 0x58
xor ecx, ecx
mov edx, dword [eax + 0x4df294]
mov eax, dword [eax + 0x4df290]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x99c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
sub esp, 0x14
test eax, eax
jne 0x40cb2f
mov dword [esp], str.__Could_not_set_position
jmp 0x40cb6f
xor esi, esi
lea eax, [ebp - 0x970]
mov dword [esp + 0xc], str.uefi_ntfs.img
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x1f6
mov eax, dword [0x5241b8]
mov dword [esp], eax
call fcn.0043c5a4
test eax, eax
jne 0x40cb79
mov dword [esp], str.__Could_not_access_source_image
call fcn.0043d9e0
jmp 0x40c627
xor ebx, ebx
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 0x970]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x99c]
mov dword [esp], eax
call fcn.0043ebc0
test eax, eax
jne 0x40cbbc
call fcn.0043df77
mov dword [esp], str.__Write_error:__s
mov dword [esp + 4], eax
jmp 0x40c622
cmp dword [ebp - 0x98c], 0
jne 0x40cc04
xor ecx, ecx
cmp dword [ebp - 0x9b8], 0
mov eax, 0x49464555
mov dword [ebp - 0x960], ecx
jne 0x40cbe1
call dword [sym.imp.KERNEL32.DLL_GetTickCount64]
xor edx, edx
mov dword [ebp - 0x95c], eax
mov dword [ebp - 0x948], edx
mov dword [ebp - 0x944], 4
mov dword [ebp - 0x940], eax
jmp 0x40cc86
lea eax, [ebp - 0x95c]
xor esi, esi
mov dword [ebp - 0x960], 1
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push ebx
mov eax, dword [0x4df230]
mov ecx, dword [0x4df220]
mov dword [ebp - 0x944], edi
imul edx, eax, 0x22
mov dword [ebp - 0x92c], esi
mov ebx, dword [0x4df224]
imul eax, eax, 0x43
movups xmm1, xmmword [ebp - 0x95c]
mov dword [ebp - 0x94c], 0x10
mov dword [ebp - 0x948], 1
mov dword [ebp - 0x930], edx
sub ecx, eax
movups xmmword [ebp - 0x940], xmm1
sbb ebx, 0
mov dword [ebp - 0x928], ecx
mov dword [ebp - 0x924], ebx
mov dword [ebp - 0x920], 0x10
xor ecx, ecx
lea eax, [ebp - 0x960]
mov dword [esp + 0xc], 0x18
mov ebx, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7c058
mov eax, dword [ebp - 0x99c]
mov dword [esp], eax
call ebx
sub esp, 0x20
test eax, eax
jne 0x40ccdf
call fcn.0043df77
mov dword [esp], str.Could_not_reset_disk:__s
mov dword [esp + 4], eax
jmp 0x40c622
mov eax, dword [ebp - 0x99c]
mov dword [esp], eax
call fcn.0040b472
cmp dword [ebp - 0x98c], 1
mov eax, 0x930
jne 0x40cd04
imul eax, edi, 0x90
add eax, 0x30
xor edx, edx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x948]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7c054
mov eax, dword [ebp - 0x99c]
mov dword [esp], eax
call ebx
sub esp, 0x20
test eax, eax
jne 0x40cd53
call fcn.0043df77
mov dword [esp], str.Could_not_set_drive_layout:__s
mov dword [esp + 4], eax
jmp 0x40c622
mov eax, dword [ebp - 0x99c]
mov dword [esp], eax
call fcn.0040b472
test eax, eax
setne al
movzx eax, al
jmp 0x40cd70
mov eax, 1
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret