Function at 0x140081a30
Capabilities:
Get file size
Write file on windows

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x758]
sub rsp, 0x858
lea rdx, [0x14012bb38]
mov rsi, rcx
call fcn.140024c30
mov edx, eax
shr edx, 0x1f
test dl, dl
jne 0x140082c4d
mov rax, qword [rsi + 0x20]
lea rcx, [rsi + 0x28]
mov qword [rsp + 0x870], rbx
mov edx, 2
mov qword [rsp + 0x850], rdi
mov qword [rsp + 0x848], r12
movzx ebx, byte [rax + 0x40]
mov qword [rsp + 0x840], r13
and bl, 1
mov qword [rsp + 0x838], r14
mov qword [rsp + 0x830], r15
mov r15d, dword [rax + 0x40]
shr r15d, 1
and r15b, 1
mov byte [rbp + 0x778], bl
call fcn.140025da0
lea rdi, [0x14013f700]
mov r14, rax
mov r12d, 7
movzx ecx, word [rax]
test bl, bl
je 0x140081b45
cmp cx, 0x50
je 0x140081adf
cmp cx, 0x46
jne 0x140081d61
mov edx, 2
lea rcx, [rsi + 0x28]
call fcn.140025da0
xor ebx, ebx
lea r8, [0x14012dcb0]
mov edx, ebx
mov r9, rax
nop dword [rax + rax]
movzx ecx, word [r9 + rdx*2]
cmp cx, word [r8 + rdx*2]
jne 0x140081b2b
movzx eax, word [r9 + rdx*2 + 2]
cmp ax, word [r8 + rdx*2 + 2]
jne 0x140081b2b
add rdx, 2
cmp rdx, 0xa
jne 0x140081b00
mov byte [rsi + 0x28a], 1
mov rcx, rsi
call fcn.140024080
mov ecx, eax
shr ecx, 0x1f
test cl, cl
je 0x140081bde
jmp 0x140082c1d
xor ebx, ebx
cmp cx, 0x50
je 0x140081b88
cmp cx, 0x46
je 0x140081b88
lea edx, [rbx + 2]
lea rcx, [rsi + 0x28]
call fcn.140025da0
mov edx, ebx
lea r8, [0x140130298]
nop dword [rax + rax]
movzx ecx, word [rax + rdx*2]
inc rdx
cmp cx, word [r8 + rdx*2 - 2]
jne 0x140081ce4
cmp rdx, r12
jne 0x140081b70
mov edx, 2
lea rcx, [rsi + 0x28]
call fcn.140025da0
lea r8, [0x14012dcb0]
mov rdx, rbx
movzx ecx, word [rax + rdx*2]
cmp cx, word [r8 + rdx*2]
jne 0x140081bc9
movzx ecx, word [rax + rdx*2 + 2]
cmp cx, word [r8 + rdx*2 + 2]
jne 0x140081bc9
add rdx, 2
cmp rdx, 0xa
jne 0x140081ba0
mov byte [rsi + 0x28a], 1
mov rcx, rsi
call fcn.140024080
mov ecx, eax
shr ecx, 0x1f
test cl, cl
jne 0x140082c1d
movups xmm0, xmmword [0x140149550]
mov edi, dword [rsi + 0x260]
mov rcx, 0xffffffffffffffff
movups xmm1, xmmword [str.wave]
mov byte [rbp + 0x100], 1
movups xmmword [rbp + 0x101], xmm0
mov qword [rbp + 0x248], 0x272
movups xmm0, xmmword [0x1401495b0]
mov byte [rsp + 0x30], 1
movups xmmword [rbp + 0x120], xmm1
mov qword [rsp + 0x48], 0x26
movups xmmword [rbp + 0x231], xmm0
mov qword [rbp + 0x20], 0x20
movups xmm0, xmmword [0x140149570]
mov byte [rbp - 0x18], 1
mov qword [rbp], 0x18
movups xmmword [rsp + 0x31], xmm0
mov qword [rbp + 0x78], 0x94
movups xmm0, xmmword [0x140149580]
mov qword [rbp - 0x60], 0x1c
mov dword [rbp - 0x58], ebx
movups xmmword [rbp + 9], xmm0
mov byte [rbp - 0x50], 1
movups xmm0, xmmword [0x140149590]
mov qword [rbp - 0x38], 0x1c
mov dword [rbp - 0x30], ebx
movups xmmword [rbp - 0x17], xmm0
mov qword [rbp - 0x20], rbx
movups xmm0, xmmword [0x1401495a0]
movups xmmword [rbp + 0x61], xmm0
movups xmm0, xmmword [0x1401495c0]
movups xmmword [rbp - 0x77], xmm0
movups xmm0, xmmword [0x1401495d0]
movups xmmword [rbp - 0x4f], xmm0
cmp word [r14], 0x4d
jne 0x140081eb0
cmp word [r14 + 2], 0x50
jne 0x140081eb0
movzx eax, word [r14 + 4]
cmp ax, 0x32
jne 0x140081d6b
mov byte [rsi + 0x2b0], 1
jmp 0x140081e1d
mov r12d, 2
lea rcx, [rsi + 0x28]
mov edx, r12d
call fcn.140025da0
mov rdx, rbx
lea r8, [0x1401302a8]
movzx ecx, word [rax + rdx*2]
inc rdx
cmp cx, word [r8 + rdx*2 - 2]
jne 0x140081d1a
cmp rdx, 6
jne 0x140081d00
jmp 0x140081b88
mov edx, r12d
lea rcx, [rsi + 0x28]
call fcn.140025da0
mov rdx, rbx
nop dword [rax]
movzx ecx, word [rax + rdx*2]
cmp cx, word [rdi + rdx*2]
jne 0x140081d5a
movzx ecx, word [rax + rdx*2 + 2]
cmp cx, word [rdi + rdx*2 + 2]
jne 0x140081d5a
add rdx, r12
cmp rdx, 0x10
jne 0x140081d30
mov dword [rsi + 0x290], ebx
jmp 0x140081bde
cmp word [r14], 0x4d
je 0x140081d4f
mov eax, 0x80040208
jmp 0x140082c1d
cmp ax, 0x33
jne 0x140081e00
mov byte [rsi + 0x2b0], 0
mov rdi, qword [rsi + 0x2a0]
test rdi, rdi
je 0x140081d9d
mov rcx, rdi
call fcn.140043f90
mov edx, gethostbyname
mov rcx, rdi
call fcn.1400b6094
mov ecx, gethostbyname
call fcn.1400b6058
test rax, rax
je 0x140081e9f
mov rcx, rax
call fcn.140043f50
mov qword [rsi + 0x2a0], rax
test rax, rax
je 0x140081e95
mov r9d, dword [rsi + 0x258]
lea r8, [r14 + 8]
mov edx, dword [rsi + 0x260]
mov rcx, rax
call fcn.1400443f0
mov rax, qword [rsi + 0x2a0]
mov edi, dword [rax + 4]
imul r12d, dword [rax + 0xc], 0x3e8
jmp 0x140081eb7
inc rcx
cmp word [r14 + rcx*2], 0
jne 0x140081e00
cmp ecx, 0x13
sete al
mov byte [rsi + 0x2b0], al
jne 0x140081d7c
mov rdi, qword [rsi + 0x2a8]
test rdi, rdi
je 0x140081e3e
mov rcx, rdi
call fcn.140043f80
mov edx, 0x2438
mov rcx, rdi
call fcn.1400b6094
mov ecx, 0x2438
call fcn.1400b6058
test rax, rax
je 0x140081e8e
mov rcx, rax
call fcn.140043f20
mov qword [rsi + 0x2a8], rax
test rax, rax
je 0x140081e95
mov r9d, dword [rsi + 0x258]
lea r8, [r14 + 8]
mov edx, dword [rsi + 0x260]
mov rcx, rax
call fcn.140044300
mov rax, qword [rsi + 0x2a8]
mov edi, dword [rax + 8]
imul r12d, dword [rax + 0xc], 0x3e8
jmp 0x140081eb7
mov qword [rsi + 0x2a8], rbx
mov eax, 0x80040202
jmp 0x140082c1d
mov qword [rsi + 0x2a0], rbx
mov eax, 0x80040202
jmp 0x140082c1d
mov r12d, dword [rbp + 0x778]
cmp edi, dword [rsi + 0x260]
je 0x140081f09
mov ecx, 0x178
call fcn.1400b6058
test rax, rax
je 0x140081e95
mov r8d, 5
mov edx, edi
mov rcx, rax
call fcn.14002a530
mov qword [rbp - 0x20], rax
test rax, rax
je 0x140081e95
mov rdx, rax
mov rcx, rsi
call fcn.140025eb0
mov rcx, qword [rsi + 0x10]
lea rdi, [rsi + 0x250]
mov rdx, rdi
mov r8, qword [rcx]
call qword [rhtons + 8]
jmp 0x140081f10
lea rdi, [rsi + 0x250]
mov byte [rbp + 0x230], r15b
mov qword [rbp + 0x788], rbx
test r15b, r15b
je 0x140081f32
cmp byte [0x1401a9134], 0
je 0x140081f32
mov byte [rbp + 0x60], 1
jmp 0x140081f3f
mov byte [rbp + 0x60], 0
test r15b, r15b
je 0x1400821a9
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp + 0x250]
mov r8, rdi
call fcn.140089c40
cmp byte [0x140190d78], 0
je 0x14008206a
movzx eax, word [r14]
cmp ax, 0x50
jne 0x140081fb1
cmp dword [rsi + 0x258], 1
lea rax, [0x1401486b8]
mov r9d, dword [rsi + 0x290]
lea rcx, [0x1401486c0]
mov r8d, dword [rsi + 0x260]
lea rdx, str.APCM_F_d_W_d_M_s
cmove rcx, rax
shl r9d, 3
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x4aa]
call fcn.1400100f0
jmp 0x14008202d
cmp ax, 0x4d
jne 0x140082013
cmp word [r14 + 2], 0x50
jne 0x140082013
test r12d, r12d
je 0x140082013
cmp dword [rsi + 0x258], 1
jne 0x140081fd6
lea rax, [0x1401486b8]
jmp 0x140081fef
cmp byte [0x14018d362], 0
lea rdx, str.joint_stereo
lea rax, [0x1401486c0]
cmovne rax, rdx
mov r8d, dword [rsi + 0x260]
lea rdx, str.AMPEG1L2_F_d_B_d_M_s
mov r9d, r12d
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x4aa]
call fcn.1400100f0
jmp 0x14008202d
mov r8d, dword [rsi + 0x260]
lea rdx, str.F_d
lea rcx, [rbp + 0x4aa]
call fcn.1400100f0
lea rcx, [rbp + 0x4aa]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140082040
movups xmm0, xmmword [str._TFMJ_Software_awC_engine_v4.3_r_n]
mov eax, dword [0x140149798]
movups xmm1, xmmword [0x140149788]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov dword [rcx + 0x20], eax
jmp 0x140082071
mov byte [rbp + 0x4aa], 0
mov r15, 0xffffffffffffffff
lea rax, [rbp + 0x4aa]
mov rcx, r15
inc rcx
cmp byte [rax + rcx], 0
jne 0x140082082
mov rax, qword [rbp + 0x248]
inc rax
add rcx, rax
cmp byte [rbp + 0x60], 0
mov qword [rbp + 0x248], rcx
je 0x1400821a9
mov ecx, 0x4d0
call fcn.1400b6058
test rax, rax
je 0x1400820c8
mov edx, dword [0x140190d7c]
mov rcx, rax
call fcn.14001a520
jmp 0x1400820cb
mov rax, rbx
mov rdx, rax
mov qword [rbp + 0x788], rax
mov rcx, rsi
call fcn.140025eb0
xor edx, edx
mov rcx, rsi
call fcn.140024c30
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 0xf0], rax
mov dword [rbp + 0xf8], eax
mov eax, 2
movups xmmword [rbp + 0x80], xmm0
mov dword [rbp + 0x84], eax
movzx eax, byte [0x1401a9135]
neg al
mov dword [rbp + 0x80], 0x80000000
mov eax, dword [0x140190d7c]
sbb ecx, ecx
mov dword [rbp + 0x8c], eax
mov eax, dword [rsi + 0x258]
add ecx, 2
movups xmmword [rbp + 0x90], xmm0
mov dword [rbp + 0x88], ecx
lea rcx, [rbp + 0x30]
movups xmmword [rbp + 0xa0], xmm0
mov dword [rbp + 0x90], eax
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0x98], r15
movups xmmword [rbp + 0xc0], xmm0
mov dword [rbp + 0xa0], 0x94
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
call fcn.1400ff6d8
lea rcx, [rbp + 0x30]
call fcn.14010067c
mov r9, rax
lea r8, str._Y:_m:_d:_H:_M:_S:000
mov edx, 0x1c
lea rcx, [rbp + 0xa4]
call fcn.1401012ec
mov r9d, dword [rsi + 0x290]
mov ecx, dword [rsi + 0x258]
movzx eax, word [rsi + 0x258]
mov edx, dword [rsi + 0x260]
mov word [rsp + 0x52], ax
mov eax, r9d
imul eax, ecx
movzx ecx, cx
mov dword [rsp + 0x54], edx
mov word [rsp + 0x60], bx
mov qword [rsi + 0x3b0], rbx
imul eax, edx
mov dword [rsp + 0x58], eax
movzx eax, r9w
imul ecx, eax
shl r9w, 3
cmp byte [rbp + 0x778], 0
mov word [rsp + 0x5e], r9w
mov word [rsp + 0x5c], cx
mov ecx, 1
lea r15d, [rcx + 3]
je 0x140082269
add qword [rsp + 0x48], 0x1a
mov eax, socket
mov word [rsp + 0x60], ax
mov r8d, 0xfffe
mov eax, dword [rsi + 0x25c]
mov r15d, ecx
mov dword [rsp + 0x64], eax
mov word [rsp + 0x50], r8w
mov word [rsp + 0x62], r9w
cmp word [r14], 0x50
jne 0x140082258
movups xmm0, xmmword [0x140149530]
movups xmmword [rsp + 0x68], xmm0
jmp 0x1400824b7
movups xmm0, xmmword [0x140149540]
movups xmmword [rsp + 0x68], xmm0
jmp 0x1400824b7
movzx eax, word [r14]
cmp ax, 0x50
jne 0x14008228a
add qword [rsp + 0x48], 2
movzx r8d, cx
mov word [rsp + 0x50], cx
mov r15d, ecx
jmp 0x1400824b7
cmp ax, 0x46
jne 0x1400822a9
add qword [rsp + 0x48], r15
mov r8d, 3
mov word [rsp + 0x50], r8w
mov r15d, ecx
jmp 0x1400824b7
mov edx, 2
lea rcx, [rsi + 0x28]
call fcn.140025da0
mov rdx, rbx
lea r9, [0x140130298]
mov r8d, 7
nop word [rax + rax]
movzx ecx, word [rax + rdx*2]
inc rdx
cmp cx, word [r9 + rdx*2 - 2]
jne 0x1400822f4
cmp rdx, r8
jne 0x1400822d0
add qword [rsp + 0x48], r15
mov word [rsp + 0x50], r8w
jmp 0x1400824b1
mov edx, 2
lea rcx, [rsi + 0x28]
call fcn.140025da0
mov rdx, rbx
lea r8, [0x1401302a8]
nop dword [rax]
movzx ecx, word [rax + rdx*2]
inc rdx
cmp cx, word [r8 + rdx*2 - 2]
jne 0x14008233c
mov ecx, 6
cmp rdx, rcx
jne 0x140082310
add qword [rsp + 0x48], r15
movzx r8d, cx
mov word [rsp + 0x50], cx
jmp 0x1400824b1
mov edx, 2
lea rcx, [rsi + 0x28]
call fcn.140025da0
mov rdx, rbx
lea r8, [0x14013f700]
mov r9d, reloc.WSOCK32.dll_recv
nop word [rax + rax]
movzx ecx, word [rax + rdx*2]
cmp cx, word [r8 + rdx*2]
jne 0x1400823d3
movzx ecx, word [rax + rdx*2 + 2]
cmp cx, word [r8 + rdx*2 + 2]
jne 0x1400823d3
add rdx, 2
cmp rdx, r9
jne 0x140082360
mov ecx, dword [rsi + 0x258]
mov r8d, reloc.COMCTL32.dll_InitCommonControls
add qword [rsp + 0x48], 6
mov eax, ecx
imul eax, dword [rsi + 0x260]
movzx ecx, cx
mov word [rsp + 0x50], r8w
mov dword [rsp + 0x5e], 0x20004
shl eax, 2
shr eax, 3
mov dword [rsp + 0x58], eax
mov eax, 0x200
imul ecx, eax
mov eax, 0x3f9
mov word [rsp + 0x62], ax
mov word [rsp + 0x5c], cx
jmp 0x1400824b1
cmp word [r14], 0x4d
jne 0x1400824ab
cmp word [r14 + 2], 0x50
jne 0x1400824ab
add qword [rsp + 0x48], 0x1a
mov r8d, 0x50
movzx eax, word [rsi + 0x258]
mov word [rsp + 0x50], r8w
cmp ax, 2
jb 0x14008240e
mov eax, 2
mov word [rsp + 0x52], ax
mov ecx, 2
lea eax, [r12 + 4]
mov dword [rsp + 0x5e], 0x160000
cdq
mov dword [rsp + 0x64], r12d
and edx, 7
add eax, edx
xor edx, edx
sar eax, 3
mov dword [rsp + 0x58], eax
lea eax, [r12 + r12*8]
shl eax, 4
div dword [rsi + 0x260]
movzx edx, byte [rsi + 0x2b0]
mov word [rsp + 0x5c], ax
test dl, dl
mov eax, r15d
cmovne ax, cx
cmp dword [rsi + 0x258], 1
mov word [rsp + 0x62], ax
jbe 0x140082488
movzx eax, byte [0x14018d362]
test dl, dl
movzx ecx, byte [0x14018d361]
cmovne ecx, eax
mov eax, ebx
test cl, cl
setne al
inc ax
jmp 0x14008248d
mov eax, 8
mov word [rsp + 0x68], ax
mov dword [rsp + 0x6a], 0x10000
mov word [rsp + 0x6e], r9w
mov qword [rsp + 0x70], 0
jmp 0x1400824b1
movzx r8d, word [rsp + 0x50]
mov r15d, 1
cmp r8w, 1
mov word [rsi + 0x298], r8w
setne byte [rbp + 8]
je 0x1400824d1
mov rax, qword [rdi]
mov qword [rbp + 0x28], rax
mov rcx, qword [rsi + 0x10]
mov edx, 0x18
mov edi, dword [rbp - 0x58]
mov rax, qword [rcx]
call qword [rax + 0x40]
lea r9, [rbp + 0x130]
mov dword [rsp + 0x20], 0x100
mov rcx, rax
lea r8, [rbp + 0x778]
mov edx, edi
call fcn.140027e80
mov r13, 0xffffffffffffffff
test al, al
je 0x140082570
nop
mov edi, dword [rbp - 0x58]
lea rax, [rbp + 0x130]
inc edi
mov rcx, r13
mov dword [rbp - 0x58], edi
cmp byte [rax + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140082522
mov rax, qword [rbp - 0x60]
mov edx, 0x18
add rax, 0x22
lea rcx, [rax + rcx*2]
mov qword [rbp - 0x60], rcx
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x40]
lea r9, [rbp + 0x130]
mov dword [rsp + 0x20], 0x100
mov rcx, rax
lea r8, [rbp + 0x778]
mov edx, edi
call fcn.140027e80
test al, al
jne 0x140082510
cmp dword [rbp - 0x58], 0
mov r14d, ebx
mov eax, dword [rsi + 0x250]
seta byte [rbp - 0x78]
imul eax, dword [rsi + 0x290]
add qword [rbp], rax
cmp ebx, 0x1b
jae 0x1400825c0
mov rcx, qword [rsi + 0x10]
mov edx, r14d
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rdi, rax
test rax, rax
je 0x1400825ee
cmp byte [rax], 0
je 0x1400825ee
mov edx, r14d
lea rcx, [rbp + 0x778]
call fcn.14008a040
test al, al
jne 0x1400825c7
jmp 0x1400825ee
lea rdi, [0x140149718]
mov rcx, r13
nop word [rax + rax]
cmp byte [rdi + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400825d0
mov rax, qword [rbp - 0x38]
add rax, 0xa
inc dword [rbp - 0x30]
lea rcx, [rax + rcx*2]
mov qword [rbp - 0x38], rcx
inc r14d
cmp r14d, 0x1b
jle 0x14008258f
cmp dword [rbp - 0x30], 0
seta dil
cmp byte [rbp + 0x230], 0
mov byte [rbp - 0x50], dil
jne 0x140082611
mov r11, rbx
jmp 0x140082620
mov r11, qword [rbp + 0x248]
add r11, 7
and r11, 0xfffffffffffffff8
cmp byte [rsp + 0x30], 0
jne 0x14008262c
mov r10, rbx
jmp 0x140082639
mov r10, qword [rsp + 0x48]
add r10, 7
and r10, 0xfffffffffffffff8
cmp byte [rbp + 8], 0
jne 0x140082644
mov r9, rbx
jmp 0x140082650
mov r9, qword [rbp + 0x20]
add r9, 7
and r9, 0xfffffffffffffff8
cmp byte [rbp - 0x18], 0
jne 0x14008265b
mov r8, rbx
jmp 0x140082667
mov r8, qword [rbp]
add r8, 7
and r8, 0xfffffffffffffff8
cmp byte [rbp + 0x60], 0
jne 0x140082672
mov rdx, rbx
jmp 0x14008267e
mov rdx, qword [rbp + 0x78]
add rdx, 7
and rdx, 0xfffffffffffffff8
cmp byte [rbp - 0x78], 0
jne 0x140082689
mov rcx, rbx
jmp 0x140082695
mov rcx, qword [rbp - 0x60]
add rcx, 7
and rcx, 0xfffffffffffffff8
test dil, dil
jne 0x14008269f
mov rax, rbx
jmp 0x1400826ab
mov rax, qword [rbp - 0x38]
add rax, 7
and rax, 0xfffffffffffffff8
add rax, rcx
add r11, 0x28
add rax, rdx
mov rcx, rsi
add rax, r8
lea rdx, [rsi + 0x38]
add rax, r9
lea r8, [rbp + 0x100]
add rax, r10
mov r9d, reloc.WSOCK32.dll_recv
add rax, r11
mov qword [rbp + 0x118], rax
call fcn.140082c60
cmp byte [rbp + 0x230], 0
je 0x140082700
mov r9, r13
lea r8, [rbp + 0x230]
lea rdx, [rsi + 0x38]
mov rcx, rsi
call fcn.140082c60
mov r9, r13
lea r8, [rsp + 0x30]
lea rdx, [rsi + 0x38]
mov rcx, rsi
call fcn.140082c60
cmp byte [rbp + 8], 0
je 0x14008275e
mov rcx, qword [rsi + 0x38]
lea r8, [rbp + 0x778]
mov r9d, r15d
mov qword [rbp + 0x778], rbx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rdi, r13
lea r8, [rbp + 8]
test eax, eax
lea rdx, [rsi + 0x38]
mov r9, r13
mov rcx, rsi
cmovne rdi, qword [rbp + 0x778]
mov qword [rbp - 0x28], rdi
call fcn.140082c60
jmp 0x140082769
mov rax, qword [rbp + 0x778]
mov qword [rbp - 0x28], rax
mov rcx, qword [rsi + 0x38]
lea r8, [rbp + 0x778]
mov r9d, r15d
mov qword [rbp + 0x778], rbx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r15, r13
lea r8, [rbp - 0x18]
test eax, eax
lea rdx, [rsi + 0x38]
mov rcx, rsi
cmovne r15, qword [rbp + 0x778]
xor r9d, r9d
mov qword [rbp + 0x38], r15
call fcn.140082c60
mov rcx, rsi
call fcn.1400246e0
mov ecx, eax
shr ecx, 0x1f
test cl, cl
jne 0x140082c1d
mov rcx, qword [rsi + 0x38]
lea r8, [rbp + 0x778]
mov r9d, 1
mov qword [rbp + 0x778], rbx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, r13
lea r8, [rbp - 0x18]
test eax, eax
lea rdx, [rsi + 0x38]
cmovne rcx, qword [rbp + 0x778]
sub rcx, r15
mov qword [rbp], rcx
mov rcx, rsi
call fcn.140082d40
cmp byte [rbp + 0x60], 0
je 0x1400828ab
mov rdi, qword [rbp + 0x788]
lea r8, [rbp + 0x60]
movzx eax, byte [0x1401a9135]
lea rdx, [rsi + 0x38]
neg al
mov r9d, 0x7c
mov rax, qword [rbp + 0x78]
sbb ecx, ecx
add ecx, 2
imul ecx, dword [rdi + 0x4b8]
imul ecx, dword [rdi + 0x4a8]
lea rcx, [rax + rcx*2]
mov qword [rbp + 0x78], rcx
mov rcx, rsi
mov eax, dword [rdi + 0x4a8]
mov dword [rbp + 0x90], eax
mov eax, dword [rdi + 0x4b8]
mov dword [rbp + 0x94], eax
mov rax, qword [rdi + 0x4c8]
mov qword [rbp + 0x98], rax
call fcn.140082c60
movzx r8d, byte [0x1401a9135]
lea rdx, [rsi + 0x38]
mov rcx, rdi
call fcn.14001acc0
mov ecx, eax
shr ecx, 0x1f
test cl, cl
jne 0x140082c1d
lea r8, [rbp + 0x60]
mov rcx, rsi
lea rdx, [rsi + 0x38]
call fcn.140082d40
cmp byte [rbp - 0x78], 0
je 0x1400829f9
mov r9d, 4
lea r8, [rbp - 0x78]
lea rdx, [rsi + 0x38]
mov rcx, rsi
call fcn.140082c60
mov rcx, qword [rsi + 0x10]
mov edx, 0x18
mov r14d, ebx
mov rax, qword [rcx]
call qword [rax + 0x40]
lea r9, [rbp + 0x130]
mov dword [rsp + 0x20], 0x100
mov rcx, rax
lea r8, [rbp + 0x780]
xor edx, edx
call fcn.140027e80
test al, al
je 0x1400829e9
nop word [rax + rax]
lea rax, [rbp + 0x130]
mov rdi, r13
nop word [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140082920
inc edi
lea rdx, [rbp + 0x130]
mov r8d, edi
lea rcx, [rbp + 0x530]
mov r9d, r13d
call fcn.140028760
mov rax, qword [rbp + 0x780]
lea r9, [rbp + 0x778]
mov rcx, qword [rsi + 0x38]
lea rdx, [rbp + 0x40]
inc r14d
mov qword [rbp + 0x48], rax
add edi, edi
mov dword [rbp + 0x40], r14d
mov r8d, 0x20
mov dword [rbp + 0x44], ebx
mov qword [rbp + 0x50], r13
mov dword [rbp + 0x58], edi
mov dword [rbp + 0x5c], ebx
mov dword [rbp + 0x778], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x38]
lea r9, [rbp + 0x778]
mov r8d, edi
mov dword [rbp + 0x778], ebx
lea rdx, [rbp + 0x530]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x10]
mov edx, 0x18
mov rax, qword [rcx]
call qword [rax + 0x40]
lea r9, [rbp + 0x130]
mov dword [rsp + 0x20], 0x100
mov rcx, rax
lea r8, [rbp + 0x780]
mov edx, r14d
call fcn.140027e80
test al, al
jne 0x140082910
lea r8, [rbp - 0x78]
mov rcx, rsi
lea rdx, [rsi + 0x38]
call fcn.140082d40
cmp byte [rbp - 0x50], 0
je 0x140082b3a
mov r9d, 4
lea r8, [rbp - 0x50]
lea rdx, [rsi + 0x38]
mov rcx, rsi
call fcn.140082c60
cmp ebx, 0x1b
mov r15d, ebx
jae 0x140082a59
mov rcx, qword [rsi + 0x10]
mov edx, r15d
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r14, rax
test rax, rax
je 0x140082b19
cmp byte [rax], 0
je 0x140082b19
mov edx, r15d
lea rcx, [rbp - 0x80]
call fcn.14008a040
test al, al
je 0x140082b19
jmp 0x140082a67
mov dword [rbp - 0x80], 0x54465349
lea r14, [0x140149718]
mov rdi, r13
nop word [rax + rax]
inc rdi
cmp byte [r14 + rdi], 0
jne 0x140082a70
inc edi
mov ecx, edi
lea eax, [rdi + rdi]
mov dword [rbp + 0x780], eax
mov dword [rbp - 0x7c], eax
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1400b609c
mov r13, rax
test rax, rax
je 0x140081e95
mov r9d, 0xffffffff
mov r8d, edi
mov rdx, r14
mov rcx, rax
call fcn.140028760
mov rcx, qword [rsi + 0x38]
lea r9, [rbp + 0x778]
mov r8d, 8
mov dword [rbp + 0x778], ebx
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rbp + 0x780]
lea r9, [rbp + 0x778]
mov rcx, qword [rsi + 0x38]
mov rdx, r13
mov dword [rbp + 0x778], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r13
call fcn.1400b60a4
mov r13, 0xffffffffffffffff
inc r15d
cmp r15d, 0x1b
jle 0x140082a1f
lea r8, [rbp - 0x50]
mov rcx, rsi
lea rdx, [rsi + 0x38]
call fcn.140082d40
mov r15, qword [rbp + 0x38]
mov rcx, qword [rsi + 0x38]
lea rdx, [rbp + 0x778]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
mov rdx, rbx
test eax, eax
cmovne rcx, qword [rbp + 0x778]
xor r9d, r9d
mov qword [rbp + 0x118], rcx
xor r8d, r8d
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor r9d, r9d
lea r8, [rbp + 0x100]
lea rdx, [rsi + 0x38]
mov rcx, rsi
call fcn.140082c60
cmp byte [rbp + 8], 0
je 0x140082bc0
mov rdx, qword [rbp - 0x28]
xor r9d, r9d
mov rcx, qword [rsi + 0x38]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rax, qword [rsi + 0x268]
lea r8, [rbp + 8]
mov r9, r13
mov qword [rbp + 0x28], rax
lea rdx, [rsi + 0x38]
mov rcx, rsi
call fcn.140082c60
mov rcx, qword [rsi + 0x38]
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor r9d, r9d
lea r8, [rbp - 0x18]
lea rdx, [rsi + 0x38]
mov rcx, rsi
call fcn.140082c60
lea rcx, [rsi + 0x3b0]
call fcn.140027db0
mov rcx, qword [rbp + 0x788]
test rcx, rcx
je 0x140082c08
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140082c1b
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
xor eax, eax
mov r14, qword [rsp + 0x838]
mov r13, qword [rsp + 0x840]
mov r12, qword [rsp + 0x848]
mov rdi, qword [rsp + 0x850]
mov rbx, qword [rsp + 0x870]
mov r15, qword [rsp + 0x830]
add rsp, 0x858
pop rsi
pop rbp
ret