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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
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
push 8
mov dword [ebp - 0x1c], ebx
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 0x43f2bd
call fcn.00440bb0
push eax
push str.OpenProcessToken_failed:__s
call fcn.004407e0
add esp, 8
call fcn.00440bb0
push eax
push str.Could_not_set_security_descriptor:__s
call fcn.004407e0
add esp, 8
mov eax, ebx
mov ebx, dword [ebp + 8]
sub eax, 0
je 0x43f3fd
sub eax, 1
je 0x43f3ed
sub eax, 1
je 0x43f3dd
push 0x2ad
push str.C:UsersgamerDownloads_rufus72_rufus_7_src_stdfn.c
push str.FALSE
call fcn.0049ed6b
add esp, 0xc
jmp 0x43f411
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 0x43f26e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x43f2f1
call fcn.00440bb0
push eax
push str.GetTokenInformation__pre__failed:__s
jmp 0x43f266
push dword [ebp - 0x10]
push 1
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x43f26e
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push 1
push dword [ebp - 0x20]
call edi
test eax, eax
je 0x43f36e
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
test eax, eax
jne 0x43f338
call fcn.00440bb0
push eax
push str.Unable_to_convert_SID_to_string:__s
jmp 0x43f379
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidA]
test eax, eax
jne 0x43f363
call fcn.00440bb0
push eax
push str.Unable_to_convert_string_back_to_SID:__s
call fcn.004407e0
add esp, 8
mov dword [ebp - 0x18], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x43f381
call fcn.00440bb0
push eax
push str.GetTokenInformation__real__failed:__s
call fcn.004407e0
add esp, 8
push esi
call fcn.004998ec
mov esi, dword [ebp - 0x18]
add esp, 4
test esi, esi
je 0x43f26e
push 1
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x43f26e
push 0
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x43f26e
lea eax, [ebp - 0x44]
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], eax
jmp 0x43f281
mov dword [ebp - 8], 4
mov dword [ebp - 4], 4
jmp 0x43f411
mov dword [ebp - 8], 0x40000000
mov dword [ebp - 4], 2
jmp 0x43f411
mov dword [ebx], 0
mov dword [ebp - 8], 0x80000000
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x43f47a
cmp byte [eax], 0
jne 0x43f42d
push 2
push 1
call fcn.0049570f
add esp, 8
mov edi, eax
jmp 0x43f47c
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 0x43f47a
push 2
push esi
call fcn.0049570f
mov edi, eax
add esp, 8
test edi, edi
je 0x43f47a
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 0x43f47c
push edi
call fcn.004998ec
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 0x43f4b0
push edi
call fcn.004998ec
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 0x43f4da
call fcn.00440bb0
push eax
push dword [ebp - 0xc]
push str.Could_not_open__s:__s
call fcn.004407e0
add esp, 0xc
jmp 0x43f55c
mov eax, dword [ebp - 0x1c]
sub eax, 0
je 0x43f508
sub eax, 1
je 0x43f4f8
sub eax, 1
jne 0x43f549
push 2
push eax
push eax
push eax
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 0x43f545
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [edi], eax
call fcn.00499907
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x43f538
push str.Could_not_allocate_buffer_for_reading_file
call fcn.004407e0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43f569
push 0
push edi
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43f588
call fcn.00440bb0
push eax
push str.I_O_Error:__s
call fcn.004407e0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
jne 0x43f57f
push dword [ebx]
call fcn.004998ec
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.0041b3e0
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