Function at 0x452f32
Capabilities:
Copy file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x11c
mov ax, word [0x5132fa]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xd4], str.i386
mov dword [ebp - 0xd0], str.amd64
mov dword [ebp - 0xcc], str.minint
mov edx, eax
mov dword [ebp - 0xdc], str.minint_txtsetup.sif
not edx
mov dword [ebp - 0xd8], str.minint_system32_
mov dword [ebp - 0xc8], str.i386_txtsetup.sif
mov dword [ebp - 0xc4], str.i386_system32_
mov dword [ebp - 0xc0], str._amd64_txtsetup.sif
mov dword [ebp - 0xbc], str._amd64_system32_
mov dword [ebp - 0xf4], 1
test dl, 0x23
je 0x452fc8
mov eax, edx
test ax, 0x1c0
sete al
movzx eax, al
add eax, eax
mov dword [ebp - 0xf4], eax
xor edi, edi
movsx ebx, bl
mov dword [esp + 4], 0x147
lea esi, [ebp - 0xb8]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov eax, dword [0x526cf0]
lea edi, [ebp - 0x98]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageW]
sub esp, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__snprintf]
mov dword [esp + 8], str.SetupSourceDevice___deviceharddisk_dpartition1_
mov dword [esp + 4], 0x40
mov dword [ebp - 0xec], eax
call eax
mov eax, dword [ebp - 0xf4]
mov byte [ebp - 0x19], 0
and eax, 0xfffffffe
mov eax, dword [ebp + eax*4 - 0xd4]
mov dword [ebp - 0xf8], eax
mov eax, dword [sym.imp.msvcrt.dll_toupper]
mov dword [esp], ebx
mov dword [ebp - 0xf0], eax
call eax
mov ecx, dword [ebp - 0xf8]
mov dword [esp + 8], str._c:_s_ntdetect.com
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 4], 0x40
mov dword [esp], edi
mov eax, dword [ebp - 0xec]
call eax
mov byte [ebp - 0x59], 0
mov dword [esp], ebx
mov eax, dword [ebp - 0xf0]
call eax
mov dword [esp + 8], str._c:_ntdetect.com
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x20
mov dword [esp], esi
mov eax, dword [ebp - 0xec]
call eax
mov eax, dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov byte [ebp - 0x99], 0
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [ebp - 0xfc], eax
call eax
sub esp, 0xc
cmp byte [0x513312], 0
jne 0x4531d0
mov dword [esp], ebx
mov eax, dword [ebp - 0xf0]
call eax
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ebp + ecx*4 - 0xd4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._c:_s_txtsetup.sif
mov dword [esp + 0x10], edx
mov dword [esp + 4], 0x40
mov dword [esp], edi
mov eax, dword [ebp - 0xec]
call eax
mov byte [ebp - 0x59], 0
mov dword [esp], ebx
mov eax, dword [ebp - 0xf0]
call eax
mov dword [esp + 8], str._c:_txtsetup.sif
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x20
mov dword [esp], esi
mov eax, dword [ebp - 0xec]
call eax
mov byte [ebp - 0x99], 0
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], edi
mov eax, dword [ebp - 0xfc]
call eax
sub esp, 0xc
test eax, eax
jne 0x453180
call fcn.0043f53d
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov dword [esp], str.Did_not_copy__s_as__s:__s_n
call fcn.0043efa9
xor esi, esi
lea edi, [ebp - 0x58]
mov dword [esp + 4], str._SetupData_
mov dword [esp + 0xc], esi
lea esi, [ebp - 0xb8]
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.004289c7
test eax, eax
jne 0x4531bc
mov dword [esp + 4], esi
mov dword [esp], str.Failed_to_add_SetupSourceDevice_in__s_n
call fcn.0043efa9
jmp 0x453713
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], str.Successfully_added__s_to__s_n
call fcn.0043efa9
mov esi, dword [sym.imp.msvcrt.dll_toupper]
mov dword [esp], ebx
lea edi, [ebp - 0x98]
call esi
mov ecx, dword [ebp - 0xf8]
mov edx, dword [sym.imp.msvcrt.dll__snprintf]
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 8], str._c:_s_setupldr.bin
mov dword [esp + 4], 0x40
mov dword [ebp - 0xec], edx
call edx
mov byte [ebp - 0x59], 0
mov dword [esp], ebx
call esi
lea esi, [ebp - 0xb8]
mov dword [esp + 8], str._c:BOOTMGR
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x20
mov dword [esp], esi
mov edx, dword [ebp - 0xec]
call edx
mov byte [ebp - 0x99], 0
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
sub esp, 0xc
test eax, eax
jne 0x45327e
call fcn.0043f53d
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov dword [esp], str.Did_not_copy__s_as__s:__s_n
call fcn.0043efa9
mov ax, word [0x5132fa]
test ax, 0x1c0
je 0x4532c4
cmp byte [0x513312], 0
je 0x4532ab
mov dword [esp], str.Detected_minint_directory_with__minint_option:_nothing_to_patch_n
xor ebx, ebx
mov esi, 1
call fcn.0043efa9
jmp 0x453717
test al, 0x27
jne 0x453713
mov dword [esp], str.Detected_minint_directory_only_but_no__minint_option:_not_sure_what_to_do_n
call fcn.0043efa9
jmp 0x453713
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc0000000
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0xec], eax
sub esp, 0x1c
inc eax
jne 0x453323
call fcn.0043f53d
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], str.Could_not_open__s_for_patching:__s_n
call fcn.0043efa9
jmp 0x453713
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xec]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edx
push edx
mov dword [ebp - 0xf0], eax
inc eax
jne 0x453363
call fcn.0043f53d
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], str.Could_not_get_size_for_file__s:__s_n
call fcn.0043efa9
xor ebx, ebx
jmp 0x453416
mov eax, dword [ebp - 0xf0]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x45335c
lea eax, [ebp - 0xe0]
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xf0]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xec]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
sub esp, 0x14
test eax, eax
je 0x4533b9
mov eax, dword [ebp - 0xf0]
cmp dword [ebp - 0xe0], eax
je 0x4533d5
call fcn.0043f53d
mov dword [esp], str.Could_not_read_file__s:__s_n
mov dword [esp + 8], eax
lea eax, [ebp - 0xb8]
mov dword [esp + 4], eax
jmp 0x453411
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0xec]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
sub esp, 0x14
test eax, eax
jne 0x45341d
call fcn.0043f53d
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], str.Could_not_rewind_file__s:__s_n
call fcn.0043efa9
xor esi, esi
jmp 0x453721
mov dword [esp + 4], esi
mov dword [esp], str.Patching_file__s_n
call fcn.0043efa9
cmp dword [ebp - 0xf0], 0x2061
jbe 0x453460
cmp byte [ebx + 0x2060], 0x74
jne 0x453460
cmp byte [ebx + 0x2061], 3
jne 0x453460
mov word [ebx + 0x2060], 0x1aeb
mov dword [esp], str.__0x00002060:_0x74_0x03____0xEB_0x1A__disable_Win2k3_CRC_check__n
call fcn.0043efa9
mov eax, dword [ebp - 0xf4]
mov esi, 1
shl eax, 3
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xf0]
sub eax, 0x20
mov dword [ebp - 0x100], eax
cmp esi, eax
jae 0x453582
xor edx, edx
mov edi, dword [ebp + edx*4 - 0xdc]
mov dword [ebp - 0x100], edx
mov dword [esp], edi
call sub.msvcrt.dll_strlen
lea ecx, [ebx + esi]
mov dword [esp + 4], edi
dec eax
mov dword [esp], ecx
mov dword [esp + 8], eax
mov dword [ebp - 0xf8], ecx
call dword [sym.imp.msvcrt.dll__strnicmp]
mov edx, dword [ebp - 0x100]
test eax, eax
jne 0x45356e
cmp dword [ebp - 0xf4], 2
mov ecx, dword [ebp - 0xf8]
jne 0x4534f7
mov dword [esp + 8], 0x159
mov dword [esp + 4], str.wue.c
mov dword [esp], str.index___2
call dword [0x494088]
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x104], edx
lea eax, [ebp + eax - 0xc8]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0xf8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [ebp - 0x100], ecx
mov dword [esp + 4], esi
mov dword [esp], str.__0x_08X:__s_____s_n
call fcn.0043efa9
mov eax, dword [ebp - 0xf8]
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x100]
mov dword [esp], ecx
call sub.msvcrt.dll_strcpy
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov edi, eax
mov eax, dword [ebp - 0xf8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, dword [ebp - 0x104]
cmp edi, eax
cmovb edi, eax
add esi, edi
test edx, edx
jne 0x45357c
mov edx, 1
jmp 0x45348d
inc esi
jmp 0x453474
cmp byte [0x513312], 0
jne 0x4536c2
lea edi, [ebx + 0xc]
xor esi, esi
jmp 0x4536b6
lea eax, [ebx + esi]
mov dword [ebp - 0xfc], eax
mov dword [esp + 8], 7
mov dword [esp + 4], str.rdisk_0_
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__strnicmp]
test eax, eax
jne 0x453607
xor edx, edx
mov dword [esp + 4], 0x147
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov eax, dword [0x526cf0]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageW]
add eax, 0x30
sub esp, 0x10
mov byte [edi - 6], al
movsx eax, al
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.rdisk_0_
mov dword [esp + 4], esi
mov dword [esp], str.__0x_08X:__s____rdisk__c__n
call fcn.0043efa9
mov dword [esp + 8], 0xb
mov dword [esp + 4], str._win_nt_.bt
mov eax, dword [ebp - 0xfc]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__strnicmp]
lea edx, [esi + 1]
test eax, eax
jne 0x4536b3
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x104], edx
mov eax, dword [ebp + eax*4 - 0xd4]
mov dword [ebp - 0xf8], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], str.__0x_08X:__s_____s_s_n
call fcn.0043efa9
mov eax, dword [ebp - 0xf8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 0xf8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov cl, byte [edi]
add eax, ebx
mov byte [eax + esi], cl
mov eax, dword [ebp - 0xf8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, dword [ebp - 0x104]
add eax, ebx
mov byte [eax + edx], 0
inc edi
mov esi, edx
cmp dword [ebp - 0x100], esi
jne 0x453599
lea eax, [ebp - 0xe0]
mov dword [esp + 0x10], 4
mov esi, 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xf0]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xec]
mov dword [esp], eax
call fcn.00440072
test eax, eax
jne 0x453721
call fcn.0043f53d
mov dword [esp], str.Could_not_write_patched_file:__s_n
mov dword [esp + 4], eax
call fcn.0043efa9
jmp 0x453416
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0xec], 0xffffffff
mov eax, dword [ebp - 0xec]
dec eax
cmp eax, 0xfffffffd
ja 0x45373d
mov eax, dword [ebp - 0xec]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
mov dword [esp], ebx
call sub.msvcrt.dll_free
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret