Function at 0x543b70
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0xd0
mov rbp, rsp
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0x78], rbp
mov qword [rbp + 0xe0], rcx
lea rcx, [rbp + 0xe0]
call fcn.00410cd0
nop
mov rax, qword [0x00584b48]
cmp byte [rax + 0x134], 0
je 0x543c1e
lea rcx, [rbp + 0x70]
mov edx, 3
lea r8, [0x00543f9c]
mov r9, qword [rbp + 0xe0]
lea rax, [0x00543fe4]
mov qword [rsp + 0x20], rax
call fcn.00412500
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x70]
call fcn.00412810
mov rcx, qword [rbp + 0x68]
mov dl, 1
call fcn.00542890
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0xe0]
lea r8, [0x00543fe4]
call fcn.00412200
mov rcx, qword [rbp + 0x60]
call fcn.00412150
mov rcx, rax
mov edx, 0xc0000000
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xc0], 0xffffffffffffffff
jne 0x543ca9
mov rax, qword [0x00584b48]
cmp byte [rax + 0x134], 0
je 0x543eee
lea rcx, [0x00544018]
mov dl, 1
call fcn.00542890
xor ecx, ecx
call fcn.00542ad0
jmp 0x543eee
mov rcx, qword [rbp + 0xc0]
xor edx, edx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointerEx
test eax, eax
jne 0x543cef
mov rax, qword [0x00584b48]
cmp byte [rax + 0x134], 0
je 0x543d88
lea rcx, [0x00544074]
mov dl, 1
call fcn.00542890
xor ecx, ecx
call fcn.00542ad0
jmp 0x543d88
mov rax, qword [0x00584b48]
mov rax, qword [rax + 0x98]
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x543d2e
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax - 8]
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0xc0]
mov rax, qword [0x00584b48]
mov rdx, qword [rax + 0x98]
mov r8d, dword [rbp + 0xa8]
lea r9, [rbp + 0xbc]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
jne 0x543d88
mov rax, qword [0x00584b48]
cmp byte [rax + 0x134], 0
je 0x543d88
lea rcx, [0x005440cc]
mov dl, 1
call fcn.00542890
xor ecx, ecx
call fcn.00542ad0
mov rax, qword [0x00584b48]
mov rax, qword [rax + 0x98]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x98], rax
cmp qword [rbp + 0x98], 0
je 0x543dc7
mov rax, qword [rbp + 0x98]
mov rax, qword [rax - 8]
mov qword [rbp + 0x98], rax
mov eax, dword [rbp + 0xbc]
cmp eax, dword [rbp + 0x98]
je 0x543ec3
mov rax, qword [0x00584b48]
cmp byte [rax + 0x134], 0
je 0x543ec3
mov qword [rbp + 0xc8], 0
nop
lea rcx, [rbp + 0x58]
mov edx, dword [rbp + 0xbc]
call fcn.00431360
lea rcx, [rbp + 0xc8]
mov edx, 3
lea r8, [0x00544114]
mov r9, qword [rbp + 0x58]
lea rax, [0x0054414c]
mov qword [rsp + 0x20], rax
call fcn.00412c30
mov rax, qword [0x00584b48]
mov rax, qword [rax + 0x98]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
je 0x543e6f
mov rax, qword [rbp + 0x88]
mov rax, qword [rax - 8]
mov qword [rbp + 0x88], rax
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x88]
call fcn.00431360
lea rcx, [rbp + 0x50]
mov edx, 3
mov r8, qword [rbp + 0xc8]
mov r9, qword [rbp + 0x48]
lea rax, [0x00544168]
mov qword [rsp + 0x20], rax
call fcn.00412c30
mov rcx, qword [rbp + 0x50]
mov dl, 1
call fcn.00542890
nop
lea rcx, [rbp + 0xc8]
call fcn.00410ac0
xor ecx, ecx
call fcn.00542ad0
mov rcx, qword [rbp + 0xc0]
call sub.kernel32.dll_CloseHandle
mov rax, qword [0x00584b48]
cmp byte [rax + 0x134], 0
je 0x543eed
lea rcx, [0x00544184]
mov dl, 1
call fcn.00542890
nop
lea rcx, [rbp + 0x48]
mov edx, 3
call fcn.00410ba0
lea rcx, [rbp + 0x60]
call fcn.00410b60
lea rcx, [rbp + 0x68]
call fcn.00410ac0
lea rcx, [rbp + 0x70]
jo 0x543efb
int3
in al, dx
dec dword [rax - 0x73]
invalid
loopne 0x543f1c
add byte [rax], al
call fcn.00410b60
lea rsp, [rbp + 0xd0]
pop rbp
ret