Function at 0x449370
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], edx
push eax
mov ebx, ecx
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], ebx
push 8
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x449425
call fcn.0044b6b0
push eax
push str.OpenProcessToken_failed:__s
call fcn.0044b0b0
add esp, 8
call fcn.0044b6b0
push eax
push str.Could_not_set_security_descriptor:__s
call fcn.0044b0b0
add esp, 8
mov eax, ebx
mov ebx, dword [ebp + 8]
sub eax, 0
je 0x449565
sub eax, 1
je 0x449555
sub eax, 1
je 0x449545
push 0x2ab
push str.D:_a_rufus_rufus_src_stdfn.c
push 0x52be08
call fcn.004dfbbc
add esp, 0xc
jmp 0x449579
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 1
push dword [ebp - 0x20]
call edi
test eax, eax
jne 0x4493d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x449459
call fcn.0044b6b0
push eax
push str.GetTokenInformation__pre__failed:__s
jmp 0x4493ce
push dword [ebp - 0x10]
push 1
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x4493d6
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push 1
push dword [ebp - 0x20]
call edi
test eax, eax
je 0x4494d6
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
test eax, eax
jne 0x4494a0
call fcn.0044b6b0
push eax
push str.Unable_to_convert_SID_to_string:__s
jmp 0x4494e1
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidA]
test eax, eax
jne 0x4494cb
call fcn.0044b6b0
push eax
push str.Unable_to_convert_string_back_to_SID:__s
call fcn.0044b0b0
add esp, 8
mov dword [ebp - 0x18], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4494e9
call fcn.0044b6b0
push eax
push str.GetTokenInformation__real__failed:__s
call fcn.0044b0b0
add esp, 8
push esi
call fcn.004d1211
mov esi, dword [ebp - 0x18]
add esp, 4
test esi, esi
je 0x4493d6
push 1
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4493d6
push 0
push esi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x4493d6
lea eax, [ebp - 0x50]
mov dword [ebp - 0x3c], 0xc
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], eax
jmp 0x4493e9
mov dword [ebp - 8], 4
mov dword [ebp - 4], 4
jmp 0x449579
mov dword [ebp - 8], 0x40000000
mov dword [ebp - 4], 2
jmp 0x449579
mov dword [ebx], 0
mov dword [ebp - 8], 0x80000000
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4495e2
cmp byte [eax], 0
jne 0x449595
push 2
push 1
call fcn.004b6706
add esp, 8
mov edi, eax
jmp 0x4495e4
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
cmp esi, 1
jle 0x4495e2
push 2
push esi
call fcn.004b6706
mov edi, eax
add esp, 8
test edi, edi
je 0x4495e2
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x4495e4
push edi
call fcn.004d1211
add esp, 4
xor edi, edi
push 0
push 0x80
push dword [ebp - 4]
push dword [ebp - 0x24]
push 1
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
test edi, edi
je 0x449618
push edi
call fcn.004d1211
mov eax, dword [ebp - 0x24]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jne 0x449642
call fcn.0044b6b0
push eax
push dword [ebp - 0xc]
push str.Could_not_open__s:__s
call fcn.0044b0b0
add esp, 0xc
jmp 0x4496c8
mov eax, dword [ebp - 0x1c]
sub eax, 0
je 0x449674
sub eax, 1
je 0x449664
sub eax, 1
jne 0x4496b5
push 2
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
push edi
push dword [edi]
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4496b1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [edi], eax
call fcn.004d122c
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x4496a4
push str.Could_not_allocate_buffer_for_reading_file
call fcn.0044b0b0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4496d5
push 0
push edi
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4496f4
call fcn.0044b6b0
push eax
push str.I_O_Error:__s
call fcn.0044b0b0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
jne 0x4496eb
push dword [ebx]
call fcn.004d1211
add esp, 4
mov dword [ebx], 0
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 0x1c], eax
setne al
add eax, 0xc8f
push eax
push 0
push 1
push 1
call fcn.0041ed70
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret