Function at 0x40b38f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c8
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 8], eax
mov al, byte [ebp + 0x10]
mov edx, str.Main_Data_Partition
mov byte [ebp - 0x94d], al
mov eax, 0x52aa1c
push ebx
mov dword [ebp - 0x96c], eax
mov eax, dword [0x55a754]
test eax, eax
mov dword [ebp - 0x960], ecx
mov ecx, 0x52bc40
push esi
push edi
mov edi, dword [0x5a2894]
cmove ecx, edx
mov dword [ebp - 0x964], edi
mov dword [ebp - 0x1c], 0x52bc34
mov dword [ebp - 0x18], 0x52bc38
mov dword [ebp - 0x14], 0x52bc3c
mov dword [ebp - 0x990], ecx
je 0x40a68c
mov eax, 0x40000000
mov dword [ebp - 0x968], eax
xor eax, eax
jmp 0x40a69c
mov eax, dword [0x5a3180]
mov dword [ebp - 0x968], eax
mov eax, dword [0x5a3184]
mov ecx, dword [0x5a3190]
xorps xmm0, xmm0
mov dword [ebp - 0x95c], eax
mov eax, ecx
mul dword [0x5a318c]
movups xmmword [ebp - 0x9bc], xmm0
push 0x930
mov dword [ebp - 0x988], eax
lea eax, [ebp - 0x94c]
shl ecx, 7
push 0
push eax
mov dword [ebp - 0x984], edx
mov dword [ebp - 0x99c], ecx
mov dword [ebp - 0x9a0], 0
mov dword [ebp - 0x9c4], 2
mov dword [ebp - 0x9c0], 0
call fcn.004ab0f0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
xor ebx, ebx
xorps xmm0, xmm0
movlpd qword [ebp - 0x97c], xmm0
mov dword [ebp - 0x954], ebx
push ebx
push ebx
push ebx
push 0x147
push dword [0x5a29d8]
call esi
push eax
push 0x150
push dword [0x5a29d8]
call esi
push dword [ebp + edi*4 - 0x1c]
cdq
push 0xca6
push ebx
mov esi, eax
mov dword [ebp - 0x980], edx
push 1
push 1
mov dword [ebp - 0x98c], esi
call fcn.0041ed70
mov eax, esi
add esp, 0x14
or eax, dword [ebp - 0x980]
jne 0x40a779
mov dword [ebp - 0x98c], 0x200
mov dword [ebp - 0x980], ebx
cmp edi, 2
je 0x40bb24
test byte [ebp - 0x94d], 4
je 0x40a842
mov esi, dword [0x5a29d0]
push 0xa
push 0x1f6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40a7d4
call fcn.0044b6b0
push eax
push str.uefi_ntfs.img
push str.Could_not_locate_resource__s:__s
call fcn.0044b0b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x970], eax
test eax, eax
jne 0x40a811
call fcn.0044b6b0
push eax
push str.uefi_ntfs.img
push str.Could_not_load_resource__s:__s
call fcn.0044b0b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x970]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
test eax, eax
cmove esi, ecx
mov dword [ebp - 0x9a0], esi
test esi, esi
je 0x40b148
mov edi, dword [ebp - 0x964]
push 0x80
xorps xmm0, xmm0
push 0
push 0x5a31a8
movups xmmword [0x5a3320], xmm0
movq qword [0x5a3330], xmm0
call fcn.004ab0f0
add esp, 0xc
push 0x80
push 0
push 0x5a3228
call fcn.004ab0f0
add esp, 0xc
cmp edi, 1
je 0x40a8df
push 0x3fd
push dword [0x5a2ae4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x40a8df
mov eax, dword [ebp - 0x98c]
mov edi, eax
mov ecx, dword [ebp - 0x980]
mov esi, ecx
add edi, dword [ebp - 0x988]
push ecx
adc esi, dword [ebp - 0x984]
sub edi, 1
push eax
sbb esi, ebx
push esi
push edi
call fcn.0050e150
sub edi, eax
sbb esi, edx
shld esi, edi, 1
add edi, edi
mov dword [ebp - 0x910], esi
mov dword [ebp - 0x914], edi
mov edi, dword [ebp - 0x964]
jmp 0x40a8ef
mov dword [ebp - 0x914], 0x100000
mov dword [ebp - 0x910], ebx
cmp dword [0x5a3198], 0xc
mov esi, str._s_0.0f_s__s
movsd xmm2, qword [0x549a18]
je 0x40a915
cmp dword [0x58b26c], 0x3a98
jbe 0x40ab83
test byte [ebp - 0x94d], 2
je 0x40ab83
cmp edi, 1
je 0x40a946
push 0x913
push str.D:_a_rufus_rufus_srcdrive.c
push str.partition_style__PARTITION_STYLE_GPT
call fcn.004dfbbc
movsd xmm2, qword [0x549a18]
add esp, 0xc
movups xmm0, xmmword [0x52c018]
mov eax, 0x52bc40
mov dword [ebp - 0x90c], 0x10400000
movsd xmm1, qword [0x549a90]
movups xmmword [ebp - 0x8fc], xmm0
mov dword [ebp - 0x96c], eax
xor eax, eax
movsd xmm0, qword [0x549ab0]
mov dword [ebp - 0x908], ebx
movsd qword [ebp - 0x1c], xmm0
comisd xmm1, xmm0
ja 0x40a99b
mulsd xmm0, xmm2
inc eax
movsd qword [ebp - 0x1c], xmm0
cmp eax, 5
jl 0x40a986
test eax, eax
jne 0x40a9ca
push dword [0x552d30]
cvttsd2si eax, xmm0
push 0x52ad5a
push eax
push 0x52ad5a
push str._s_d_s__s
push 0x20
push 0x59d920
call fcn.004050d0
add esp, 0x1c
jmp 0x40aa46
push dword [eax*4 + 0x552d30]
fld qword [ebp - 0x1c]
push 0x52ad5a
sub esp, 8
movsd qword [esp], xmm0
mulsd xmm0, qword [0x549a70]
push 0x52ad5a
sub esp, 8
movsd qword [ebp - 0x9ac], xmm0
fstp qword [esp]
call fcn.00511880
movsd xmm1, qword [ebp - 0x9ac]
add esp, 8
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
mov ecx, str._s_0.1f_s__s
mulsd xmm0, qword [0x549a70]
mov eax, esi
subsd xmm1, xmm0
movsd xmm0, qword [0x549a40]
comisd xmm0, xmm1
cmovbe eax, ecx
push eax
push 0x20
push 0x59d920
call fcn.004050d0
add esp, 0x20
push 0x59d920
push dword [ebp - 0x910]
mov byte [0x59d93f], bl
push dword [ebp - 0x914]
push 0x52bc40
push str._Creating__S__offset:__lld__size:__s_
call fcn.0044b0b0
add esp, 0x14
lea eax, [ebp - 0x8ec]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x24
lea eax, [ebp - 0x8d4]
push 0x52bc40
push eax
call fcn.004e189b
mov eax, dword [ebp - 0x99c]
add esp, 0xc
mov esi, dword [ebp - 0x914]
mov ebx, dword [ebp - 0x910]
mov dword [ebp - 0x998], eax
push 1
push eax
call fcn.004b6706
mov edi, eax
add esp, 8
test edi, edi
je 0x40ab06
push 0
push 0
push ebx
mov ebx, dword [ebp - 0x960]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40aadd
push edi
call fcn.004d1211
add esp, 4
jmp 0x40ab06
push ecx
lea eax, [ebp - 0x998]
mov edx, edi
push eax
push dword [ebp - 0x998]
mov ecx, ebx
call fcn.0044c2e0
add esp, 0xc
mov esi, eax
push edi
call fcn.004d1211
add esp, 4
test esi, esi
jne 0x40ab1e
call fcn.0044b6b0
push eax
push 0x52bc40
push str.Could_not_zero__S:__s
call fcn.0044b0b0
add esp, 0xc
mov edx, dword [ebp - 0x914]
mov ebx, 1
mov ecx, dword [ebp - 0x90c]
mov esi, dword [ebp - 0x910]
mov eax, dword [ebp - 0x908]
mov dword [0x5a3228], ecx
add ecx, edx
mov dword [0x5a322c], eax
adc eax, esi
mov dword [0x5a31ac], esi
mov dword [ebp - 0x880], eax
mov al, byte [ebp - 0x94d]
and al, 0xfd
mov dword [0x5a332c], esi
mov dword [0x5a31a8], edx
mov esi, str._s_0.0f_s__s
mov dword [0x5a3328], edx
mov dword [ebp - 0x884], ecx
mov byte [ebp - 0x94d], al
jmp 0x40ab89
mov al, byte [ebp - 0x94d]
test al, 1
je 0x40ae35
cmp dword [ebp - 0x964], 1
je 0x40abb1
push 0x92a
push str.D:_a_rufus_rufus_srcdrive.c
push str.partition_style__PARTITION_STYLE_GPT
call fcn.004dfbbc
add esp, 0xc
movups xmm0, xmmword [0x52c5d8]
lea edi, [ebx + ebx*8]
mov eax, str.Microsoft_Reserved_Partition
movsd xmm1, qword [0x549a90]
movsd xmm2, qword [0x549a18]
shl edi, 4
mov dword [ebp - 0x96c], eax
xor eax, eax
movups xmmword [ebp + edi - 0x8fc], xmm0
mov dword [ebp + edi - 0x90c], 0x8000000
movsd xmm0, qword [0x549aa8]
mov dword [ebp + edi - 0x908], 0
movsd qword [ebp - 0x1c], xmm0
comisd xmm1, xmm0
ja 0x40ac1b
mulsd xmm0, xmm2
inc eax
movsd qword [ebp - 0x1c], xmm0
cmp eax, 5
jl 0x40ac06
test eax, eax
jne 0x40ac4a
push dword [0x552d30]
cvttsd2si eax, xmm0
push 0x52ad5a
push eax
push 0x52ad5a
push str._s_d_s__s
push 0x20
push 0x59d920
call fcn.004050d0
add esp, 0x1c
jmp 0x40acc6
push dword [eax*4 + 0x552d30]
fld qword [ebp - 0x1c]
push 0x52ad5a
sub esp, 8
movsd qword [esp], xmm0
mulsd xmm0, qword [0x549a70]
push 0x52ad5a
sub esp, 8
movsd qword [ebp - 0x9ac], xmm0
fstp qword [esp]
call fcn.00511880
movsd xmm1, qword [ebp - 0x9ac]
add esp, 8
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
mov ecx, str._s_0.1f_s__s
mulsd xmm0, qword [0x549a70]
mov eax, esi
subsd xmm1, xmm0
movsd xmm0, qword [0x549a40]
comisd xmm0, xmm1
cmovbe eax, ecx
push eax
push 0x20
push 0x59d920
call fcn.004050d0
add esp, 0x20
push 0x59d920
push dword [ebp + edi - 0x910]
mov byte [0x59d93f], 0
push dword [ebp + edi - 0x914]
push str.Microsoft_Reserved_Partition
push str._Creating__S__offset:__lld__size:__s_
call fcn.0044b0b0
add esp, 0x14
lea eax, [ebp - 0x8ec]
add eax, edi
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x24
lea eax, [ebp - 0x8d4]
add eax, edi
push str.Microsoft_Reserved_Partition
push eax
call fcn.004e189b
mov eax, dword [ebp + edi - 0x914]
add esp, 0xc
mov dword [ebp - 0x9a8], eax
mov eax, dword [ebp + edi - 0x910]
mov dword [ebp - 0x958], eax
mov eax, dword [ebp - 0x99c]
push 1
push eax
mov dword [ebp - 0x970], eax
call fcn.004b6706
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
test esi, esi
je 0x40adad
push 0
push 0
push dword [ebp - 0x958]
push dword [ebp - 0x9a8]
push dword [ebp - 0x960]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40ad7e
push esi
call fcn.004d1211
add esp, 4
jmp 0x40adad
push ecx
mov ecx, dword [ebp - 0x960]
lea eax, [ebp - 0x970]
push eax
push dword [ebp - 0x970]
mov edx, esi
call fcn.0044c2e0
add esp, 0xc
mov esi, eax
push dword [ebp - 0x14]
call fcn.004d1211
add esp, 4
test esi, esi
jne 0x40adc5
call fcn.0044b6b0
push eax
push str.Microsoft_Reserved_Partition
push str.Could_not_zero__S:__s
call fcn.0044b0b0
add esp, 0xc
mov eax, dword [ebp + edi - 0x914]
mov ecx, dword [ebp + edi - 0x910]
mov dword [ebx*8 + 0x5a31a8], eax
mov eax, dword [ebp + edi - 0x90c]
mov dword [ebx*8 + 0x5a31ac], ecx
mov ecx, dword [ebp + edi - 0x908]
mov dword [ebx*8 + 0x5a3228], eax
mov dword [ebx*8 + 0x5a322c], ecx
inc ebx
lea edx, [ebx + ebx*8]
shl edx, 4
mov ecx, dword [ebp + edx - 0x99c]
add ecx, dword [ebp + edx - 0x9a4]
mov eax, dword [ebp + edx - 0x998]
adc eax, dword [ebp + edx - 0x9a0]
and byte [ebp - 0x94d], 0xfe
mov dword [ebp + edx - 0x914], ecx
mov dword [ebp + edx - 0x910], eax
cmp dword [0x55a754], 0
push 0
je 0x40aeb7
push 0x100000
push dword [0x5a3044]
push dword [0x5a3040]
call fcn.0050e0a0
add eax, 0x60
push 0
push 0x40
adc edx, 0
push edx
push eax
call fcn.0050e0a0
shld edx, eax, 0x1a
shl eax, 0x1a
test edx, edx
jl 0x40ae87
jg 0x40ae7b
cmp eax, 0x10400000
jb 0x40ae87
mov esi, eax
mov eax, edx
mov dword [ebp - 0x954], eax
jmp 0x40ae8e
xor eax, eax
mov esi, 0x10400000
lea ecx, [ebx + ebx*8]
mov edx, esi
shl ecx, 4
push 0
push dword [0x5a3190]
sub edx, dword [ebp + ecx - 0x914]
sbb eax, dword [ebp + ecx - 0x910]
push eax
push edx
call fcn.0050e0a0
mov edi, eax
jmp 0x40af01
mov ecx, dword [ebp - 0x968]
lea eax, [ebx + ebx*8]
push dword [0x5a3190]
mov edx, dword [ebp - 0x95c]
shl eax, 4
sub ecx, dword [ebp + eax - 0x914]
sbb edx, dword [ebp + eax - 0x910]
push edx
push ecx
call fcn.0050e0a0
mov edi, eax
mov ecx, 0x21
xor eax, eax
mov esi, 0x10400000
cmp dword [ebp - 0x964], 1
cmove eax, ecx
sub edi, eax
sbb edx, 0
mov cl, byte [ebp - 0x94d]
mov dword [ebp - 0x958], edx
mov dword [ebp - 0x968], edi
test cl, cl
je 0x40b09f
test cl, 2
je 0x40af5d
mov ecx, dword [ebp - 0x988]
mov eax, str.EFI_System
mov edx, dword [ebp - 0x984]
add esi, ecx
mov dword [ebp - 0x96c], eax
mov eax, dword [ebp - 0x954]
adc eax, edx
sub esi, 1
push edx
push ecx
sbb eax, 0
push eax
push esi
call fcn.0050e0a0
mov edi, eax
mov dword [ebp - 0x954], edx
jmp 0x40b05d
test cl, 4
je 0x40afab
mov ecx, dword [ebp - 0x9a0]
mov edx, 0x100000
mov esi, dword [ebp - 0x984]
cmp ecx, edx
mov eax, 0x52b8d4
cmovb ecx, edx
mov dword [ebp - 0x96c], eax
mov edx, dword [ebp - 0x988]
xor eax, eax
add ecx, edx
push esi
adc eax, esi
sub ecx, 1
push edx
sbb eax, 0
push eax
push ecx
call fcn.0050e0a0
mov edi, eax
mov dword [ebp - 0x954], edx
jmp 0x40b05d
test cl, 0x10
je 0x40b013
mov ecx, dword [0x55a310]
mov eax, ecx
mov edx, dword [0x55a314]
or eax, edx
jne 0x40afe5
push 0x952
push str.D:_a_rufus_rufus_srcdrive.c
push str.persistence_size___0
call fcn.004dfbbc
mov edx, dword [0x55a314]
add esp, 0xc
mov ecx, dword [0x55a310]
push dword [ebp - 0x984]
mov eax, str.Linux_Persistence
push dword [ebp - 0x988]
mov dword [ebp - 0x96c], eax
push edx
push ecx
call fcn.004a9380
mov edi, eax
mov dword [ebp - 0x95c], eax
mov dword [ebp - 0x954], edx
jmp 0x40b063
test cl, 8
je 0x40b034
mov eax, str.BIOS_Compatibility
mov dword [ebp - 0x954], 0
mov dword [ebp - 0x96c], eax
mov edi, 1
jmp 0x40b05d
push 0x959
push str.D:_a_rufus_rufus_srcdrive.c
push 0x52be08
call fcn.004dfbbc
mov eax, dword [ebp - 0x978]
add esp, 0xc
mov edi, dword [ebp - 0x97c]
mov dword [ebp - 0x954], eax
mov dword [ebp - 0x95c], edi
mov esi, dword [0x5a318c]
push 0
push esi
push dword [ebp - 0x958]
push dword [ebp - 0x968]
call fcn.0050e0a0
sub eax, edi
push 0
sbb edx, dword [ebp - 0x954]
push esi
push edx
push eax
call fcn.004a9490
mov edi, eax
mov dword [ebp - 0x958], edx
mov dword [ebp - 0x968], edi
jmp 0x40b0b7
mov eax, dword [ebp - 0x978]
mov dword [ebp - 0x954], eax
mov eax, dword [ebp - 0x97c]
mov dword [ebp - 0x95c], eax
mov esi, dword [0x5a3190]
push 0
push esi
push dword [ebp - 0x980]
push dword [ebp - 0x98c]
call fcn.0050e150
or eax, edx
jne 0x40b125
push dword [ebp - 0x958]
push edi
push eax
push esi
call fcn.004a9490
push dword [ebp - 0x980]
mov esi, edx
mov edi, eax
push dword [ebp - 0x98c]
push esi
push edi
call fcn.0050e150
push 0
push dword [0x5a3190]
sub edi, eax
sbb esi, edx
push esi
push edi
call fcn.0050e0a0
mov esi, dword [0x5a3190]
mov edi, eax
mov eax, edx
mov dword [ebp - 0x968], edi
mov dword [ebp - 0x958], eax
jmp 0x40b12b
mov eax, dword [ebp - 0x958]
test eax, eax
jg 0x40b15b
jl 0x40b135
test edi, edi
jne 0x40b15b
push dword [ebp - 0x990]
push str.Error:_Invalid__S_size
call fcn.0044b0b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
push eax
push edi
push 0
push esi
call fcn.004a9490
mov ecx, eax
call fcn.004a9840
movsd xmm1, qword [0x549a90]
xor eax, eax
movsd xmm2, qword [0x549a18]
movsd qword [ebp - 0x97c], xmm0
comisd xmm1, xmm0
ja 0x40b19e
mulsd xmm0, xmm2
inc eax
movsd qword [ebp - 0x97c], xmm0
cmp eax, 5
jl 0x40b186
test eax, eax
jne 0x40b1d0
push dword [0x552d30]
cvttsd2si eax, xmm0
push 0x52ad5a
push eax
push 0x52ad5a
push str._s_d_s__s
push 0x20
push 0x59d920
call fcn.004050d0
add esp, 0x1c
jmp 0x40b252
push dword [eax*4 + 0x552d30]
fld qword [ebp - 0x97c]
push 0x52ad5a
sub esp, 8
movsd qword [esp], xmm0
mulsd xmm0, qword [0x549a70]
push 0x52ad5a
sub esp, 8
movsd qword [ebp - 0x1c], xmm0
fstp qword [esp]
call fcn.00511880
movsd xmm1, qword [ebp - 0x1c]
add esp, 8
fstp qword [ebp - 0x97c]
movsd xmm0, qword [ebp - 0x97c]
mov ecx, str._s_0.1f_s__s
mulsd xmm0, qword [0x549a70]
mov eax, str._s_0.0f_s__s
subsd xmm1, xmm0
movsd xmm0, qword [0x549a40]
comisd xmm0, xmm1
cmovbe eax, ecx
push eax
push 0x20
push 0x59d920
call fcn.004050d0
add esp, 0x20
lea edi, [ebx + ebx*8]
mov byte [0x59d93f], 0
shl edi, 4
push 0x59d920
push dword [ebp + edi - 0x910]
push dword [ebp + edi - 0x914]
push dword [ebp - 0x990]
push str._Creating__S__offset:__lld__size:__s_
call fcn.0044b0b0
mov eax, dword [ebp + edi - 0x914]
add esp, 0x14
mov dword [ebp - 0x9a8], eax
mov eax, dword [ebp + edi - 0x910]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x99c]
push 1
push eax
mov dword [ebp - 0x970], eax
call fcn.004b6706
mov esi, eax
add esp, 8
mov dword [ebp - 0x998], esi
test esi, esi
je 0x40b319
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x9a8]
push dword [ebp - 0x960]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40b2e7
push esi
call fcn.004d1211
add esp, 4
jmp 0x40b319
push ecx
mov ecx, dword [ebp - 0x960]
lea eax, [ebp - 0x970]
push eax
push dword [ebp - 0x970]
mov edx, esi
call fcn.0044c2e0
add esp, 0xc
mov esi, eax
push dword [ebp - 0x998]
call fcn.004d1211
add esp, 4
test esi, esi
jne 0x40b332
call fcn.0044b6b0
push eax
push dword [ebp - 0x990]
push str.Could_not_zero__S:__s
call fcn.0044b0b0
add esp, 0xc
push dword [ebp - 0x958]
push dword [ebp - 0x968]
push 0
push dword [0x5a3190]
call fcn.004a9490
mov esi, dword [ebp - 0x964]
mov dword [ebp + edi - 0x90c], eax
mov dword [ebp + edi - 0x908], edx
test esi, esi
jne 0x40b3d3
cmp dword [0x5a2ae0], esi
setne al
mov byte [ebp + edi - 0x8fb], al
mov eax, dword [ebp + 8]
cmp eax, 8
ja case.default.0x40b37b
jmp dword [eax*4 + 0x40bb3c]
mov byte [ebp + edi - 0x8fc], 0xe
jmp 0x40b430
mov byte [ebp + edi - 0x8fc], 7
jmp 0x40b430
mov byte [ebp + edi - 0x8fc], 0x83
jmp 0x40b430
mov byte [ebp + edi - 0x8fc], 0xc
jmp 0x40b430
push str.Unsupported_file_system
call fcn.0044b0b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
cmp dword [0x55a754], 0
je 0x40b3e5
movups xmm0, xmmword [0x52c018]
jmp 0x40b400
mov eax, dword [ebp + 8]
add eax, 0xfffffffa
cmp eax, 2
ja 0x40b3f9
movups xmm0, xmmword [0x52c0a8]
jmp 0x40b400
movups xmm0, xmmword [0x52c5e8]
lea eax, [ebp - 0x8ec]
add eax, edi
push eax
movups xmmword [ebp + edi - 0x8fc], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x24
push dword [ebp - 0x990]
lea eax, [ebp - 0x8d4]
add eax, edi
push eax
call fcn.004e189b
add esp, 0xc
mov eax, dword [ebp + edi - 0x914]
mov ecx, dword [ebp + edi - 0x910]
mov dl, byte [ebp - 0x94d]
mov dword [ebx*8 + 0x5a31a8], eax
mov eax, dword [ebp + edi - 0x90c]
mov dword [ebx*8 + 0x5a31ac], ecx
mov ecx, dword [ebp + edi - 0x908]
mov dword [ebx*8 + 0x5a3228], eax
mov eax, dword [ebx*8 + 0x5a31a8]
mov dword [ebx*8 + 0x5a322c], ecx
mov ecx, dword [ebx*8 + 0x5a31ac]
inc ebx
mov dword [0x5a3320], eax
mov dword [0x5a3324], ecx
test dl, dl
je 0x40b8f7
lea esi, [ebx + ebx*8]
shl esi, 4
mov ecx, dword [ebp + esi - 0x99c]
add ecx, dword [ebp + esi - 0x9a4]
mov eax, dword [ebp + esi - 0x998]
adc eax, dword [ebp + esi - 0x9a0]
mov dword [ebp + esi - 0x910], eax
mov al, dl
and al, 4
mov dword [ebp + esi - 0x914], ecx
mov byte [ebp - 0x94f], al
je 0x40b4d6
mov eax, dword [ebp - 0x9a0]
xor edx, edx
jmp 0x40b4f3
push dword [ebp - 0x984]
push dword [ebp - 0x988]
push dword [ebp - 0x954]
push dword [ebp - 0x95c]
call fcn.004a9490
mov ecx, eax
mov dword [ebp + esi - 0x90c], eax
mov dword [ebp + esi - 0x908], edx
call fcn.004a9840
movsd xmm1, qword [0x549a90]
xor eax, eax
movsd xmm2, qword [0x549a18]
movsd qword [ebp - 0x97c], xmm0
comisd xmm1, xmm0
ja 0x40b53a
mulsd xmm0, xmm2
inc eax
movsd qword [ebp - 0x97c], xmm0
cmp eax, 5
jl 0x40b522
test eax, eax
jne 0x40b56c
push dword [0x552d30]
cvttsd2si eax, xmm0
push 0x52ad5a
push eax
push 0x52ad5a
push str._s_d_s__s
push 0x20
push 0x59d920
call fcn.004050d0
add esp, 0x1c
jmp 0x40b5ee
push dword [eax*4 + 0x552d30]
fld qword [ebp - 0x97c]
push 0x52ad5a
sub esp, 8
movsd qword [esp], xmm0
mulsd xmm0, qword [0x549a70]
push 0x52ad5a
sub esp, 8
movsd qword [ebp - 0x1c], xmm0
fstp qword [esp]
call fcn.00511880
movsd xmm1, qword [ebp - 0x1c]
add esp, 8
fstp qword [ebp - 0x97c]
movsd xmm0, qword [ebp - 0x97c]
mov ecx, str._s_0.1f_s__s
mulsd xmm0, qword [0x549a70]
mov eax, str._s_0.0f_s__s
subsd xmm1, xmm0
movsd xmm0, qword [0x549a40]
comisd xmm0, xmm1
cmovbe eax, ecx
push eax
push 0x20
push 0x59d920
call fcn.004050d0
add esp, 0x20
mov edi, dword [ebp - 0x96c]
push 0x59d920
push dword [ebp + esi - 0x910]
mov byte [0x59d93f], 0
push dword [ebp + esi - 0x914]
push edi
push str._Creating__S_Partition__offset:__lld__size:__s_
call fcn.0044b0b0
mov ecx, dword [ebp + esi - 0x910]
add esp, 0x14
mov eax, dword [ebp + esi - 0x914]
mov dword [ebx*8 + 0x5a31ac], ecx
mov ecx, dword [ebp + esi - 0x908]
mov dword [ebx*8 + 0x5a31a8], eax
mov eax, dword [ebp + esi - 0x90c]
mov dword [ebx*8 + 0x5a322c], ecx
mov cl, byte [ebp - 0x94d]
mov dword [ebx*8 + 0x5a3228], eax
mov dl, cl
mov al, cl
and al, 2
mov byte [ebp - 0x94e], al
and dl, 0x10
je 0x40b686
mov eax, dword [ebx*8 + 0x5a31a8]
mov ecx, dword [ebx*8 + 0x5a31ac]
mov dword [0x5a3330], eax
mov dword [0x5a3334], ecx
jmp 0x40b6a3
test al, al
je 0x40b6af
mov eax, dword [ebx*8 + 0x5a31a8]
mov ecx, dword [ebx*8 + 0x5a31ac]
mov dword [0x5a3328], eax
mov dword [0x5a332c], ecx
mov cl, byte [ebp - 0x94d]
mov al, byte [ebp - 0x94e]
cmp dword [ebp - 0x964], 1
jne 0x40b731
test al, al
je 0x40b6c5
movups xmm0, xmmword [0x52c018]
jmp 0x40b6d9
test dl, dl
je 0x40b6d2
movups xmm0, xmmword [0x52c0a8]
jmp 0x40b6d9
movups xmm0, xmmword [0x52c5e8]
cmp byte [ebp - 0x94f], 0
movups xmmword [ebp + esi - 0x8fc], xmm0
je 0x40b700
mov dword [ebp + esi - 0x8dc], 0
mov dword [ebp + esi - 0x8d8], 0x90000000
lea eax, [ebp - 0x8ec]
add eax, esi
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
cmp byte [ebp - 0x94e], 0
mov eax, 0x52bc40
push 0x24
cmove eax, edi
push eax
lea eax, [ebp - 0x8d4]
add eax, esi
push eax
call fcn.004e189b
jmp 0x40b77d
test cl, 6
je 0x40b740
mov byte [ebp + esi - 0x8fc], 0xef
jmp 0x40b780
test dl, dl
je 0x40b74e
mov byte [ebp + esi - 0x8fc], 0x83
jmp 0x40b780
test cl, 8
je 0x40b769
mov eax, dword [0x5a318c]
mov byte [ebp + esi - 0x8fc], 0xea
mov dword [ebp + esi - 0x8f8], eax
jmp 0x40b780
push 0x9c8
push str.D:_a_rufus_rufus_srcdrive.c
push 0x52be08
call fcn.004dfbbc
add esp, 0xc
cmp byte [ebp - 0x94f], 0
je 0x40b8f0
push edi
push str.Writing__S_data...
call fcn.0044b0b0
add esp, 8
push 0
push 0
push dword [ebp + esi - 0x910]
push dword [ebp + esi - 0x914]
push dword [ebp - 0x960]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40b7dd
push str.Could_not_set_position
call fcn.0044b0b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov esi, dword [0x5a29d0]
push 0xa
push 0x1f6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40b82f
call fcn.0044b6b0
push eax
push str.uefi_ntfs.img
push str.Could_not_locate_resource__s:__s
call fcn.0044b0b0
add esp, 0xc
push str.Could_not_access_source_image
call fcn.0044b0b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40b876
call fcn.0044b6b0
push eax
push str.uefi_ntfs.img
push str.Could_not_load_resource__s:__s
call fcn.0044b0b0
add esp, 0xc
push str.Could_not_access_source_image
call fcn.0044b0b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40b8ad
push str.Could_not_access_source_image
call fcn.0044b0b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [ebp - 0x994]
mov edx, eax
push ecx
mov ecx, dword [ebp - 0x960]
push esi
call fcn.0044c2e0
add esp, 0xc
test eax, eax
jne 0x40b8f0
call fcn.0044b6b0
push eax
push str.Write_error:__s
call fcn.0044b0b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x964]
inc ebx
xor ecx, ecx
test ebx, ebx
je 0x40b917
lea eax, [ebp - 0x91c]
inc ecx
mov dword [eax], esi
mov dword [eax + 0x18], ecx
lea eax, [eax + 0x90]
mov byte [eax - 0x74], 1
cmp ecx, ebx
jb 0x40b903
mov eax, esi
sub eax, 0
je 0x40b9b4
sub eax, 1
jne 0x40b9f1
lea eax, [ebp - 0x9c0]
mov dword [ebp - 0x9c4], 1
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov ecx, dword [0x5a3190]
mov eax, ecx
movups xmm0, xmmword [ebp - 0x9c0]
shl eax, 4
add eax, ecx
mov dword [ebp - 0x9b0], 0x10
add eax, eax
mov dword [ebp - 0x94c], 1
mov dword [ebp - 0x934], eax
imul eax, ecx, 0x43
mov ecx, dword [0x5a3180]
mov dword [ebp - 0x948], ebx
mov dword [ebp - 0x930], 0
mov dword [ebp - 0x924], 0x10
sub ecx, eax
mov eax, dword [0x5a3184]
mov dword [ebp - 0x92c], ecx
sbb eax, 0
mov dword [ebp - 0x928], eax
movups xmmword [ebp - 0x944], xmm0
jmp 0x40b9f1
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x9c4], 0
je 0x40b9cb
mov eax, 0x49464555
jmp 0x40b9d1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [ebp - 0x9c0], eax
mov dword [ebp - 0x94c], 0
mov dword [ebp - 0x948], 4
mov dword [ebp - 0x944], eax
mov edi, dword [ebp - 0x960]
lea eax, [ebp - 0x994]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
push eax
push 0
push 0
push 0x18
lea eax, [ebp - 0x9c4]
mov dword [ebp - 0x994], 0x18
push eax
push 0x7c058
push edi
call esi
test eax, eax
jne 0x40ba4f
call fcn.0044b6b0
push eax
push str.Could_not_reset_disk:__s
call fcn.0044b0b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x70140
push edi
call esi
test eax, eax
jne 0x40ba7c
call fcn.0044b6b0
push eax
push str.Could_not_refresh_drive_layout:__s
call fcn.0044b0b0
add esp, 8
cmp dword [ebp - 0x964], 1
jne 0x40ba92
lea eax, [ebx + ebx*8]
shl eax, 4
add eax, 0x6f0
jmp 0x40ba97
mov eax, 0x930
push 0
lea ecx, [ebp - 0x994]
mov dword [ebp - 0x994], eax
push ecx
push 0
push 0
push eax
lea eax, [ebp - 0x94c]
push eax
push 0x7c054
push edi
call esi
test eax, eax
jne 0x40bae4
call fcn.0044b6b0
push eax
push str.Could_not_set_drive_layout:__s
call fcn.0044b0b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x70140
push edi
call esi
test eax, eax
jne 0x40bb24
call fcn.0044b6b0
push eax
push str.Could_not_refresh_drive_layout:__s
call fcn.0044b0b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret