Function at 0x140011730
Capabilities:
Create thread
Read .ini file
Resume thread

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x100], rax
xor eax, eax
movsxd r15, edx
mov ebx, r9d
mov esi, r8d
mov r14, rcx
mov qword [rsp + 0xb8], rcx
mov dword [rsp + 0x64], r15d
mov ebp, eax
mov qword [rsp + 0x88], rax
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0x60], eax
mov r13d, eax
mov dword [rsp + 0x68], eax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x80], rax
test edx, edx
jle 0x14001256b
test esi, esi
jle 0x14001256b
mov qword [rsp + 0x198], rdi
cmp dword [rsp + 0x1a8], eax
je 0x1400117fe
mov rdx, rcx
lea rcx, [rsp + 0xe0]
call fcn.14001b170
lea r8, [rsp + 0xf0]
mov rcx, r14
movaps xmm0, xmmword [rsp + 0xe0]
movsd xmm1, qword [0x140048880]
movdqa xmmword [rsp + 0xf0], xmm0
call fcn.14001ab50
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
je 0x140012561
movzx eax, word [rax + 0xe]
cmp ax, 8
jbe 0x140011822
xor edx, edx
mov dword [rdi + 0x20], edx
mov ecx, 5
cmp r15d, dword [rdi + 4]
jg 0x14001184e
cmp esi, dword [rdi + 8]
jg 0x14001184e
mov r12d, dword [rsp + 0x1a0]
mov dword [rsp + 0x60], r12d
cmp dword [rsp + 0x1b0], ebp
je 0x14001184e
test r12d, r12d
cmove ebx, ecx
cmp ax, 0x18
je 0x14001193f
mov rcx, rdi
call fcn.14001b2f0
mov rcx, rdi
mov r12d, eax
call fcn.14001b2a0
test r12d, r12d
je 0x14001189c
xor ecx, ecx
test eax, eax
mov edx, 1
cmovne ecx, edx
cmp word [rdi + 0xe], 8
jne 0x140011894
test eax, eax
jne 0x140011894
mov rcx, rdi
call fcn.14001b6a0
jmp 0x14001193f
test ecx, ecx
jne 0x14001193f
movzx edi, word [rdi + 0xe]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp edi, 1
jne 0x1400118d2
mov rcx, r14
call fcn.14000ee90
mov rcx, r14
mov rbp, rax
mov qword [rsp + 0x88], rax
call fcn.14001b200
mov dword [rsp + 0xa0], eax
jmp 0x140011921
cmp edi, 4
jne 0x140011905
mov rcx, r14
test r12d, r12d
je 0x1400118fe
call fcn.14000f5e0
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov rbp, rax
mov qword [rsp + 0x88], rax
call fcn.14001ae30
jmp 0x140011921
call fcn.14000f390
jmp 0x140011916
cmp edi, 8
jne 0x140012561
mov rcx, r14
call fcn.14000f800
mov qword [rsp + 0x88], rax
mov rbp, rax
test rbp, rbp
je 0x140012561
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
je 0x140012544
movzx r8d, word [rdi + 0xe]
movsxd r12, dword [rdi + 0x20]
movsxd r9, esi
mov rcx, r9
imul r8d, r15d
add r8d, 0x1f
shr r8d, 5
shl r8d, 2
imul rcx, r8
test rcx, rcx
je 0x140012536
cmp r12d, 0x100
jg 0x140012536
cmp r15d, 0xf3e58
jg 0x140012536
cmp esi, 0xf3e58
jg 0x140012536
xor edx, edx
mov rax, rcx
div r9
cmp rax, r8
jb 0x140012536
movabs rax, 0x7ffffffb58
cmp rcx, rax
ja 0x140012536
mov rax, r12
add rax, 0xa
lea rdx, [rcx + rax*4]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0xf0], rax
test rax, rax
je 0x140012536
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r14, rax
mov dword [rax + 0x20], r12d
mov dword [rax], 0x28
mov dword [rax + 4], r15d
mov dword [rax + 8], esi
movzx ecx, word [rdi + 0xe]
mov word [rax + 0xe], cx
mov eax, 1
mov word [r14 + 0xc], ax
xor eax, eax
test r12d, r12d
mov qword [r14 + 0x10], rax
mov dword [r14 + 0x24], eax
mov ecx, dword [rdi + 0x18]
mov dword [r14 + 0x18], ecx
mov ecx, dword [rdi + 0x1c]
mov dword [r14 + 0x1c], ecx
jle 0x140011a3d
lea r8, [r12*4]
lea rdx, [rdi + 0x28]
lea rcx, [r14 + 0x28]
call fcn.14001bb80
mov ecx, dword [r14]
lea rax, [r12*4]
mov r12d, dword [rdi]
add r12, rax
add rcx, rax
add rcx, r14
add r12, rdi
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0xd8]
lea rdx, [rsp + 0xd0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov rcx, qword [rsp + 0xd0]
xor eax, eax
mov r14d, eax
test ecx, ecx
je 0x140011a9d
mov eax, ecx
and eax, 1
add r14d, eax
shr ecx, 1
jne 0x140011a91
movaps xmmword [rsp + 0x130], xmm6
movaps xmmword [rsp + 0x120], xmm7
lea rax, [0x14007f580]
movaps xmmword [rsp + 0x110], xmm8
cmp dword [rsp + 0x60], r13d
je 0x140011df4
cmp r14d, esi
cmova r14d, esi
mov dword [rsp + 0x60], r14d
cmp r14d, 1
je 0x140011d7c
mov edx, 8
mov ecx, r14d
mov r15d, r14d
call fcn.14001cabc
mov r12, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x140012175
mov edx, 0xc
movsxd rcx, esi
call fcn.14001cabc
mov ecx, dword [rdi + 8]
mov edx, esi
mov r8, rax
mov rbx, rax
mov qword [rsp + 0xa8], rax
call fcn.140010b40
mov ecx, r14d
xorps xmm0, xmm0
movd xmm1, esi
cvtsi2ss xmm0, rcx
lea ecx, [r14 - 1]
cvtdq2ps xmm1, xmm1
divss xmm1, xmm0
cvtps2pd xmm1, xmm1
addsd xmm1, qword [0x140048720]
test ecx, ecx
je 0x140011cce
mov r15d, dword [rsp + 0x68]
mov ebp, dword [rsp + 0x64]
cvttsd2si r14d, xmm1
movsxd rax, r14d
lea r13, [rbx - 8]
lea rax, [rax + rax*2]
shl rax, 2
mov qword [rsp + 0xc0], rax
mov eax, ecx
mov qword [rsp + 0xb0], rax
mov edx, 0x60
lea ecx, [rdx - 0x5f]
call fcn.14001cabc
mov rbx, rax
mov qword [r12], rax
test r15d, r15d
jne 0x140011c09
mov r8d, dword [rdi + 8]
mov ecx, dword [rdi + 4]
movzx edx, word [rdi + 0xe]
mov rax, qword [rsp + 0x70]
test r8d, r8d
mov dword [rbx + 0x18], ecx
mov ecx, 0
mov qword [rbx], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 8], rax
mov dword [rbx + 0x1c], r8d
cmovg r8d, ecx
test esi, esi
mov eax, esi
mov dword [rbx + 0x20], edx
cmovg eax, ecx
mov edx, 1
cmp r14d, esi
mov dword [rbx + 0x48], eax
mov eax, esi
mov dword [rbx + 0x28], r8d
mov dword [rbx + 0x24], edx
mov dword [rbx + 0x2c], r8d
mov qword [rbx + 0x30], rcx
cmovl eax, r14d
mov qword [rbx + 0x38], rcx
mov qword [rbx + 0x40], rcx
mov qword [rbx + 0x50], rcx
mov dword [rbx + 0x58], edx
jmp 0x140011c86
mov edx, dword [rdi + 8]
mov eax, dword [rdi + 4]
mov r11d, dword [r13 + 4]
mov r10d, dword [r13]
mov r9d, dword [r13 - 4]
movzx ecx, word [rdi + 0xe]
mov rbp, qword [rsp + 0x70]
mov dword [rbx + 0x18], eax
test edx, edx
mov eax, 1
lea r8d, [r14 + r15]
mov qword [rbx], rbp
mov rbp, qword [rsp + 0x78]
mov dword [rbx + 0x24], eax
mov eax, 0
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], rax
mov dword [rbx + 0x1c], edx
cmovg edx, eax
cmp r15d, esi
mov eax, esi
mov qword [rbx + 8], rbp
mov ebp, dword [rsp + 0x64]
cmovl eax, r15d
cmp r8d, esi
mov dword [rbx + 0x20], ecx
mov dword [rbx + 0x48], eax
mov eax, esi
mov dword [rbx + 0x28], edx
mov dword [rbx + 0x2c], edx
mov dword [rbx + 0x50], r9d
mov dword [rbx + 0x54], r10d
cmovl eax, r8d
mov dword [rbx + 0x58], r11d
add r13, qword [rsp + 0xc0]
mov dword [rbx + 0x4c], eax
add r15d, r14d
add r12, 8
dec qword [rsp + 0xb0]
mov dword [rbx + 0x14], esi
mov dword [rbx + 0x10], ebp
jne 0x140011b83
mov r14d, dword [rsp + 0x60]
mov rbp, qword [rsp + 0x88]
mov r12, qword [rsp + 0x98]
mov dword [rsp + 0x68], r15d
mov r15d, r14d
mov r13d, dword [rsp + 0x68]
mov edx, 0x60
lea ecx, [rdx - 0x5f]
call fcn.14001cabc
mov r8d, dword [rdi + 8]
movsxd rcx, r13d
mov rbx, rax
lea rdx, [rcx + rcx*2]
mov ecx, dword [rdi + 4]
lea eax, [r14 - 1]
test r8d, r8d
mov qword [r12 + rax*8], rbx
mov rax, qword [rsp + 0xa8]
mov r11d, dword [rax + rdx*4 - 4]
mov r10d, dword [rax + rdx*4 - 8]
mov r9d, dword [rax + rdx*4 - 0xc]
movzx edx, word [rdi + 0xe]
mov rax, qword [rsp + 0x70]
mov dword [rbx + 0x1c], r8d
mov qword [rbx], rax
mov rax, qword [rsp + 0x78]
mov dword [rbx + 0x14], esi
mov qword [rbx + 8], rax
mov eax, dword [rsp + 0x64]
mov dword [rbx + 0x18], ecx
mov dword [rbx + 0x10], eax
mov eax, 1
mov dword [rbx + 0x20], edx
mov dword [rbx + 0x24], eax
mov eax, 0
mov dword [rbx + 0x4c], esi
cmovg r8d, eax
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], rax
cmp r13d, esi
mov eax, esi
cmovl eax, r13d
mov dword [rbx + 0x28], r8d
mov dword [rbx + 0x2c], r8d
mov dword [rbx + 0x50], r9d
mov dword [rbx + 0x54], r10d
mov dword [rbx + 0x58], r11d
mov dword [rbx + 0x48], eax
jmp 0x140012175
xor edx, edx
xor ecx, ecx
call fcn.14001e084
mov edx, 0x30300
mov ecx, 0x20300
mov ebx, eax
call fcn.14001e084
movzx r8d, word [rdi + 0xe]
mov r9d, dword [rdi + 8]
mov rdx, qword [rsp + 0x78]
xor eax, eax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r8d
mov r8d, dword [rdi + 4]
mov rcx, r12
call fcn.140010c00
mov edx, 0xfffff
mov ecx, 0x8001f
call fcn.14001e084
mov edx, 0xffff
mov ecx, ebx
call fcn.14001e084
jmp 0x1400122e9
cmp ebx, 0xffffffff
jne 0x140011e16
lea r8d, [rbx + 6]
lea rdx, str.ResampleFilter
lea rcx, str.Resize
mov r9, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
test ebx, ebx
je 0x140011e77
dec ebx
je 0x140011e6e
dec ebx
je 0x140011e5d
dec ebx
je 0x140011e4c
dec ebx
je 0x140011e3b
movss xmm6, dword [0x1400487a8]
lea r12, [0x14000fd90]
jmp 0x140011e86
movss xmm6, dword [0x140048770]
lea r12, [0x14000fa00]
jmp 0x140011e86
movss xmm6, dword [0x140048770]
lea r12, [0x14000fe30]
jmp 0x140011e86
movss xmm6, dword [0x140048758]
lea r12, [0x140010a00]
jmp 0x140011e86
lea r12, [0x140010b10]
jmp 0x140011e7e
lea r12, [0x140010a60]
movss xmm6, dword [0x140048748]
mov ecx, dword [rdi + 4]
mov r8d, 1
cmp ecx, r8d
jne 0x140011e9f
movd xmm8, r15d
cvtdq2ps xmm8, xmm8
jmp 0x140011ecb
lea eax, [r15 - 1]
mov edx, r8d
cmp eax, edx
cmovg edx, eax
lea eax, [rcx - 1]
mov ecx, r8d
cmp eax, ecx
cmovg ecx, eax
movd xmm8, edx
movd xmm0, ecx
cvtdq2ps xmm8, xmm8
cvtdq2ps xmm0, xmm0
divss xmm8, xmm0
mov ebx, dword [rdi + 8]
cmp ebx, 1
jne 0x140011edc
movd xmm7, esi
cvtdq2ps xmm7, xmm7
jmp 0x140011f06
lea eax, [rsi - 1]
mov edx, r8d
mov ecx, r8d
cmp eax, 1
cmovg edx, eax
lea eax, [rbx - 1]
cmp eax, 1
cmovg ecx, eax
movd xmm7, edx
movd xmm0, ecx
cvtdq2ps xmm7, xmm7
cvtdq2ps xmm0, xmm0
divss xmm7, xmm0
mov edx, 0x10
movsxd rcx, esi
call fcn.14001cabc
mov qword [rsp + 0x80], rax
test rax, rax
je 0x1400122e9
movaps xmm2, xmm6
movaps xmm1, xmm7
mov r9d, esi
mov rcx, rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], ebx
call fcn.14000fa80
mov rcx, r15
mov edx, 0x10
call fcn.14001cabc
mov rcx, rax
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x140011f88
mov r14, qword [rsp + 0x80]
test esi, esi
je 0x1400122e1
lea rbx, [r14 + 8]
mov rdi, rsi
mov rcx, qword [rbx]
call fcn.14001b9bc
lea rbx, [rbx + 0x10]
dec rdi
jne 0x140011f72
jmp 0x1400122e1
mov eax, dword [rdi + 4]
movaps xmm2, xmm6
movaps xmm1, xmm8
mov r9d, r15d
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], eax
call fcn.14000fa80
mov ebx, dword [rdi + 8]
cmp r14d, ebx
cmova r14d, ebx
cmp r14d, esi
cmova r14d, esi
mov dword [rsp + 0x60], r14d
cmp r14d, 1
je 0x140012319
mov edx, 8
mov ecx, r14d
mov r15d, r14d
call fcn.14001cabc
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x98], rax
mov eax, ebx
div r14d
mov dword [rsp + 0x68], eax
lea eax, [r14 - 1]
test eax, eax
je 0x1400120c7
mov r15d, dword [rsp + 0x64]
mov ebx, esi
test esi, esi
mov rdx, r13
mov rbp, rcx
mov r14d, eax
cmovg ebx, edx
nop word [rax + rax]
mov edx, 0x60
lea ecx, [rdx - 0x5f]
call fcn.14001cabc
mov r8d, dword [rdi + 8]
mov ecx, dword [rdi + 4]
movzx edx, word [rdi + 0xe]
mov r9d, dword [rsp + 0x68]
mov r10, rax
mov qword [rbp], rax
mov rax, qword [rsp + 0x70]
add r9d, r13d
mov qword [r10], rax
mov rax, qword [rsp + 0x78]
mov dword [r10 + 0x18], ecx
xor ecx, ecx
cmp r13d, r8d
mov qword [r10 + 8], rax
mov eax, r8d
mov dword [r10 + 0x1c], r8d
mov dword [r10 + 0x10], r15d
cmovl eax, r13d
cmp r9d, r8d
mov dword [r10 + 0x14], esi
mov dword [r10 + 0x28], eax
mov rax, qword [rsp + 0x90]
cmovl r8d, r9d
mov qword [r10 + 0x38], rax
mov rax, qword [rsp + 0x80]
mov dword [r10 + 0x20], edx
mov dword [r10 + 0x24], ecx
mov dword [r10 + 0x2c], r8d
mov qword [r10 + 0x30], r12
mov qword [r10 + 0x40], rax
mov dword [r10 + 0x48], ebx
mov dword [r10 + 0x4c], ebx
mov qword [r10 + 0x50], rcx
mov dword [r10 + 0x58], ecx
mov r13d, r9d
lea rbp, [rbp + 8]
dec r14
jne 0x140012010
mov r14d, dword [rsp + 0x60]
mov rbp, qword [rsp + 0x88]
mov r15d, r14d
mov edx, 0x60
lea ecx, [rdx - 0x5f]
call fcn.14001cabc
mov r8d, dword [rdi + 8]
movzx edx, word [rdi + 0xe]
mov r9, rax
mov rax, qword [rsp + 0x98]
lea ecx, [r14 - 1]
mov qword [rax + rcx*8], r9
mov ecx, dword [rdi + 4]
mov rax, qword [rsp + 0x70]
mov qword [r9], rax
mov rax, qword [rsp + 0x78]
mov dword [r9 + 0x18], ecx
mov qword [r9 + 8], rax
mov eax, dword [rsp + 0x64]
xor ecx, ecx
mov dword [r9 + 0x10], eax
cmp r13d, r8d
mov eax, r8d
cmovl eax, r13d
cmp r8d, r8d
mov dword [r9 + 0x1c], r8d
mov dword [r9 + 0x28], eax
mov rax, qword [rsp + 0x90]
cmovl r8d, r8d
mov qword [r9 + 0x38], rax
mov rax, qword [rsp + 0x80]
test esi, esi
mov qword [r9 + 0x40], rax
mov eax, esi
mov qword [r9 + 0x30], r12
mov r12, qword [rsp + 0x98]
cmovg eax, ecx
mov dword [r9 + 0x14], esi
mov dword [r9 + 0x48], eax
mov dword [r9 + 0x4c], eax
mov dword [r9 + 0x20], edx
mov dword [r9 + 0x24], ecx
mov dword [r9 + 0x2c], r8d
mov qword [r9 + 0x50], rcx
mov dword [r9 + 0x58], ecx
mov edx, 8
mov rcx, r15
call fcn.14001cabc
mov r13, rax
test r14d, r14d
je 0x14001224b
mov rbx, rax
sub r12, rax
mov rdi, r15
nop word [rax + rax]
mov r9, qword [r12 + rbx]
lea rax, [rsp + 0x60]
lea r8, [0x140012590]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 4
call fcn.14001ddd4
lea rbx, [rbx + 8]
mov qword [rbx - 8], rax
dec rdi
jne 0x1400121a0
test r14d, r14d
je 0x14001224b
mov rbx, r13
mov rdi, r15
nop
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rbx, [rbx + 8]
dec rdi
jne 0x1400121e0
test r14d, r14d
je 0x14001224b
mov rbx, r13
mov rdi, r15
nop dword [rax]
mov rcx, qword [rbx]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rbx, [rbx + 8]
dec rdi
jne 0x140012200
test r14d, r14d
je 0x14001224b
mov rbx, qword [rsp + 0x98]
mov rdi, r13
sub rdi, rbx
nop dword [rax + rax]
mov rcx, qword [rdi + rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
call fcn.14001b9bc
lea rbx, [rbx + 8]
dec r15
jne 0x140012230
mov rcx, r13
call fcn.14001b9bc
mov rcx, qword [rsp + 0x98]
call fcn.14001b9bc
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x140012275
mov rcx, rax
call fcn.14001b9bc
mov r14, qword [rsp + 0x90]
mov r15d, dword [rsp + 0x64]
mov r12, qword [rsp + 0x80]
test r12, r12
je 0x1400122b9
test esi, esi
je 0x1400122b1
lea rbx, [r12 + 8]
mov rdi, rsi
nop dword [rax + rax]
mov rcx, qword [rbx]
call fcn.14001b9bc
lea rbx, [rbx + 0x10]
dec rdi
jne 0x1400122a0
mov rcx, r12
call fcn.14001b9bc
test r14, r14
je 0x1400122e9
test r15d, r15d
je 0x1400122e1
lea rbx, [r14 + 8]
mov edi, r15d
nop word [rax + rax]
mov rcx, qword [rbx]
call fcn.14001b9bc
lea rbx, [rbx + 0x10]
dec rdi
jne 0x1400122d0
mov rcx, r14
call fcn.14001b9bc
movaps xmm8, xmmword [rsp + 0x110]
movaps xmm7, xmmword [rsp + 0x120]
test rbp, rbp
je 0x1400123a7
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rbx, qword [rsp + 0xb8]
jmp 0x1400123b8
xor edx, edx
xor ecx, ecx
call fcn.14001e084
mov edx, 0x30300
mov ecx, 0x20300
mov ebx, eax
call fcn.14001e084
mov edx, dword [rdi + 8]
movzx ecx, word [rdi + 0xe]
mov rax, qword [rsp + 0x80]
mov r14, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edx
xor eax, eax
mov r9d, esi
mov dword [rsp + 0x38], eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x28], edx
mov rdx, qword [rsp + 0x70]
mov r8d, r15d
mov dword [rsp + 0x20], eax
call fcn.14000ff00
mov edx, 0xfffff
mov ecx, 0x8001f
call fcn.14001e084
mov edx, 0xffff
mov ecx, ebx
call fcn.14001e084
jmp 0x140012282
mov rbx, qword [rsp + 0xb8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdi, qword [rsp + 0xf0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test rbp, rbp
je 0x1400123e0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rsp + 0x1a8], 0
je 0x14001245c
lea rcx, [rsp + 0xe0]
mov rdx, rdi
call fcn.14001b170
lea r8, [rsp + 0xf0]
mov rcx, rdi
movaps xmm0, xmmword [rsp + 0xe0]
movsd xmm1, qword [0x140048888]
movdqa xmmword [rsp + 0xf0], xmm0
call fcn.14001ab50
lea rcx, [rsp + 0xe0]
mov rdx, rbx
call fcn.14001b170
lea r8, [rsp + 0xf0]
mov rcx, rbx
movaps xmm0, xmmword [rsp + 0xe0]
movsd xmm1, qword [0x140048888]
movdqa xmmword [rsp + 0xf0], xmm0
call fcn.14001ab50
cmp dword [rsp + 0xa0], 0
je 0x140012529
lea rbx, [0x14007f580]
lea rdx, str.EnableBWGamma
lea rcx, str.Viewing
mov r9, rbx
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x140012529
lea r9, [rsp + 0xf0]
lea r8, [0x140048860]
lea rdx, str.BWGamma
lea rcx, str.Viewing
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 6
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0xf0]
call fcn.14001b340
movaps xmm6, xmm0
movsd xmm0, qword [0x140048878]
comisd xmm0, xmm6
ja 0x1400124f2
movsd xmm0, qword [0x140048890]
comisd xmm6, xmm0
jbe 0x1400124f5
movaps xmm6, xmm0
lea rcx, [rsp + 0xe0]
mov rdx, rdi
call fcn.14001b170
lea r8, [rsp + 0xc0]
mov rcx, rdi
movaps xmm0, xmmword [rsp + 0xe0]
movaps xmm1, xmm6
movdqa xmmword [rsp + 0xc0], xmm0
call fcn.14001ab50
movaps xmm6, xmmword [rsp + 0x130]
mov rax, rdi
jmp 0x140012563
test rbp, rbp
je 0x140012558
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140012561
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
mov rdi, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14001bb50
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret