Function at 0x140055990
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
mov eax, 0x10d0
call fcn.140057910
sub rsp, rax
mov rax, qword [0x1400600c0]
xor rax, rsp
mov qword [rsp + 0x10c8], rax
lea rax, [0x1400684d0]
mov qword [rsp + 0x1060], rax
mov qword [rsp + 0x1068], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x1070], 0
mov dword [rsp + 0x1054], 0x21c
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x1058], 0x20
movsxd rcx, dword [rsp + 0x10e0]
imul rcx, rcx, 0x4e6c
mov rax, qword [rsp + 0x1060]
lea rax, [rax + rcx + 0x408d]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x24], 0
movzx eax, byte [0x14005b71d]
mov byte [rsp + 0x50], al
lea rdi, [rsp + 0x51]
xor eax, eax
mov ecx, 0xfff
rep stosb byte [rdi], al
mov r8, qword [rsp + 0x10e8]
lea rdx, str._s.tmp
lea rcx, [rsp + 0x50]
call fcn.140001614
xor edx, edx
mov rcx, qword [rsp + 0x10e8]
call fcn.140001f68
test eax, eax
jne 0x140055a82
jmp 0x140055f1e
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140001f68
test eax, eax
jne 0x140055ac4
lea rcx, [rsp + 0x50]
call fcn.140002240
test eax, eax
je 0x140055aaa
jmp 0x140055f1e
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140001f68
test eax, eax
jne 0x140055ac4
jmp 0x140055f1e
mov rcx, qword [rsp + 0x38]
add rcx, 0x1000
call fcn.140001cc0
test eax, eax
jne 0x140055ae3
jmp 0x140055f1e
lea rdx, [0x14005b7bc]
lea rcx, [rsp + 0x50]
call fcn.14000251c
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140055b0b
jmp 0x140055f1e
lea rdx, [rsp + 0x1078]
lea rcx, [rsp + 0x50]
call fcn.140003638
test eax, eax
je 0x140055b2b
jmp 0x140055f1e
mov eax, dword [rsp + 0x1098]
mov dword [rsp + 0x24], eax
mov dl, 1
xor ecx, ecx
call fcn.140055270
mov rdx, qword [rsp + 0x38]
mov eax, dword [rsp + 0x20]
imul eax, dword [rdx + 0x4e24]
mov edx, dword [rsp + 0x1054]
add edx, eax
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x1058]
imul ecx, dword [rax + 0x4e34]
mov eax, edx
add eax, ecx
mov dword [rsp + 0x1050], eax
movsxd rcx, dword [rsp + 0x1050]
call fcn.140001bf0
mov qword [rsp + 0x1068], rax
cmp qword [rsp + 0x1068], 0
jne 0x140055ba0
jmp 0x140055f1e
movsxd r8, dword [rsp + 0x1050]
xor edx, edx
mov rcx, qword [rsp + 0x1068]
call fcn.140002560
mov rdx, qword [rsp + 0x1068]
mov qword [rsp + 0x1070], rdx
mov rax, qword [rsp + 0x1070]
mov byte [rax], 0x50
mov rax, qword [rsp + 0x1070]
mov byte [rax + 1], 0x52
mov rax, qword [rsp + 0x1070]
mov byte [rax + 2], 0x45
mov rax, qword [rsp + 0x1070]
mov byte [rax + 3], 0x56
mov rax, qword [rsp + 0x1070]
mov dword [rax + 8], 1
mov rcx, qword [rsp + 0x1070]
add rcx, 0x11c
mov r8d, 0x100
mov rdx, qword [rsp + 0x10e8]
call fcn.140002280
mov rdx, qword [rsp + 0x1070]
mov byte [rdx + 0x21b], 0
cmp dword [rsp + 0x24], 0
jne 0x140055c4f
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x4e48]
add eax, 1
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x1070]
mov eax, dword [rsp + 0x24]
mov dword [rcx + 0x18], eax
mov rcx, qword [rsp + 0x1070]
add rcx, 0x1c
mov r8d, 0x100
mov rdx, qword [rsp + 0x38]
call fcn.140002280
mov rdx, qword [rsp + 0x1070]
mov byte [rdx + 0x11b], 0
mov rcx, qword [rsp + 0x1070]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x4e48]
mov dword [rcx + 0x14], eax
mov rcx, qword [rsp + 0x1070]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x4e34]
mov dword [rcx + 0x10], eax
mov rcx, qword [rsp + 0x1070]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x4e24]
mov dword [rcx + 0xc], eax
movsxd rcx, dword [rsp + 0x1054]
mov rax, qword [rsp + 0x1068]
add rax, rcx
mov qword [rsp + 0x10a8], rax
mov dword [rsp + 0x28], 0
jmp 0x140055cfb
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x4e24]
cmp dword [rsp + 0x28], eax
jge 0x140055d50
movsxd r8, dword [rsp + 0x20]
movsxd rdx, dword [rsp + 0x28]
imul rdx, rdx, 0x80
mov rax, qword [rsp + 0x38]
add rdx, qword [rax + 0x4e28]
mov rcx, qword [rsp + 0x10a8]
call fcn.1400012b0
movsxd rdx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x10a8]
add rax, rdx
mov qword [rsp + 0x10a8], rax
jmp 0x140055cf0
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x20]
imul ecx, dword [rax + 0x4e24]
mov eax, dword [rsp + 0x1054]
add eax, ecx
movsxd rcx, eax
mov rax, qword [rsp + 0x1068]
add rax, rcx
mov qword [rsp + 0x10b0], rax
mov dword [rsp + 0x28], 0
jmp 0x140055d94
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x4e34]
cmp dword [rsp + 0x28], eax
jge 0x140055dec
movsxd r8, dword [rsp + 0x1058]
movsxd rdx, dword [rsp + 0x28]
imul rdx, rdx, 0x20
mov rax, qword [rsp + 0x38]
add rdx, qword [rax + 0x4e38]
mov rcx, qword [rsp + 0x10b0]
call fcn.1400012b0
movsxd rdx, dword [rsp + 0x1058]
mov rax, qword [rsp + 0x10b0]
add rax, rdx
mov qword [rsp + 0x10b0], rax
jmp 0x140055d89
mov dword [rsp + 0x10c4], 0
mov rax, qword [rsp + 0x1068]
add rax, 8
mov qword [rsp + 0x10b8], rax
mov eax, dword [rsp + 0x1050]
sub eax, 8
mov dword [rsp + 0x10c0], eax
mov dword [rsp + 0x28], 0
jmp 0x140055e31
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x10c0]
cmp dword [rsp + 0x28], eax
jge 0x140055e6f
mov rax, qword [rsp + 0x10b8]
movzx ecx, byte [rax]
mov eax, dword [rsp + 0x10c4]
add eax, ecx
mov dword [rsp + 0x10c4], eax
mov rax, qword [rsp + 0x10b8]
add rax, 1
mov qword [rsp + 0x10b8], rax
jmp 0x140055e26
mov rcx, qword [rsp + 0x1070]
mov eax, dword [rsp + 0x10c4]
mov dword [rcx + 4], eax
mov r8d, dword [rsp + 0x1050]
mov r9, qword [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x1068]
call fcn.140002bf4
mov rdx, rax
mov eax, dword [rsp + 0x1050]
cmp rdx, rax
je 0x140055eb3
jmp 0x140055f1e
mov rcx, qword [rsp + 0x30]
call fcn.140002134
test eax, eax
je 0x140055ec5
jmp 0x140055f1e
mov rcx, qword [rsp + 0x30]
call fcn.1400034d4
test eax, eax
je 0x140055ee0
mov qword [rsp + 0x30], 0
jmp 0x140055f1e
mov qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x1068]
call fcn.140001bb0
mov qword [rsp + 0x1068], 0
mov rdx, qword [rsp + 0x10e8]
lea rcx, [rsp + 0x50]
call fcn.1400015e4
test eax, eax
je 0x140055f1c
jmp 0x140055f1e
jmp 0x140055f48
cmp qword [rsp + 0x30], 0
je 0x140055f30
mov rcx, qword [rsp + 0x30]
call fcn.1400034d4
cmp qword [rsp + 0x1068], 0
je 0x140055f48
mov rcx, qword [rsp + 0x1068]
call fcn.140001bb0
mov rcx, qword [rsp + 0x10c8]
xor rcx, rsp
call fcn.140001280
add rsp, 0x10d0
pop rdi
ret