Function at 0x4352c3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x522190]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x188], eax
xor eax, eax
mov byte [ebp - 0x15d], dl
and dword [ebp - 0x158], eax
lea edi, [ebp - 0x1d4]
and dword [ebp - 0x164], eax
or ebx, 0xffffffff
or dword [ebp - 0x174], ebx
push 6
pop ecx
rep stosd dword es:[edi], eax
mov ecx, dword [0x522460]
mov dword [ebp - 0x19c], 0x4c067c
mov dword [ebp - 0x198], 0x4c0680
mov dword [ebp - 0x194], 0x4c0684
cmp ecx, 5
je 0x435356
cmp ecx, 3
jne 0x435345
cmp byte [0x5228c3], 5
jae 0x435356
mov edx, 0x4da358
mov dword [ebp - 0x15c], 0x4b1ee8
jmp 0x435365
mov edx, 0x4da364
mov dword [ebp - 0x15c], 0x4b1ef0
cmp ecx, 3
mov eax, 0x5228c4
cmovne eax, edx
xor edi, edi
push eax
push 0xca2
push 0
inc edi
push edi
push edi
call fcn.00414c2d
mov edx, dword [0x522930]
xor eax, eax
mov ecx, edx
mov dword [0x4da418], eax
add esp, 0x14
shr ecx, 1
je 0x4353a2
inc eax
shr ecx, 1
jne 0x435398
mov dword [0x4da418], eax
mov dword [str._t_t], eax
lea eax, [edx - 1]
push 0x10
push edx
mov dword [0x4da41c], edx
mov dword [0x4da38c], edx
mov dword [0x4da410], eax
call fcn.0047b39c
mov dword [0x51f9e8], eax
pop ecx
pop ecx
test eax, eax
je 0x435de3
push edi
push edi
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.00404e4e
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x174], edi
cmp edi, 0xffffffff
je 0x435dd9
test edi, edi
je 0x435dd9
push 0
lea eax, [ebp - 0x16c]
push eax
push dword [0x4da41c]
push dword [0x51f9e8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43542d
push str.Could_not_read_VBR
call fcn.0042ed57
pop ecx
jmp 0x435de9
mov eax, dword [ebp - 0x16c]
cmp eax, dword [0x4da41c]
je 0x435442
push str.Could_not_read_the_whole_VBR
jmp 0x435422
lea edx, [ebp - 0x168]
call fcn.00451440
test eax, eax
je 0x43545f
push eax
push str.Error:__s
call fcn.0042ed57
pop ecx
jmp 0x435427
call fcn.00451590
cmp dword [0x520590], 0
je 0x4355ae
cmp dword [0x520594], 0
je 0x4355ae
call fcn.00407e82
xor esi, esi
mov dword [ebp - 0x15c], esi
push dword [esi*4 + 0x520590]
call fcn.004812e1
mov dword [esi*4 + 0x50cae0], eax
pop ecx
test eax, eax
je 0x435de9
test esi, esi
mov ecx, 0x4c0680
mov eax, 0x4c067c
cmovne eax, ecx
push eax
push str.ldlinux
push 0x5228d0
push 0x5228c4
push str.syslinux
push str.rufus_files
push str._s__s__s_s__s._s
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00403163
add esp, 0x24
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x114]
push 0x4ba3b0
push eax
call fcn.004814b7
mov dword [ebp - 0x17c], eax
pop ecx
pop ecx
test eax, eax
je 0x43559d
push eax
push dword [esi*4 + 0x520590]
push 1
push dword [esi*4 + 0x50cae0]
call fcn.0048afe7
push dword [ebp - 0x17c]
mov esi, eax
call fcn.00481623
mov eax, dword [ebp - 0x15c]
add esp, 0x14
mov edx, dword [eax*4 + 0x520590]
cmp esi, edx
jne 0x43558c
mov esi, eax
mov ecx, dword [esi*4 + 0x50cae0]
call fcn.0042ced9
test eax, eax
mov ecx, 0x4b6c74
mov eax, 0x4b6c78
cmove ecx, eax
lea eax, [ebp - 0x114]
push ecx
push eax
push str.Using_existing_.__s__s
call fcn.0042ed57
add esp, 0xc
inc esi
mov dword [ebp - 0x15c], esi
cmp esi, 2
jl 0x43548b
jmp 0x435621
lea eax, [ebp - 0x114]
push eax
push str.Could_not_read__s
jmp 0x435457
lea eax, [ebp - 0x114]
push eax
push str.Could_not_open__s
jmp 0x435457
xor esi, esi
push dword [ebp + esi - 0x19c]
lea eax, [ebp - 0x154]
push str.ldlinux
push str._s._s
push 0x40
push eax
call fcn.00403163
mov edx, dword [ebp - 0x15c]
lea eax, [esi + 0x520590]
and dword [eax], 0
add esp, 0x14
mov ecx, dword [0x5223d4]
mov byte [ebp - 0x115], 0
mov edx, dword [edx]
push 1
push eax
lea eax, [ebp - 0x154]
push eax
push 0xa
call fcn.0042df9d
add esp, 0x10
mov dword [esi + 0x50cae0], eax
test eax, eax
je 0x435de9
add dword [ebp - 0x15c], 4
add esi, 4
cmp esi, 8
jl 0x4355b0
movsx esi, byte [ebp - 0x15d]
lea eax, [ebp - 0x114]
push 0x4c067c
push str.ldlinux
push esi
push str._C:_s._s
push 0x104
push eax
mov dword [ebp - 0x17c], esi
call fcn.00403163
add esp, 0x18
xor eax, eax
mov byte [ebp - 0x11], al
push eax
push 7
push 2
push eax
push 3
push 0xc0000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x184], ebx
cmp ebx, 0xffffffff
jne 0x43569d
call fcn.0042fc51
push eax
lea eax, [ebp - 0x111]
push eax
push str.Unable_to_create__s:__s
call fcn.0042ed57
add esp, 0xc
jmp 0x435de9
mov edx, dword [0x50cae0]
lea eax, [ebp - 0x170]
push ecx
push eax
push dword [0x520590]
mov ecx, ebx
call fcn.0043032f
add esp, 0xc
test eax, eax
jne 0x4356d3
call fcn.0042fc51
push eax
lea eax, [ebp - 0x111]
push eax
push str.Could_not_write__s:__s
jmp 0x435690
push ecx
lea eax, [ebp - 0x170]
mov edx, 0x520160
push eax
push 0x400
mov ecx, ebx
call fcn.0043032f
add esp, 0xc
test eax, eax
jne 0x435707
call fcn.0042fc51
push eax
lea eax, [ebp - 0x111]
push eax
push str.Could_not_write_ADV_to__s:__s
jmp 0x435690
lea eax, [ebp - 0x111]
push eax
push str.Successfully_wrote__s
call fcn.0042ed57
cmp dword [0x522460], 3
pop ecx
pop ecx
je 0x435733
movss xmm1, dword [0x4d1ecc]
push 7
pop ecx
call fcn.0043bf8e
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x435748
push str.FlushFileBuffers_failed
jmp 0x435422
mov ecx, dword [0x4da41c]
mov eax, dword [0x520590]
add ecx, 0x3ff
add eax, ecx
mov ecx, dword [0x4da418]
shr eax, cl
push 8
push eax
mov dword [ebp - 0x180], eax
call fcn.0047b53f
mov dword [ebp - 0x164], eax
pop ecx
pop ecx
test eax, eax
je 0x435de9
mov ecx, dword [ebp - 0x188]
sub ecx, 0
je 0x435953
sub ecx, 1
je 0x435953
sub ecx, 1
je 0x4357b2
dec ecx
sub ecx, 1
je 0x435953
push str.Unsupported_Syslinux_filesystem
jmp 0x435422
push esi
push str._C:_
lea eax, [ebp - 0x154]
push 0x40
push eax
call fcn.00403163
add esp, 0x10
mov byte [ebp - 0x115], 0
lea edx, [ebp - 0x1d4]
mov dword [ebp - 0x1d0], edi
lea ecx, [ebp - 0x154]
call fcn.00451970
test eax, eax
je 0x4357f5
push str.Could_not_fetch_NTFS_volume_info
jmp 0x435422
mov ecx, dword [ebp - 0x164]
xorps xmm0, xmm0
mov dword [ebp - 0x15c], ecx
xor esi, esi
movlpd qword [ebp - 0x19c], xmm0
jmp 0x435927
cmp dword [ebp - 0x1cc], 0
je 0x435949
cmp dword [ebp - 0x1c8], 0
je 0x435949
xor eax, eax
cmp dword [ebp - 0x1a8], eax
jl 0x435949
jg 0x435849
cmp dword [ebp - 0x1ac], eax
jb 0x435949
push dword [ebp - 0x1a8]
push dword [ebp - 0x1ac]
push eax
push dword [ebp - 0x1c8]
call fcn.00476210
add eax, dword [ebp - 0x1c4]
mov ecx, edx
push 0
adc ecx, dword [ebp - 0x1c0]
sub eax, dword [ebp - 0x1c4]
push dword [ebp - 0x1c8]
sbb ecx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1a0], ecx
mov ecx, dword [ebp - 0x1b4]
sub ecx, dword [ebp - 0x1bc]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x1b0]
sbb eax, dword [ebp - 0x1b8]
push eax
push ecx
call fcn.00476210
mov ecx, eax
mov dword [ebp - 0x1a4], eax
or ecx, edx
mov dword [ebp - 0x168], edx
je 0x43590f
mov ecx, dword [ebp - 0x178]
mov edi, eax
mov edx, dword [ebp - 0x1a0]
mov ebx, dword [ebp - 0x168]
add edi, 0xffffffff
adc ebx, 0xffffffff
cmp esi, dword [ebp - 0x180]
jge 0x435903
mov eax, dword [ebp - 0x15c]
mov dword [eax], ecx
mov dword [eax + 4], edx
add eax, 8
add ecx, 1
mov dword [ebp - 0x15c], eax
mov eax, edi
adc edx, 0
inc esi
or eax, ebx
jne 0x4358d4
mov ebx, dword [ebp - 0x184]
mov edi, dword [ebp - 0x174]
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x1bc]
mov ecx, ebx
push eax
lea edx, [ebp - 0x19c]
call fcn.004518a0
pop ecx
test eax, eax
je 0x435813
jmp 0x4359f9
push str.Could_not_translate_LDLINUX.SYS_LCN_to_disk_LBA
jmp 0x435422
mov edx, edi
mov ecx, 0x43522d
call fcn.00450650
mov dword [ebp - 0x15c], eax
test eax, eax
jne 0x435973
push str.Syslinux_FAT_access_error
jmp 0x435422
push 0
push str.LDLINUX_SYS
xor edx, edx
mov ecx, eax
call fcn.00450bb0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x164]
mov edx, eax
mov dword [ebp - 0x178], ecx
xor esi, esi
mov ecx, dword [ebp - 0x15c]
call fcn.00450900
mov ecx, eax
mov dword [ebp - 0x168], eax
or ecx, edx
je 0x4359ee
mov edi, dword [ebp - 0x15c]
mov ebx, eax
cmp esi, dword [ebp - 0x180]
jge 0x4359e2
mov eax, dword [ebp - 0x178]
mov ecx, edi
push edx
push ebx
mov dword [eax], ebx
mov dword [eax + 4], edx
add eax, 8
mov dword [ebp - 0x178], eax
inc esi
call fcn.00450950
pop ecx
mov ebx, eax
or eax, edx
pop ecx
jne 0x4359b4
mov ebx, dword [ebp - 0x184]
mov edi, dword [ebp - 0x174]
mov ecx, dword [ebp - 0x15c]
call fcn.004508c0
mov ecx, dword [ebp - 0x164]
sub esp, 0x10
mov edx, esi
call fcn.004515b0
add esp, 0x10
test eax, eax
jns 0x435a26
push str.Could_not_patch_Syslinux_files.
call fcn.0042ed57
mov dword [esp], str.WARNING:_This_could_be_caused_by_your_firewall_having_modifed_downloaded_content__such_as_ldlinux.sys...
jmp 0x435422
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
push eax
push eax
push eax
push eax
push ebx
call esi
test eax, eax
je 0x435dc2
mov edx, dword [0x50cae0]
lea eax, [ebp - 0x170]
push ecx
push eax
push dword [0x520590]
mov ecx, ebx
call fcn.0043032f
add esp, 0xc
test eax, eax
je 0x435dc2
test ebx, ebx
je 0x435a71
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
xor eax, eax
push eax
push eax
push eax
push eax
push edi
call esi
test eax, eax
je 0x435db2
push 0
lea eax, [ebp - 0x16c]
push eax
push dword [0x4da41c]
push dword [0x51f9e8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435db2
mov eax, dword [0x4da41c]
cmp dword [ebp - 0x16c], eax
jae 0x435ac4
push eax
push dword [ebp - 0x16c]
push str.Partial_read_of_Syslinux_boot_record:_read__d_bytes_but_requested__d
jmp 0x435690
xor edx, edx
cmp dword [ebp - 0x188], 2
sete dl
add edx, 3
call fcn.00451180
xor eax, eax
push eax
push eax
push eax
push eax
push edi
call esi
test eax, eax
je 0x435da2
mov edx, dword [0x51f9e8]
lea eax, [ebp - 0x170]
push ecx
push eax
push dword [0x4da41c]
mov ecx, edi
call fcn.0043032f
add esp, 0xc
test eax, eax
je 0x435da2
push str.Successfully_wrote_Syslinux_boot_record
call fcn.0042ed57
cmp dword [0x522460], 5
pop ecx
jne 0x435c44
call fcn.00407e82
push 0x4da364
push str.syslinux
push str.rufus_files
push str._s__s__s
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00403163
lea eax, [ebp - 0x114]
mov byte [ebp - 0x11], 0
push eax
call fcn.00489a2a
mov esi, dword [ebp - 0x17c]
lea eax, [ebp - 0x114]
add esp, 0x1c
push 0x4c0684
push str.ldlinux
push esi
push str._C:_s._s
push 0x104
push eax
call fcn.00403163
lea eax, [ebp - 0x111]
mov byte [ebp - 0x11], 0
push 0x4ba3b0
push eax
call fcn.004814b7
add esp, 0x20
test eax, eax
jne 0x435bbf
lea eax, [ebp - 0x111]
push eax
push str.Caution:_No__s_was_provided._The_target_will_be_missing_a_required_Syslinux_file_
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x435d84
push eax
call fcn.00481623
lea edx, [ebp - 0x114]
lea ecx, [ebp - 0x111]
call fcn.004351d9
pop ecx
test eax, eax
je 0x435c25
lea ecx, [ebp - 0x111]
call fcn.0042cf39
test eax, eax
mov ecx, 0x4b6c78
mov eax, 0x4b6c74
cmove eax, ecx
push eax
lea eax, [ebp - 0x111]
push eax
push 0x4da364
push str.syslinux
push str.rufus_files
lea eax, [ebp - 0x114]
push eax
push str.Created__s__from__s__s__s__s___s
call fcn.0042ed57
add esp, 0x1c
jmp 0x435d84
call fcn.0042fc51
push eax
lea eax, [ebp - 0x114]
push eax
push str.Failed_to_create__s:__s
call fcn.0042ed57
add esp, 0xc
jmp 0x435d84
cmp byte [0x522680], 0
je 0x435d84
push str.Setting_up_ReactOS...
call fcn.0042ed57
pop ecx
mov ecx, dword [0x5223d4]
mov esi, str.mboot.c32
push 0
push 0x52058c
push esi
push 0xa
mov edx, 0x194
call fcn.0042df9d
add esp, 0x10
mov dword [0x50cae8], eax
test eax, eax
je 0x435de9
push esi
mov esi, dword [ebp - 0x17c]
lea eax, [ebp - 0x114]
push esi
push str._C:_s
push 0x104
push eax
call fcn.00403163
add esp, 0x14
xor eax, eax
mov byte [ebp - 0x11], al
push eax
push 0x80
push 2
push eax
push 3
push 0xc0000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x435ce6
lea eax, [ebp - 0x114]
push eax
push str.Unable_to_create__s_n
jmp 0x435457
mov edx, dword [0x50cae8]
lea eax, [ebp - 0x170]
push ecx
push eax
push dword [0x52058c]
mov ecx, ebx
call fcn.0043032f
add esp, 0xc
test eax, eax
jne 0x435d19
lea eax, [ebp - 0x114]
push eax
push str.Could_not_write__s
jmp 0x435457
test ebx, ebx
je 0x435d27
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
push esi
push str._C:_syslinux.cfg
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00403163
lea eax, [ebp - 0x114]
mov byte [ebp - 0x11], 0
push 0x4b04e8
push eax
call fcn.004814b7
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x435d66
push str.Could_not_create_ReactOS_syslinux.cfg
jmp 0x435422
push 0x522680
push str.mboot.c32
push str.DEFAULT_ReactOS_nLABEL_ReactOS_n__KERNEL__s_n__APPEND__s
push esi
call fcn.00401029
push esi
call fcn.00481623
add esp, 0x14
cmp dword [0x522460], 3
je 0x435d9d
movss xmm1, dword [0x4d1ecc]
push 7
pop ecx
call fcn.0043bf8e
xor esi, esi
inc esi
jmp 0x435def
call fcn.0042fc51
push eax
push str.Could_not_write_Syslinux_boot_record:__s
jmp 0x435457
call fcn.0042fc51
push eax
push str.Could_not_read_Syslinux_boot_record:__s
jmp 0x435457
call fcn.0042fc51
push eax
lea eax, [ebp - 0x111]
push eax
push str.Could_not_rewrite__s:__s_n
jmp 0x435690
push str.Could_open_volume_for_Syslinux_installation
jmp 0x435422
mov edi, dword [ebp - 0x174]
mov esi, dword [ebp - 0x158]
push dword [0x51f9e8]
call fcn.0047b382
and dword [0x51f9e8], 0
pop ecx
push dword [0x50cae0]
call fcn.004812c6
and dword [0x50cae0], 0
pop ecx
push dword [0x50cae4]
call fcn.004812c6
and dword [0x50cae4], 0
pop ecx
push dword [ebp - 0x164]
call fcn.004812c6
pop ecx
cmp edi, 0xffffffff
je 0x435e5e
test edi, edi
je 0x435e5e
xor ecx, ecx
lea eax, [ebp - 0x168]
push ecx
push eax
push ecx
push ecx
push ecx
push ecx
push 0x9001c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x435e6e
test ebx, ebx
je 0x435e6e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c80
leave
ret