Function at 0x447895
Capabilities:
Copy file
Read file on windows

Disassembly:
push ebp
mov ecx, 6
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x190]
push ebx
sub esp, 0x21c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x19c], 0x4b33bf
mov dword [ebp - 0x198], 0x4b33c3
mov dword [ebp - 0x1d0], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0x526c50]
cmp eax, 5
je 0x4478f3
xor esi, esi
cmp eax, 3
jne 0x4478f8
xor eax, eax
cmp byte [0x51331d], 4
seta al
mov esi, eax
mov eax, 0x51331e
jmp 0x447904
mov esi, 1
mov eax, esi
neg eax
and eax, 0xc
add eax, 0x4929e4
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xca2
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp], 1
call fcn.00422ac2
xor eax, eax
xor edx, edx
mov dword [0x492a8c], eax
mov eax, dword [0x4e2230]
mov ebx, eax
shr ebx, 1
je 0x447942
mov dl, 1
jmp 0x44793a
test dl, dl
je 0x447954
bsr edx, eax
test eax, eax
cmove edx, ebx
mov dword [0x492a8c], edx
mov edx, dword [0x492a8c]
mov dword [0x492a88], eax
mov dword [0x492a80], eax
mov dword [0x492a84], edx
lea edx, [eax - 1]
mov dword [0x492a7c], edx
test eax, eax
je 0x447986
add eax, 0x10
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
jne 0x4479a2
mov dword [ebp - 0x1cc], 0xffffffff
xor ebx, ebx
xor edi, edi
mov dword [0x52a3f8], ebx
mov dword [ebp - 0x1d0], ebx
jmp 0x4479fc
lea edx, [eax + 0x10]
xor ecx, ecx
and edx, 0xfffffff0
mov dword [edx - 4], eax
mov dword [0x52a3f8], edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00409f06
mov dword [ebp - 0x1cc], eax
dec eax
cmp eax, 0xfffffffd
jbe 0x447a04
mov dword [esp], str.Could_open_volume_for_Syslinux_installation
call fcn.0043efa9
xor edx, edx
xor edi, edi
mov dword [ebp - 0x1d0], edx
or ebx, 0xffffffff
jmp 0x448743
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1c0]
mov dword [esp + 0xc], eax
mov eax, dword [0x492a88]
mov dword [esp + 8], eax
mov eax, dword [0x52a3f8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
sub esp, 0x14
mov edi, eax
test eax, eax
jne 0x447a54
mov dword [esp], str.Could_not_read_VBR
call fcn.0043efa9
xor eax, eax
mov dword [ebp - 0x1d0], eax
jmp 0x4479fc
mov eax, dword [0x492a88]
cmp dword [ebp - 0x1c0], eax
je 0x447a6a
mov dword [esp], str.Could_not_read_the_whole_VBR
jmp 0x4479ed
lea eax, [ebp - 0x1b8]
mov dword [esp + 4], eax
mov eax, dword [0x52a3f8]
mov dword [esp], eax
call fcn.0047e1df
mov dword [ebp - 0x1d8], eax
test eax, eax
je 0x447aa0
mov dword [esp + 4], eax
mov dword [esp], str.Error:__s
call fcn.0043efa9
jmp 0x4479f2
mov dword [esp], 0x52b580
call fcn.0047e6a6
cmp dword [0x52a3e8], 0
je 0x447c24
cmp dword [0x52a3ec], 0
je 0x447c24
call fcn.00447867
xor ebx, ebx
mov eax, dword [ebx*4 + 0x52a3e8]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebx*4 + 0x52a3f0], eax
test eax, eax
je 0x4479f2
test ebx, ebx
mov edx, 0x4b33bf
mov eax, 0x4b33c3
mov dword [esp + 0x1c], str.ldlinux
cmove eax, edx
lea esi, [ebp - 0x11c]
mov dword [esp + 0x18], 0x51332a
mov dword [esp + 0x14], 0x51331e
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], str.syslinux
mov dword [esp + 0xc], 0x4b3446
mov dword [esp + 8], str._s_s__s_s_s._s
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__snprintf]
mov byte [ebp - 0x19], 0
mov dword [esp + 4], 0x4b345d
mov dword [esp], esi
call sub.msvcrt.dll_fopen
mov edi, eax
test eax, eax
jne 0x447b77
mov dword [esp + 8], esi
mov dword [esp + 4], 0x5265a0
mov dword [esp], str.Could_not_open__s_s
jmp 0x447d5e
mov dword [esp + 0xc], eax
mov eax, dword [ebx*4 + 0x52a3e8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [ebx*4 + 0x52a3f0]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebp - 0x1d4], eax
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, dword [ebx*4 + 0x52a3e8]
mov edx, dword [ebp - 0x1d4]
cmp eax, edx
je 0x447bd4
mov dword [esp + 8], esi
mov dword [esp + 4], 0x5265a0
mov dword [esp], str.Could_not_read__s_s
jmp 0x447d5e
mov dword [esp + 4], eax
mov eax, dword [ebx*4 + 0x52a3f0]
mov dword [esp], eax
call fcn.0041c03d
mov edx, 0x4b33c7
mov dword [esp + 8], esi
test eax, eax
mov eax, 0x4b33cb
mov dword [esp + 4], 0x5265a0
cmovne eax, edx
mov dword [esp], str.Using_existing__s_s__s
mov dword [esp + 0xc], eax
call fcn.0043efa9
test ebx, ebx
jne 0x447cb8
mov ebx, 1
jmp 0x447acd
shl esi, 3
mov eax, dword [ebp + ebx - 0x19c]
lea edi, [ebp - 0x15c]
mov dword [esp + 0xc], str.ldlinux
mov dword [esp + 8], str._s._s
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__snprintf]
xor eax, eax
mov byte [ebp - 0x11d], 0
mov dword [ebx + 0x52a3e8], eax
lea eax, [ebx + 0x52a3e8]
mov dword [esp + 0x10], eax
mov eax, dword [esi + ebx + 0x4b38a4]
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xa
mov dword [esp + 4], eax
mov eax, dword [0x526d60]
mov dword [esp], eax
call fcn.0043dba5
mov dword [ebx + 0x52a3f0], eax
test eax, eax
je 0x4479f2
add ebx, 4
cmp ebx, 8
jne 0x447c27
movsx eax, byte [ebp - 0x1d0]
lea ebx, [ebp - 0x11c]
mov dword [ebp - 0x1dc], eax
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_toupper]
mov dword [esp], ebx
mov dword [esp + 0x14], 0x4b33bf
mov dword [esp + 0x10], str.ldlinux
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._c:_s._s
mov dword [esp + 4], 0x104
call dword [sym.imp.msvcrt.dll__snprintf]
xor eax, eax
mov byte [ebp - 0x19], 0
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp], ebx
mov dword [esp + 0x14], 7
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], eax
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
jne 0x447d68
call fcn.0043f53d
mov dword [esp], str.Unable_to_create__s:__s
mov dword [esp + 8], eax
lea eax, [ebp - 0x119]
mov dword [esp + 4], eax
call fcn.0043efa9
jmp 0x4479f2
lea esi, [ebp - 0x1bc]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], esi
mov eax, dword [0x52a3e8]
mov dword [esp + 8], eax
mov eax, dword [0x52a3f0]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00440072
test eax, eax
jne 0x447db4
call fcn.0043f53d
mov dword [esp], str.Could_not_write__s:__s
mov dword [esp + 8], eax
lea eax, [ebp - 0x119]
mov dword [esp + 4], eax
jmp 0x447df6
mov dword [esp + 0xc], esi
lea esi, [ebp - 0x119]
mov dword [esp + 0x10], 4
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x52b580
mov dword [esp], ebx
call fcn.00440072
test eax, eax
jne 0x447e08
call fcn.0043f53d
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], str.Could_not_write_ADV_to__s:__s
call fcn.0043efa9
xor ecx, ecx
mov dword [ebp - 0x1d0], ecx
jmp 0x448741
mov dword [esp + 4], esi
mov dword [esp], str.Successfully_wrote__s
call fcn.0043efa9
cmp dword [0x526c50], 3
je 0x447e35
mov dword [esp + 4], 0xbf800000
mov dword [esp], 7
call fcn.0044d497
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
push edx
test eax, eax
jne 0x447e51
mov dword [esp], str.FlushFileBuffers_failed
call fcn.0043efa9
jmp 0x447dfb
mov eax, dword [0x492a88]
mov ecx, dword [0x492a8c]
add eax, dword [0x52a3e8]
add eax, 0x3ff
shr eax, cl
mov dword [ebp - 0x1e0], eax
mov dword [esp + 4], 8
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov dword [ebp - 0x1d0], eax
test eax, eax
je 0x447dfb
cmp dword [ebp + 0x10], 2
je 0x447eb3
jg 0x447ea4
cmp dword [ebp + 0x10], 1
ja 0x44814a
jmp 0x4480a5
cmp dword [ebp + 0x10], 4
je 0x4480a5
jmp 0x44814a
mov eax, dword [ebp - 0x1dc]
lea esi, [ebp - 0x15c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_toupper]
mov dword [esp + 8], 0x4b3537
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x40
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__snprintf]
mov eax, dword [ebp - 0x1cc]
mov byte [ebp - 0x11d], 0
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x190]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0047ecb9
test eax, eax
je 0x447f1a
mov dword [esp], str.Could_not_fetch_NTFS_volume_info
jmp 0x447fc3
xor eax, eax
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x1f4], eax
xor eax, eax
mov dword [ebp - 0x1d4], eax
jmp 0x447f72
test cl, cl
je 0x447f5a
mov eax, dword [ebp - 0x1f0]
mov edx, dword [ebp - 0x1ec]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], edx
mov eax, dword [ebp - 0x170]
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], edx
lea eax, [ebp - 0x178]
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x1b0]
mov dword [esp + 4], eax
call fcn.0047eaa1
test eax, eax
jne 0x448156
lea eax, [ebp - 0x1a8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x168]
mov dword [esp + 4], eax
lea eax, [ebp - 0x190]
mov dword [esp], eax
call fcn.0047eb71
test eax, eax
je 0x447fcd
mov dword [esp], str.Could_not_translate_ldlinux.sys_LCN_to_disk_LBA
call fcn.0043efa9
jmp 0x448741
mov ecx, dword [ebp - 0x184]
mov esi, dword [ebp - 0x1a8]
mov edi, dword [ebp - 0x1a4]
sub esi, dword [ebp - 0x180]
mov eax, dword [ebp - 0x170]
sbb edi, dword [ebp - 0x17c]
mov dword [ebp - 0x1a8], esi
sub eax, dword [ebp - 0x178]
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x1a4], edi
sbb edx, dword [ebp - 0x174]
mov dword [ebp - 0x1f0], esi
imul ecx, edx
mov dword [ebp - 0x1ec], edi
mul dword [ebp - 0x184]
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1e4], edx
add dword [ebp - 0x1e4], ecx
xor ecx, ecx
mov edx, dword [ebp - 0x1e4]
mov eax, dword [ebp - 0x1e8]
mov edi, dword [ebp - 0x1e0]
or eax, edx
setne dl
cmp dword [ebp - 0x1d4], edi
setl al
add dword [ebp - 0x1e8], 0xffffffff
adc dword [ebp - 0x1e4], 0xffffffff
and al, dl
je 0x447f3e
add dword [ebp - 0x1f4], 8
mov esi, dword [ebp - 0x1f0]
mov ecx, dword [ebp - 0x1f4]
mov edi, dword [ebp - 0x1ec]
inc dword [ebp - 0x1d4]
mov dword [ecx - 8], esi
add dword [ebp - 0x1f0], 1
mov dword [ecx - 4], edi
mov ecx, eax
adc dword [ebp - 0x1ec], 0
jmp 0x448038
mov eax, dword [ebp - 0x1cc]
mov dword [esp], 0x4476b8
mov dword [esp + 4], eax
call fcn.0047dc14
mov esi, eax
test eax, eax
jne 0x4480cd
mov dword [esp], str.Syslinux_FAT_access_error
jmp 0x447fc3
xor ecx, ecx
xor edi, edi
mov dword [esp + 8], str.LDLINUX_SYS
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0047de00
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0047d990
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x1d4], eax
mov eax, ecx
or eax, edx
je 0x448140
mov edi, dword [ebp - 0x1e0]
cmp dword [ebp - 0x1d4], edi
jge 0x448140
mov edi, dword [ebp - 0x1d4]
mov eax, dword [ebp - 0x1d0]
inc dword [ebp - 0x1d4]
mov dword [eax + edi*8], ecx
mov dword [eax + edi*8 + 4], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp], esi
call fcn.0047d9ed
mov ecx, eax
jmp 0x4480ff
mov dword [esp], esi
call fcn.0047dde0
jmp 0x448156
mov dword [esp], str.Unsupported_Syslinux_filesystem
jmp 0x447fc3
mov dword [esp], 0x512f20
call sub.msvcrt.dll_strlen
mov esi, eax
test esi, esi
je 0x44817b
cmp byte [esi + 0x512f20], 0x2f
je 0x448174
dec esi
jmp 0x448164
mov byte [esi + 0x512f20], 0
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], 0x512f20
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x1d4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1d0]
mov dword [esp], eax
call fcn.0047e720
test esi, esi
je 0x4481b6
mov byte [esi + 0x512f20], 0x2f
test eax, eax
jns 0x4481d2
mov dword [esp], str.Could_not_patch_Syslinux_files.
call fcn.0043efa9
mov dword [esp], str.WARNING:_This_could_be_caused_by_your_firewall_having_modified_downloaded_content__such_as_ldlinux.sys...
jmp 0x447fc3
xor eax, eax
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
sub esp, 0x14
test eax, eax
jne 0x448213
call fcn.0043f53d
mov dword [esp], str.Could_not_rewrite__s:__s_n
mov dword [esp + 8], eax
lea eax, [ebp - 0x119]
mov dword [esp + 4], eax
jmp 0x4482f2
lea eax, [ebp - 0x1bc]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov eax, dword [0x52a3e8]
mov dword [esp + 8], eax
mov eax, dword [0x52a3f0]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00440072
test eax, eax
je 0x4481f4
lea eax, [ebx - 1]
cmp eax, 0xfffffffd
ja 0x44825a
mov dword [esp], ebx
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
jmp 0x44825c
xor ebx, ebx
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
jne 0x44829b
call fcn.0043f53d
mov dword [esp], str.Could_not_read_Syslinux_boot_record:__s
mov dword [esp + 4], eax
jmp 0x44834d
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1c0]
mov dword [esp + 0xc], eax
mov eax, dword [0x492a88]
mov dword [esp + 8], eax
mov eax, dword [0x52a3f8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
sub esp, 0x14
test eax, eax
je 0x448286
mov eax, dword [ebp - 0x1c0]
mov edx, dword [0x492a88]
cmp eax, edx
jae 0x4482fc
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str.Partial_read_of_Syslinux_boot_record:_read__d_bytes_but_requested__d
call fcn.0043efa9
jmp 0x448741
xor eax, eax
cmp dword [ebp + 0x10], 2
sete al
xor edi, edi
add eax, 3
mov dword [esp + 4], eax
mov eax, dword [0x52a3f8]
mov dword [esp], eax
call fcn.0047e17c
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
mov dword [esp + 4], edi
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
jne 0x448357
call fcn.0043f53d
mov dword [esp], str.Could_not_write_Syslinux_boot_record:__s
mov dword [esp + 4], eax
call fcn.0043efa9
jmp 0x448741
lea edi, [ebp - 0x1bc]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], edi
mov eax, dword [0x492a88]
mov dword [esp + 8], eax
mov eax, dword [0x52a3f8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call fcn.00440072
test eax, eax
je 0x44833d
mov dword [esp], str.Successfully_wrote_Syslinux_boot_record
call fcn.0043efa9
cmp dword [0x526c50], 5
jne 0x448549
call fcn.00447867
lea esi, [ebp - 0x11c]
mov edi, dword [sym.imp.msvcrt.dll__snprintf]
mov dword [esp + 0x14], 0x4929f0
mov dword [esp + 0x10], str.syslinux
mov dword [esp + 0xc], 0x4b3446
mov dword [esp + 8], str._s_s__s
mov dword [esp + 4], 0x104
mov dword [esp], esi
call edi
mov byte [ebp - 0x19], 0
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__chdir]
mov eax, dword [ebp - 0x1dc]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_toupper]
mov dword [esp + 0x14], 0x4b3744
mov dword [esp + 0x10], str.ldlinux
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._c:_s._s
mov dword [esp + 4], 0x104
mov dword [esp], esi
call edi
lea edi, [ebp - 0x119]
mov byte [ebp - 0x19], 0
mov dword [esp + 4], 0x4b345d
mov dword [esp], edi
call sub.msvcrt.dll_fopen
test eax, eax
jne 0x44845c
mov dword [esp + 4], edi
mov dword [esp], str.Caution:_No__s_was_provided._The_target_will_be_missing_a_required_Syslinux_file_
call fcn.0043efa9
jmp 0x448552
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, edi
call fcn.004477a4
mov edi, eax
mov eax, esi
call fcn.004477a4
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
mov dword [ebp - 0x1d4], eax
sub esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x1d8], eax
test edi, edi
je 0x4484ac
mov dword [esp], edi
call sub.msvcrt.dll_free
test esi, esi
je 0x4484b8
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x1d8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push esi
cmp dword [ebp - 0x1d4], 0
lea esi, [ebp - 0x11c]
je 0x44852e
lea edi, [ebp - 0x119]
mov dword [esp], edi
call fcn.0041c0a2
mov edx, 0x4b33c7
mov dword [esp + 0x18], edi
test eax, eax
mov eax, 0x4b33cb
mov dword [esp + 0x14], 0x4929f0
cmovne eax, edx
mov dword [esp + 0x10], str.syslinux
mov dword [esp + 0xc], 0x4b3446
mov dword [esp + 0x1c], eax
mov dword [esp + 8], 0x5265a0
mov dword [esp + 4], esi
mov dword [esp], str.Created__s__from__s_s_s__s_s___s
call fcn.0043efa9
jmp 0x448552
call fcn.0043f53d
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], str.Failed_to_create__s:__s
call fcn.0043efa9
jmp 0x448552
cmp byte [0x512fa0], 0
jne 0x44855d
mov dword [ebp - 0x1d8], ebx
jmp 0x448715
mov dword [esp], str.Setting_up_ReactOS...
call fcn.0043efa9
xor ecx, ecx
mov dword [esp + 0x10], 0x52a3e0
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], str.mboot.c32
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x194
mov eax, dword [0x526d60]
mov dword [esp], eax
call fcn.0043dba5
mov dword [0x52a3e4], eax
test eax, eax
je 0x448741
mov eax, dword [ebp - 0x1dc]
lea esi, [ebp - 0x11c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_toupper]
mov dword [esp + 0x10], str.mboot.c32
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._c:_s
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__snprintf]
xor eax, eax
xor edx, edx
mov byte [ebp - 0x19], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], edx
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
jne 0x448636
mov dword [esp + 4], esi
mov dword [esp], str.Unable_to_create__s_n
jmp 0x44834d
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 4
mov eax, dword [0x52a3e0]
mov dword [esp + 8], eax
mov eax, dword [0x52a3e4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00440072
mov edi, eax
lea eax, [ebx - 1]
test edi, edi
jne 0x44867a
mov dword [esp + 4], esi
mov dword [esp], str.Could_not_write__s
call fcn.0043efa9
jmp 0x448743
cmp eax, 0xfffffffd
ja 0x448693
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
mov dword [ebp - 0x1d8], 0xffffffff
mov eax, dword [ebp - 0x1dc]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_toupper]
mov dword [esp + 8], str._c:_syslinux.cfg
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__snprintf]
mov byte [ebp - 0x19], 0
mov dword [esp + 4], 0x4b3842
mov dword [esp], esi
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
jne 0x4486ed
mov dword [esp], str.Could_not_create_ReactOS_syslinux.cfg
call fcn.0043efa9
mov ebx, dword [ebp - 0x1d8]
jmp 0x448741
mov dword [esp + 0xc], 0x512fa0
mov dword [esp + 8], str.mboot.c32
mov dword [esp + 4], str.DEFAULT_ReactOS_nLABEL_ReactOS_n__KERNEL__s_n__APPEND__s
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
cmp dword [0x526c50], 3
jne 0x44872b
mov ebx, dword [ebp - 0x1d8]
mov edi, 1
jmp 0x448743
mov dword [esp + 4], 0xbf800000
mov dword [esp], 7
call fcn.0044d497
jmp 0x44871e
xor edi, edi
mov eax, dword [0x52a3f8]
test eax, eax
je 0x448757
mov eax, dword [eax - 4]
mov dword [esp], eax
call sub.msvcrt.dll_free
xor eax, eax
mov dword [0x52a3f8], eax
mov eax, dword [0x52a3f0]
mov dword [esp], eax
call sub.msvcrt.dll_free
xor eax, eax
mov dword [0x52a3f0], eax
mov eax, dword [0x52a3f4]
mov dword [esp], eax
call sub.msvcrt.dll_free
xor eax, eax
mov dword [0x52a3f4], eax
mov eax, dword [ebp - 0x1d0]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x1cc]
dec eax
cmp eax, 0xfffffffd
ja 0x4487ec
xor ecx, ecx
xor edx, edx
lea eax, [ebp - 0x1b4]
mov dword [esp + 4], 0x9001c
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov eax, dword [ebp - 0x1cc]
sub esp, 0x20
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
lea eax, [ebx - 1]
cmp eax, 0xfffffffd
ja 0x4487fe
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret