Function at 0x180004b80
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x180
mov qword [rsp + 0x160], 0xfffffffffffffffe
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x178], rax
call fcn.180007f60
mov dword [rsp + 0x98], eax
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x98]
call fcn.180007f10
movzx eax, al
test eax, eax
je 0x180004bee
lea rcx, [rsp + 0x198]
call fcn.180007a50
jmp 0x180004f83
mov rcx, qword [rsp + 0x190]
call fcn.180007ea0
test rax, rax
je 0x180004c52
mov rcx, qword [rsp + 0x190]
call fcn.180007ea0
mov rbx, rax
mov rcx, qword [rsp + 0x190]
call fcn.180005c30
cmp rbx, rax
jae 0x180004c52
lea rcx, [rsp + 0x198]
call fcn.180007cf0
movzx ebx, al
mov rcx, qword [rsp + 0x190]
call fcn.1800079f0
mov byte [rax], bl
mov eax, dword [rsp + 0x198]
jmp 0x180004f83
mov rax, qword [rsp + 0x190]
cmp qword [rax + 0x88], 0
jne 0x180004c73
call fcn.180007f60
jmp 0x180004f83
mov rax, qword [rsp + 0x190]
cmp qword [rax + 0x70], 0
jne 0x180004cda
lea rcx, [rsp + 0x198]
call fcn.180007cf0
mov rdx, qword [rsp + 0x190]
mov rdx, qword [rdx + 0x88]
movzx ecx, al
call fcn.1800048e0
movzx eax, al
test eax, eax
je 0x180004cbd
mov eax, dword [rsp + 0x198]
mov dword [rsp + 0x168], eax
jmp 0x180004cc9
call fcn.180007f60
mov dword [rsp + 0x168], eax
mov eax, dword [rsp + 0x168]
jmp 0x180004f83
mov dword [rsp + 0x40], 8
lea rcx, [rsp + 0x198]
call fcn.180007cf0
mov byte [rsp + 0x50], al
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x68]
call fcn.180005a40
nop
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.1800027e0
mov rcx, rax
call fcn.1800064e0
mov rbx, rax
lea rcx, [rsp + 0x68]
call fcn.180001534
add rbx, rax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x68]
call fcn.1800027e0
mov rcx, rax
call fcn.1800064e0
mov r11, rax
lea r9, [rsp + 0x51]
mov rdx, qword [rsp + 0x190]
add rdx, 0x7c
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r11
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x190]
mov rcx, qword [rcx + 0x70]
call fcn.180006380
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 0
jl 0x180004f54
cmp dword [rsp + 0x16c], 1
jle 0x180004dc4
cmp dword [rsp + 0x16c], 3
je 0x180004ef7
jmp 0x180004f54
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x68]
call fcn.1800027e0
mov rcx, rax
call fcn.1800064e0
mov r11, rax
mov rax, qword [rsp + 0x58]
sub rax, r11
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jbe 0x180004e66
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x68]
call fcn.1800027e0
mov rcx, rax
call fcn.1800064e0
mov r9, qword [rsp + 0x190]
mov r9, qword [r9 + 0x88]
mov r8, qword [rsp + 0x90]
mov edx, 1
mov rcx, rax
call fcn.18005f008
cmp qword [rsp + 0x90], rax
je 0x180004e66
call fcn.180007f60
mov dword [rsp + 0xe0], eax
lea rcx, [rsp + 0x68]
call fcn.180001498
mov eax, dword [rsp + 0xe0]
jmp 0x180004f83
mov rax, qword [rsp + 0x190]
mov byte [rax + 0x79], 1
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x48], rax
je 0x180004ea2
mov eax, dword [rsp + 0x198]
mov dword [rsp + 0xe4], eax
lea rcx, [rsp + 0x68]
call fcn.180001498
mov eax, dword [rsp + 0xe4]
jmp 0x180004f83
cmp qword [rsp + 0x90], 0
jbe 0x180004eaf
jmp 0x180004ef5
lea rcx, [rsp + 0x68]
call fcn.180001534
cmp rax, 0x20
jae 0x180004ed3
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x68]
call fcn.180002470
jmp 0x180004ef5
call fcn.180007f60
mov dword [rsp + 0xe8], eax
lea rcx, [rsp + 0x68]
call fcn.180001498
mov eax, dword [rsp + 0xe8]
jmp 0x180004f83
jmp 0x180004f73
mov rdx, qword [rsp + 0x190]
mov rdx, qword [rdx + 0x88]
movzx ecx, byte [rsp + 0x50]
call fcn.1800048e0
movzx eax, al
test eax, eax
je 0x180004f27
mov eax, dword [rsp + 0x198]
mov dword [rsp + 0x170], eax
jmp 0x180004f33
call fcn.180007f60
mov dword [rsp + 0x170], eax
mov eax, dword [rsp + 0x170]
mov dword [rsp + 0xec], eax
lea rcx, [rsp + 0x68]
call fcn.180001498
mov eax, dword [rsp + 0xec]
jmp 0x180004f83
call fcn.180007f60
mov dword [rsp + 0xf0], eax
lea rcx, [rsp + 0x68]
call fcn.180001498
mov eax, dword [rsp + 0xf0]
jmp 0x180004f83
jmp 0x180004d06
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.18005c4c0
add rsp, 0x180
pop rbx
ret