Function at 0x180055fd0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xd8]
sub rsp, 0x198
movaps xmmword [rax - 0x58], xmm6
mov r15, r9
movaps xmmword [rax - 0x68], xmm7
mov r10, r8
movaps xmmword [rax - 0x78], xmm8
mov esi, edx
movaps xmmword [rax - 0x88], xmm9
movaps xmmword [rax - 0x98], xmm10
movaps xmmword [rax - 0xa8], xmm11
movaps xmmword [rax - 0xb8], xmm12
movaps xmmword [rax - 0xc8], xmm13
movaps xmmword [rax - 0xd8], xmm14
movaps xmmword [rax - 0xe8], xmm15
lea eax, [rdx + 0x87a]
mov dword [rsp + 0x30], eax
cmp edx, eax
jae 0x1800569dc
movsd xmm12, qword [0x1800f3e70]
movsd xmm8, qword [0x1800f3e40]
movsd xmm13, qword [0x1800f3e48]
movsd xmm14, qword [0x1800f3e38]
movsd xmm15, qword [0x1800f3df8]
mov r12, qword [rbp - 0x68]
mov edi, dword [rsp + 0x34]
mov r14d, dword [rsp + 0x38]
xor ebx, ebx
cmp esi, 0x28d
ja 0x18005623b
je 0x18005620f
cmp esi, 0xcf
ja 0x180056116
je 0x1800560e1
mov eax, esi
sub eax, 0x21
je 0x1800560d8
sub eax, 0x97
je 0x18005699c
cmp eax, 4
mov eax, dword [rsp + 0x30]
jne 0x180056978
mov dword [rsp + 0x4c], ebx
jmp 0x180056978
mov dword [rsp + 0x48], ebx
jmp 0x180056974
movzx eax, byte [rcx]
xor r9d, r9d
lea rcx, [rbp + 0xe8]
mov dword [rsp + 0x28], 0xad
xor r8d, r8d
mov byte [rbp + 0xe8], al
mov rdx, r10
mov qword [rsp + 0x20], r15
call fcn.180098910
mov qword [rsp + 0x40], rax
jmp 0x180056974
mov eax, esi
sub eax, 0x157
je 0x180056168
sub eax, 0x13
je 0x1800569dc
cmp eax, 0x88
jne 0x180056974
mov eax, dword [rsp + 0x3c]
lea r15d, [rax + rax*8]
imul eax, eax, 0x3f
shl r15d, 2
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x34], eax
imul eax, r15d
add eax, eax
movsxd rcx, eax
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov r14d, r15d
jmp 0x180056970
cmp dword [r10], 2
jne 0x180056180
mov rcx, qword [r15 + 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rsp + 0x3c], eax
test eax, eax
jne 0x1800561e3
mov ebx, ILFree
cmp ebx, 0x98
je 0x18005619b
cmp ebx, 0x4b68
je 0x1800569d4
jmp 0x1800561d5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [r15]
lea rdx, str.cmdinfo_putnodeattr_response_
mov rcx, rax
call fcn.1800ba9c0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [r15]
lea rdx, str.unsupported_node_type_in_DupNode
mov rcx, rax
call fcn.1800ba9c0
add ebx, 0x4ad0
cmp ebx, 0x95a0
jbe 0x180056185
mov eax, dword [rsp + 0x3c]
dec eax
cmp eax, 0x63
jbe 0x180056974
mov eax, 0x5d
cmp eax, 0x5d
je 0x1800569b5
add eax, 0x37
cmp eax, 0x94
jb 0x1800561f7
jmp 0x180056974
mov ebx, edi
xor edx, edx
imul ebx, r14d
mov rcx, r12
lea eax, [rbx + rbx]
movsxd r8, eax
add r8, r8
call sub.VCRUNTIME140.dll_memset
movsxd rcx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x60], rax
jmp 0x180056974
cmp esi, 0x4f9
ja 0x180056907
je 0x1800568e6
cmp esi, 0x328
je 0x180056272
cmp esi, 0x3c3
je 0x18005656a
cmp esi, 0x45e
je 0x1800568dc
jmp 0x180056978
mov r13d, dword [rsp + 0x34]
xor edx, edx
mov r15d, dword [rsp + 0x38]
mov ebx, r13d
mov r14, qword [rsp + 0x60]
imul ebx, r15d
mov rcx, r14
movsxd r8, ebx
call sub.VCRUNTIME140.dll_memset
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [rsp + 0x3c]
lea rdx, str.Primary_DDRAW_surface_is_not_RGB_format
mov rcx, rax
mov dword [rsp + 0x28], ebx
mov r9d, r13d
mov dword [rsp + 0x20], r15d
call fcn.1800ba9c0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x18005655f
nop dword [rax]
lea rax, [rsp + 0x74]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x58]
lea rcx, str.IDebugProcess3
call fcn.1800bf280
cmp eax, 4
jne 0x180056579
movsd xmm6, qword [rsp + 0x58]
xorps xmm9, xmm9
cvtsi2sd xmm9, dword [rsp + 0x70]
movaps xmm0, xmm6
mulsd xmm0, qword [0x1800f3df0]
divsd xmm9, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_cos
mov eax, dword [rsp + 0x74]
neg eax
xorps xmm1, xmm1
movaps xmm11, xmm9
cvtsi2sd xmm1, eax
mulsd xmm11, xmm13
movaps xmm7, xmm0
mulsd xmm7, xmm1
movaps xmm1, xmm11
andps xmm1, xmm12
comisd xmm1, xmm14
divsd xmm7, xmm8
jae 0x180056381
movaps xmm8, xmm7
mulsd xmm8, xmm13
movaps xmm0, xmm8
andps xmm0, xmm12
comisd xmm0, xmm14
jb 0x180056408
mov ebx, 0xd0
cmp ebx, 0xd0
je 0x1800563ae
cmp ebx, 0x93e0
je 0x1800563a4
cmp ebx, 0x126f0
je 0x1800569dc
jmp 0x1800563eb
mov dword [rsp + 0x40], 1
jmp 0x1800563eb
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
movsd xmm3, qword [rsp + 0x58]
lea rdx, str.MediaPlayerDelegateHostMsg_OnMediaPlaying
movsd xmm2, qword [rsp + 0x68]
movq r9, xmm3
movq r8, xmm2
movsd qword [rsp + 0x28], xmm7
mov rcx, rax
movsd qword [rsp + 0x20], xmm9
call fcn.1800ba9c0
add ebx, 0x9310
cmp ebx, 0x1b930
jbe 0x180056386
movsd xmm6, qword [rsp + 0x58]
movaps xmm8, xmm7
mulsd xmm8, xmm13
movsd xmm9, qword [rsp + 0x68]
xorps xmm10, xmm10
subsd xmm9, qword [0x1800f3e18]
cvtsi2sd xmm10, dword [rsp + 0x3c]
mulsd xmm9, xmm10
movaps xmm0, xmm9
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movaps xmm7, xmm6
subsd xmm7, qword [0x1800f3e10]
cvttsd2si edi, xmm0
mulsd xmm7, xmm10
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
cvttsd2si ebx, xmm0
xorps xmm1, xmm1
xorps xmm2, xmm2
cvtsi2sd xmm1, edi
cvtsi2sd xmm2, ebx
subsd xmm9, xmm1
movaps xmm0, xmm9
andps xmm0, xmm12
comisd xmm0, xmm15
ja 0x1800564ef
subsd xmm7, xmm2
andps xmm7, xmm12
comisd xmm7, xmm15
ja 0x1800564ef
test edi, edi
js 0x1800564d3
cmp edi, r13d
jge 0x1800564d3
test ebx, ebx
js 0x1800564d3
cmp ebx, r15d
jge 0x1800564d3
imul ebx, r13d
movaps xmm0, xmm11
add edi, ebx
lea eax, [rdi + rdi]
movsxd rbx, eax
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
cvttsd2si eax, xmm0
movaps xmm0, xmm8
mov word [r12 + rbx*2], ax
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
inc dword [rsp + 0x48]
cvttsd2si eax, xmm0
mov word [r12 + rbx*2 + 2], ax
movsxd rax, edi
mov byte [rax + r14], 2
jmp 0x18005653d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], ebx
lea rdx, str.TTV_EC_CHAT_INVALID_LOGIN
mov dword [rsp + 0x20], edi
jmp 0x18005651f
subsd xmm6, qword [0x1800f3e18]
mov ecx, 2
mulsd xmm6, xmm10
subsd xmm6, xmm2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
movsd qword [rsp + 0x28], xmm6
lea rdx, str.temp1___TYPE___e___1._____e__1.___
movsd qword [rsp + 0x20], xmm9
movsd xmm3, qword [rsp + 0x58]
mov rcx, rax
movsd xmm2, qword [rsp + 0x68]
movq r9, xmm3
movq r8, xmm2
call fcn.1800ba9c0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
movsd xmm8, qword [0x1800f3e40]
test eax, eax
je 0x1800562e0
mov edi, r13d
mov r14d, r15d
jmp 0x180056974
mov r13d, dword [rsp + 0x34]
mov r15d, dword [rsp + 0x38]
mov r14, qword [rsp + 0x60]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [rsp + 0x48]
lea rdx, str.convert_float2_rtz
mov rcx, rax
call fcn.1800ba9c0
nop dword [rax + rax]
xor r9d, r9d
xor r11d, r11d
mov dword [rbp + 0xe8], r9d
mov dword [rsp + 0x50], r11d
test r15d, r15d
jle 0x1800568cf
lea rdi, [r14 + 1]
movsxd r10, r13d
mov eax, r13d
mov qword [rbp - 0x18], r10
neg eax
xor edx, edx
movsxd r8, eax
mov rcx, r12
lea eax, [r13*2]
mov qword [rbp - 0x70], r8
movsxd rbx, eax
mov qword [rbp - 0x80], rdx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x78], rcx
lea rax, [rbx + rbx]
mov qword [rbp - 0x28], rax
mov rax, r8
neg rax
add rdi, rax
mov qword [rbp - 0x60], rax
mov eax, r13d
mov qword [rbp - 0x68], rdi
neg eax
add eax, eax
movsxd r14, eax
mov rax, r10
sub r14, rbx
sub rax, r8
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x58], rax
lea rax, [rbx + rbx]
nop word [rax + rax]
xor r15d, r15d
test r13d, r13d
jle 0x180056866
mov r10, rcx
mov qword [rsp + 0x78], rcx
lea rsi, [rdi + r8]
lea rdi, [rcx - 4]
lea rcx, [rbx + rdx]
mov rax, rcx
lea r13d, [r15 + 2]
sub rax, rdx
sub rcx, rdx
add r14, rax
mov qword [rbp - 0x40], rcx
mov rcx, qword [rbp - 0x60]
mov rax, r8
add rcx, r8
sub rax, rcx
mov qword [rbp - 0x50], rax
mov rax, r8
sub rax, rcx
mov rcx, qword [rbp - 0x58]
dec rcx
add rcx, rax
mov rax, qword [rsp + 0x60]
not rax
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x38], rax
mov eax, dword [rsp + 0x34]
nop dword [rax]
xor r9d, r9d
xor ebx, ebx
xor r8d, r8d
cmp byte [rsi - 1], bl
jne 0x18005681e
test r15d, r15d
je 0x1800566ca
cmp byte [rsi - 2], 2
jne 0x1800566ca
movsx r9d, word [rdi]
mov r8d, 1
movsx ebx, word [rdi + 2]
dec eax
cmp r15d, eax
jge 0x18005671d
cmp byte [rsi], 2
jne 0x18005671d
mov ecx, 0xd9
add rdx, r13
nop
cmp ecx, 0xd9
je 0x180056707
cmp ecx, 0x19f
je 0x1800566fd
cmp ecx, 0x265
jne 0x18005670f
inc r8d
jmp 0x18005670f
movsx eax, word [r12 + rdx*2 + 2]
add ebx, eax
jmp 0x18005670f
movsx eax, word [r12 + rdx*2]
add r9d, eax
add ecx, 0xc6
cmp ecx, 0x32b
jb 0x1800566e0
test r11d, r11d
jle 0x180056766
mov rax, qword [rbp - 0x50]
cmp byte [rsi + rax - 1], 2
jne 0x180056766
mov ecx, 0xb2
cmp ecx, 0xb2
je 0x180056747
cmp ecx, 0x6f4
jne 0x180056758
inc r8d
jmp 0x180056758
movsx eax, word [rdi + r14*2 + 4]
add r9d, eax
movsx eax, word [rdi + r14*2 + 6]
add ebx, eax
add ecx, 0x642
cmp ecx, 0xc84
jbe 0x180056732
mov eax, dword [rsp + 0x38]
mov ecx, ebx
dec eax
mov edx, r9d
cmp r11d, eax
jge 0x180056797
mov rax, qword [rbp - 0x48]
cmp byte [rsi + rax], 2
jne 0x180056797
mov rax, qword [rbp - 0x40]
movsx r9d, word [rdi + rax*2 + 4]
movsx ebx, word [rdi + rax*2 + 6]
add r9d, edx
add ebx, ecx
inc r8d
test r8d, r8d
je 0x180056816
movd xmm6, r8d
movd xmm0, r9d
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm6, xmm6
divsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
mov rcx, qword [rsp + 0x78]
cvttsd2si eax, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mov word [rcx], ax
divsd xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
mov r9d, dword [rbp + 0xe8]
mov r10, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
inc dword [rsp + 0x4c]
mov r11d, dword [rsp + 0x50]
mov rdx, qword [rbp - 0x80]
cvttsd2si eax, xmm0
mov word [r10 + 2], ax
mov rax, qword [rbp - 0x38]
add rax, rsi
inc r9d
mov dword [rbp + 0xe8], r9d
mov byte [rax + rcx], 1
mov eax, dword [rsp + 0x34]
jmp 0x180056825
mov rdx, qword [rbp - 0x80]
mov eax, dword [rsp + 0x34]
mov r9d, dword [rbp + 0xe8]
add r10, 4
inc r15d
inc rsi
mov qword [rsp + 0x78], r10
add rdi, 4
add r13, 2
cmp r15d, eax
jl 0x1800566a0
mov r8, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
mov r14, qword [rbp - 0x20]
mov r10, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x68]
mov r13d, dword [rsp + 0x34]
mov r15d, dword [rsp + 0x38]
inc r11d
add rdx, rbx
mov dword [rsp + 0x50], r11d
add rcx, rax
mov qword [rbp - 0x80], rdx
add r8, r10
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], r8
cmp r11d, r15d
jl 0x180056630
test r9d, r9d
je 0x1800568cf
mov r14, qword [rsp + 0x60]
mov r8d, r15d
lea rdx, [r14 - 1]
test r10, r10
jle 0x1800568c1
mov rax, rdx
mov rcx, r10
nop dword [rax]
cmp byte [rax], 1
jne 0x1800568b8
mov byte [rax], 2
inc rax
sub rcx, 1
jne 0x1800568b0
add rdx, r10
sub r8, 1
jne 0x1800568a2
jmp 0x1800565a0
mov edi, dword [rsp + 0x34]
mov r14d, dword [rsp + 0x38]
mov eax, dword [rsp + 0x30]
mov esi, 0x45e
jmp 0x180056978
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [rsp + 0x4c]
lea rdx, str.banskur_skiptanlegur_pes
mov rcx, rax
call fcn.1800ba9c0
jmp 0x180056974
cmp esi, 0x594
je 0x18005691d
cmp esi, 0x62f
je 0x1800569dc
jmp 0x180056978
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, 4
lea rcx, [rsp + 0x3c]
mov r9, rax
lea r8d, [rdx - 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 1
mov rcx, r12
mov r9, rax
mov eax, dword [rsp + 0x34]
imul eax, r14d
add eax, eax
movsxd rdx, eax
add rdx, rdx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov dword [rsp + 0x40], ebx
mov edi, dword [rsp + 0x34]
mov eax, dword [rsp + 0x30]
add esi, 0x9b
cmp esi, eax
jae 0x1800569dc
mov r15, qword [rbp + 0xf8]
mov r10, qword [rbp + 0xf0]
mov rcx, qword [rbp + 0xe0]
jmp 0x180056092
movzx eax, byte [r10]
cmp al, 0x2f
je 0x1800569d4
cmp al, 0x2a
jne 0x1800569af
cmp byte [r10 + 1], 0
je 0x1800569d4
mov dword [rsp + 0x40], ebx
jmp 0x1800569dc
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [rsp + 0x3c]
lea rdx, str.V713_DstShort
mov rcx, rax
call fcn.1800ba9c0
mov dword [rsp + 0x40], 1
mov rax, qword [rsp + 0x40]
lea r11, [rsp + 0x198]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
movaps xmm10, xmmword [r11 - 0x58]
movaps xmm11, xmmword [r11 - 0x68]
movaps xmm12, xmmword [r11 - 0x78]
movaps xmm13, xmmword [r11 - 0x88]
movaps xmm14, xmmword [r11 - 0x98]
movaps xmm15, xmmword [r11 - 0xa8]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret