Function at 0x429b54
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x350
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x004bf230]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov rbx, rcx
mov r15d, 7
mov qword [r11 - 0x2c8], r15
xor r13d, r13d
mov qword [r11 - 0x2d0], r13
mov word [r11 - 0x2e0], r13w
xor eax, eax
or r14, 0xffffffffffffffff
mov rcx, r14
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r11 - 0x2e8]
call fcn.00404e54
nop
cmp dword [rbx + 0x38], r13d
je 0x429d3e
mov word [rsp + 0xd0], r13w
mov edi, 0xc8
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0xd2]
call fcn.00449860
mov word [rsp + 0x270], r13w
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x272]
call fcn.00449860
mov word [rsp + 0x1a0], r13w
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x1a2]
call fcn.00449860
lea edi, [r15 + 0x5e]
mov rdx, rdi
lea rcx, [rsp + 0x270]
call fcn.00445c34
mov rdx, rdi
lea rcx, [rsp + 0x1a0]
call fcn.00445d84
lea rcx, [rsp + 0x1a0]
mov qword [rsp + 0x28], rcx
lea rax, [rsp + 0x270]
mov qword [rsp + 0x20], rax
lea r9, str.__s__s_
mov r8, r14
mov rdx, rdi
lea rcx, [rsp + 0xd0]
call fcn.00445024
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
xor eax, eax
mov rcx, r14
lea rdi, [rsp + 0xd0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x48]
call fcn.00404e54
nop
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.0040c644
nop
mov r9, r14
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.004020b0
nop
cmp qword [rsp + 0x90], 8
jb 0x429d06
mov rcx, qword [rsp + 0x78]
call fcn.00443d3c
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x88], r13
mov word [rsp + 0x78], r13w
cmp qword [rsp + 0x68], 8
jb 0x429d2e
mov rcx, qword [rsp + 0x50]
call fcn.00443d3c
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
cmp dword [rbx + 0x3c], r13d
je 0x429d5e
mov r8d, 2
lea rdx, [0x0049fba8]
lea rcx, [rsp + 0xa0]
call fcn.00404a40
lea rbp, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rbp, qword [rsp + 0xa8]
lea rcx, [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rbx + 8], r14
jne 0x429d90
mov rcx, rbx
call fcn.00429a48
cmp qword [rbx + 8], r14
jne 0x429da5
lea rcx, [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x429e78
mov rsi, r13
cmp dword [rbx + 0x40], r13d
je 0x429e10
xor eax, eax
mov rcx, r14
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea rdi, [rcx + rcx]
mov rcx, rdi
call fcn.004444b0
mov rsi, rax
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.00449860
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
mov r9d, r14d
mov r8, rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rbp, rsi
jmp 0x429e23
xor eax, eax
mov rcx, r14
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
dec rcx
add ecx, ecx
cmp ecx, r13d
jne 0x429e41
cmp rsi, r13
je 0x429e35
mov rcx, rsi
call fcn.00444544
lea rcx, [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x429e78
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, ecx
mov rdx, rbp
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rsi, r13
je 0x429e6d
mov rcx, rsi
call fcn.00444544
lea rcx, [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
cmp qword [rsp + 0xc0], 8
jb 0x429e90
mov rcx, qword [rsp + 0xa8]
call fcn.00443d3c
mov qword [rsp + 0xc0], r15
mov qword [rsp + 0xb8], r13
mov word [rsp + 0xa8], r13w
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.00443d60
mov rbx, qword [rsp + 0x3a0]
add rsp, 0x350
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret