Function at 0x140027cc8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x6f8]
sub rsp, 0x7f8
mov rax, qword [0x140096008]
xor rax, rsp
mov qword [rbp + 0x6e0], rax
mov r12, qword [rbp + 0x768]
xor r14d, r14d
mov rsi, qword [rbp + 0x780]
mov eax, edx
mov qword [rbp + 0x68], rcx
mov rbx, r8
mov rcx, qword [rbp + 0x770]
mov edi, r9d
mov r8d, dword [rbp + 0x760]
lea r15d, [r14 + 1]
mov qword [rbp + 0x38], rcx
lea edx, [r14 + 0x66]
mov rcx, qword [rbp + 0x778]
mov r13d, r14d
mov qword [rbp + 0x50], rcx
mov ecx, eax
mov dword [rsp + 0x58], r9d
lea r9, [rbp - 0x40]
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x60], r12
mov qword [rbp - 0x18], rsi
mov dword [rbp - 8], r14d
mov dword [rbp - 0x74], r14d
mov dword [rbp - 0x4c], r15d
mov dword [rbp - 0x60], r14d
mov dword [rbp - 4], r14d
mov dword [rbp - 0x44], r15d
mov dword [rbp], r14d
mov dword [rbp - 0x48], r14d
call fcn.14004564c
mov dword [rsp + 0x5c], eax
test eax, eax
jne 0x140029664
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
mov qword [rbp + 0x20], rax
movups xmm0, xmmword [rax + 0x14]
movdqu xmmword [rbp + 0x28], xmm0
cmp dword [rax + 0x38], r14d
je 0x140029656
cmp dword [rax + 0x34], r14d
je 0x140029656
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rax
mov qword [rbp + 0x10], rax
mov edx, edi
mov r14, rax
call fcn.140021bb8
mov rdx, rax
mov qword [rbp + 0x80], rax
mov rcx, r14
mov rdi, rax
call fcn.1400196f8
xor r11d, r11d
mov dword [rbp - 0x20], eax
lea ebx, [r15 + 1]
test rsi, rsi
je 0x140027e20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rax
mov eax, dword [r14 + 0x34]
cmp eax, 0xd
je 0x140027e11
sub eax, 0x12
neg eax
sbb eax, eax
and eax, 6
mov dword [rcx + 0x1c], eax
jmp 0x140027e14
mov dword [rcx + 0x1c], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor r11d, r11d
test dword [rdi + 0x2c], 0x800
je 0x140027e46
test dword [rdi + 0x2c], 0x1000
mov r9d, r15d
mov dword [rsp + 0x78], r15d
jne 0x140027e4e
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x54], r11d
jmp 0x140027e5c
mov r9d, r11d
mov dword [rsp + 0x78], r11d
mov eax, dword [rbp + 0x34]
mov dword [rsp + 0x54], eax
mov eax, dword [rbp + 0x2c]
mov dword [rsp + 0x48], eax
mov ecx, dword [r14 + 0x34]
mov eax, 9
mov qword [rbp + 8], r11
sub ecx, 4
je 0x140027e8f
sub ecx, 5
je 0x140027e8f
sub ecx, 4
je 0x140027f64
sub ecx, r15d
je 0x140027e8f
sub ecx, 5
je 0x140027e8f
sub ecx, eax
je 0x140027e8f
cmp ecx, 5
jne 0x140027e93
mov qword [rbp + 8], r15
mov eax, dword [rdi + 0x114]
lea rcx, [rdi + 0x158]
neg eax
mov dword [rsp + 0x40], r11d
mov rax, qword [rbp - 0x40]
mov r8d, r11d
mov qword [rsp + 0x70], rax
sbb r15, r15
mov eax, dword [rbp + 0x30]
and r15, rcx
mov dword [rsp + 0x4c], eax
mov eax, dword [rbp + 0x28]
mov dword [rsp + 0x50], eax
mov qword [rbp - 0x58], r15
movsxd rbx, dword [r12 + 0x38]
mov eax, r8d
mov edx, dword [r12 + 0x30]
neg eax
mov eax, r11d
mov dword [rsp + 0x7c], r11d
sbb ecx, ecx
mov dword [rsp + 0x60], r11d
and r13d, ecx
mov dword [rbp - 0x80], edx
add rbx, r12
mov dword [rsp + 0x44], r13d
mov qword [rbp - 0x38], rbx
mov dword [rbp - 0x64], eax
test r9d, r9d
je 0x14002807c
test r8d, r8d
jne 0x140028061
mov eax, dword [r12 + 0x24]
test eax, eax
js 0x140027f20
mov ecx, r11d
cmp eax, edx
jl 0x140027f25
mov ecx, 1
test ecx, ecx
je 0x140027f43
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RaiseFailFastException]
mov eax, dword [r12 + 0x24]
xor r11d, r11d
mov edx, dword [r12 + 0x30]
cdqe
lea rcx, [rax + rax*2]
movsxd r8, dword [rbx + rcx*8 + 4]
cmp dword [r12 + 0x28], edx
jge 0x140027f6d
movsxd rax, dword [r12 + 0x28]
lea rcx, [rax + rax*2]
mov esi, dword [rbx + rcx*8 + 4]
jmp 0x140027f72
mov qword [rbp + 8], r11
jmp 0x140027e93
mov esi, dword [r12 + 0x2c]
test r15, r15
je 0x140028061
mov rdx, r11
test r8d, r8d
jle 0x140027fe8
movsxd r11, dword [rdi + 0x114]
lea r9, [rbp + 0xa0]
mov rbx, r8
lea r10, [rbp + 0xa4]
lea r8, [rbp + 0xbc]
sub r9, r15
sub r8, r15
lea rcx, [r15 + 0x24]
sub r10, r15
cmp rdx, r11
jge 0x140027fda
mov eax, dword [rcx - 8]
inc rdx
mov dword [r8 + rcx - 0x24], eax
mov eax, dword [rcx]
mov dword [r9 + rcx], eax
mov eax, dword [rcx + 4]
mov dword [r10 + rcx], eax
add rcx, 0x2c
cmp rdx, rbx
jl 0x140027faf
xor r11d, r11d
jmp 0x140027fe4
xor r11d, r11d
mov r15d, r11d
mov qword [rbp - 0x58], r11
mov rbx, qword [rbp - 0x38]
test r15, r15
je 0x140028061
movsxd r10, dword [r12 + 0x2c]
movsxd rdx, esi
cmp rdx, r10
jge 0x140028061
movsxd r11, dword [rdi + 0x114]
imul rcx, rdx, 0x2c
xor r14d, r14d
cmp rdx, r11
mov rax, r14
cmovl rax, r15
mov r15, rax
test rax, rax
je 0x14002802a
mov eax, dword [rcx + rax + 0x28]
mov r8d, dword [rcx + r15 + 0x24]
mov r9d, dword [rcx + r15 + 0x1c]
jmp 0x140028033
mov eax, r14d
mov r8d, r14d
mov r9d, r14d
mov dword [rbp + rcx + 0xbc], r9d
inc rdx
mov dword [rbp + rcx + 0xc4], r8d
mov dword [rbp + rcx + 0xc8], eax
add rcx, 0x2c
cmp rdx, r10
jl 0x140028008
mov r14, qword [rbp + 0x10]
xor r11d, r11d
mov qword [rbp - 0x58], r15
mov edx, dword [r12 + 0x28]
cmp edx, dword [r12 + 0x30]
mov eax, dword [r12 + 0x24]
cmovg edx, dword [r12 + 0x30]
mov dword [rbp - 0x80], edx
mov dword [rbp - 0x64], eax
movsxd rcx, edx
mov esi, eax
mov dword [rbp - 0x70], eax
cdqe
mov qword [rbp - 0x40], rax
mov r10, rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x30], rcx
cmp rax, rcx
jge 0x140028c5d
mov dword [rsp + 0x44], r13d
jmp 0x1400280a8
xor r11d, r11d
movsxd rcx, dword [r12 + 0x34]
lea r8, [r10 + r10*2]
movsxd r9, dword [rbx + r8*8 + 4]
xor eax, eax
add rcx, r12
mov dword [rbp - 0x68], eax
mov r14d, eax
mov qword [rbp + 0x28], r8
mov eax, dword [rbx + r8*8 + 8]
mov r13, r9
add eax, r9d
mov dword [rbp - 0x6c], r9d
cdqe
lea rdx, [r9*4]
add rdx, r9
mov qword [rbp + 0x40], r9
mov dword [rbp - 0x50], r11d
mov qword [rbp + 0x78], rax
lea r15, [rcx + rdx*4]
mov ecx, r11d
mov dword [rbp - 0x7c], ecx
mov edx, r11d
mov dword [rbp - 0x24], edx
mov qword [rsp + 0x68], r15
cmp r9, rax
jge 0x140028bd2
xor ebx, ebx
cmp r9d, dword [rdi + 0x114]
mov rax, rbx
mov edx, dword [r15 + 0xc]
cmovl rax, qword [rbp - 0x58]
mov qword [rbp - 0x58], rax
test edx, edx
jns 0x14002814a
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
imul rax, r13, 0x2c
xor r8d, r8d
mov dword [rbp + rax + 0xc8], r8d
lea r12d, [r8 + 1]
jmp 0x14002815d
mov rcx, qword [rsp + 0x70]
call fcn.140078d84
xor r8d, r8d
mov rsi, rax
mov r12d, r8d
mov ebx, dword [r15 + 0xc]
or r14d, 0xffffffff
mov dword [rbp - 0x28], r12d
mov r15d, r8d
mov dword [rbp - 0x78], ebx
test rsi, rsi
je 0x14002826a
test dword [rsi + 0x20], 0x4000
je 0x14002822f
mov r15d, dword [rsi + 0x50]
cmp r15d, 0x1c
cmova r15d, r8d
test r15d, r15d
je 0x14002822f
test ebx, ebx
js 0x14002822f
mov rcx, qword [0x140096d50]
mov edx, ebx
call fcn.140078d84
xor ebx, ebx
test rax, rax
je 0x1400281c8
test dword [rax + 0x20], 0x4000
je 0x1400281c8
mov r14d, dword [rax + 0x48]
mov dword [rbp - 0x78], r14d
mov rcx, qword [0x140096d50]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test r14d, r14d
jns 0x14002820a
mov r15d, ebx
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.140044844
xor eax, eax
mov ecx, 0x4000
mov dword [rsi + 0x50], eax
mov eax, dword [rsi + 0x20]
test ecx, eax
je 0x140028200
xor eax, ecx
mov dword [rsi + 0x20], eax
mov rcx, rbx
call fcn.14004708c
jmp 0x14002822c
mov rbx, qword [rsp + 0x70]
mov edx, r14d
mov rcx, rbx
call fcn.140078d84
test rax, rax
jne 0x140028223
or dword [rsi + 0x3c], 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor r8d, r8d
test dword [rsi + 0x20], 0x1000
je 0x14002826a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x140028283
mov rcx, qword [rbp - 0x58]
imul rax, r13, 0x2c
mov dword [rbp + rax + 0xc4], 1
test rcx, rcx
je 0x14002825e
mov ecx, dword [rcx + rax + 0x28]
jmp 0x140028261
mov ecx, r8d
mov dword [rbp + rax + 0xc8], ecx
jmp 0x14002827f
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x140028283
imul rax, r13, 0x2c
and qword [rbp + rax + 0xc4], 0
mov eax, dword [rsp + 0x40]
imul r13, r13, 0x2c
mov dword [rbp + r13 + 0xbc], r15d
test rsi, rsi
jne 0x1400284cc
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, qword [rsp + 0x70]
lea r9d, [rsi + 1]
mov rbx, rax
mov r8, rax
mov rax, qword [rsp + 0x68]
mov edx, dword [rax + 0xc]
call fcn.1400791b8
mov dword [rsp + 0x5c], eax
test eax, eax
jne 0x14002832c
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov edx, dword [rax + 0xc]
call fcn.140078d84
mov rsi, rax
test r14d, r14d
js 0x14002832c
mov rcx, qword [rsp + 0x70]
mov eax, r14d
mov qword [rsi + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov r8, rbx
mov r9d, 1
mov rbx, qword [rsp + 0x70]
mov edx, r14d
mov rcx, rbx
call fcn.1400791b8
mov dword [rsp + 0x5c], eax
test eax, eax
jne 0x14002832c
mov edx, r14d
mov rcx, rbx
call fcn.140078d84
mov rsi, rax
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ebx, ebx
cmp dword [rsp + 0x5c], ebx
jne 0x14002931e
test rsi, rsi
je 0x14002931e
mov edx, dword [rbp - 0x78]
mov rcx, qword [0x140096d50]
call fcn.140078d84
mov rdx, rax
test rax, rax
je 0x1400283da
cmp dword [rax], 1
jne 0x1400283aa
movsxd rcx, dword [rsi + 8]
mov dword [rsi], 1
mov dword [rsi + 4], 0x28
movsxd rax, dword [rax + 8]
movups xmm0, xmmword [rax + rdx + 0x54]
movups xmmword [rcx + rsi + 0x54], xmm0
movups xmm1, xmmword [rax + rdx + 0x64]
movups xmmword [rcx + rsi + 0x64], xmm1
movsd xmm0, qword [rax + rdx + 0x74]
movsd qword [rcx + rsi + 0x74], xmm0
or dword [rcx + rsi + 0x58], 0xffffffff
mov eax, dword [rsi + 0x1c]
mov dword [rcx + rsi + 0x74], eax
jmp 0x1400283dd
mov eax, 2
cmp dword [rdx], eax
jne 0x1400283da
movsxd rcx, dword [rsi + 8]
mov dword [rsi], eax
mov dword [rsi + 4], 0x20
movsxd rax, dword [rdx + 8]
movups xmm0, xmmword [rax + rdx + 0x54]
movups xmmword [rcx + rsi + 0x54], xmm0
movups xmm1, xmmword [rax + rdx + 0x64]
movups xmmword [rcx + rsi + 0x64], xmm1
jmp 0x1400283dd
mov qword [rsi], rbx
mov rcx, qword [0x140096d50]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor r8d, r8d
mov rbx, qword [rsp + 0x68]
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14002871f
cmp qword [rbp - 0x58], r8
jne 0x14002843f
test rsi, rsi
je 0x140028437
test r12d, r12d
jne 0x140028437
mov eax, dword [rbx + 0x10]
mov ecx, 0x1000
test ecx, eax
je 0x140028437
xor eax, ecx
mov dword [rbp + r13 + 0xc4], 1
mov rcx, qword [rbp + 0x60]
mov dword [rbx + 0x10], eax
call fcn.14004708c
xor r8d, r8d
mov dword [rbp + r13 + 0xc8], r8d
test r12d, r12d
jne 0x14002888a
cmp dword [rbp - 0x44], r8d
je 0x1400287ac
mov dword [rdi + 0xa4], r15d
mov r14d, r8d
mov eax, dword [rsi + 0x1c]
mov dword [rdi + 0xa8], eax
test byte [rsi + 0x20], 2
mov eax, dword [rdi + 0x2c]
seta r14b
mov dword [rbp - 0x74], r14d
test al, 0x40
je 0x14002847e
xor eax, 0x40
mov dword [rdi + 0x2c], eax
mov eax, dword [rbp + r13 + 0xc4]
lea rbx, [rdi + 0xa0]
mov dword [rdi + 0xb8], eax
lea r8, [rdi + 0x9c]
lea rax, [rdi + 0xac]
mov r9, rbx
lea rdx, [rdi + 0x98]
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.140027b40
xor r8d, r8d
cmp dword [rbx], r8d
mov ecx, r8d
sete cl
mov dword [rbp - 0x4c], ecx
jmp 0x14002888a
test r12d, r12d
jne 0x1400283ed
cmp dword [rsi], 1
jne 0x1400284e6
mov dword [rbp - 0x60], 1
jmp 0x1400283ed
cmp dword [rsi + 0x3c], r8d
jge 0x140028608
mov rcx, qword [rbp + 0x50]
mov r9, rsi
xor r8d, r8d
mov edx, 0x470
call qword [sym.imp.USER32.dll_SendMessageA]
mov rsi, qword [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rbp + 0x50]
mov edx, 0x471
xor r9d, r9d
lea r8d, [rdx - 0x71]
call qword [sym.imp.USER32.dll_SendMessageA]
mov rbx, rax
test rax, rax
je 0x140028569
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r9d, 1
mov rcx, rsi
mov r8, rax
mov rax, qword [rsp + 0x68]
mov edx, dword [rax + 0xc]
call fcn.1400791b8
mov rcx, rbx
mov dword [rsp + 0x5c], eax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x68]
mov rcx, rsi
mov edx, dword [rbx + 0xc]
call fcn.140078d84
xor r8d, r8d
mov rsi, rax
test r14d, r14d
js 0x1400283f2
mov rcx, qword [rbp + 0x50]
mov edx, 0x471
mov eax, r14d
xor r9d, r9d
mov qword [rsi + 0x48], rax
lea r8d, [rdx - 0x71]
call qword [sym.imp.USER32.dll_SendMessageA]
xor r8d, r8d
mov rbx, rax
test rax, rax
je 0x1400283ed
mov rsi, qword [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r9d, 1
mov edx, r14d
mov r8, rax
mov rcx, rsi
call fcn.1400791b8
mov rcx, rbx
mov dword [rsp + 0x5c], eax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, r14d
mov rcx, rsi
call fcn.140078d84
mov rsi, rax
jmp 0x1400283ea
test byte [rsi + 0x20], 2
mov rbx, qword [rsp + 0x68]
je 0x140028773
cmp eax, 1
jne 0x140028773
cmp dword [rbx + 0xc], r8d
jl 0x140028773
mov r15, qword [rsp + 0x70]
test r14d, r14d
js 0x14002864d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, r14d
mov rcx, r15
call fcn.140078d84
mov rsi, rax
jmp 0x140028651
mov r14d, dword [rbx + 0xc]
mov eax, dword [rbp + r13 + 0xb4]
mov dword [rbp - 0x78], r14d
cmp dword [rsi + 0x3c], eax
je 0x140028705
mov rbx, qword [rbp + 0x50]
xor r8d, r8d
movzx r9d, ax
mov rcx, rbx
or r9, 0x7d000000
mov edx, 0x472
call qword [sym.imp.USER32.dll_SendMessageA]
or dword [rsi + 0x3c], 0xffffffff
mov r9, rsi
xor r8d, r8d
mov edx, 0x470
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, 0x471
xor r9d, r9d
mov rcx, rbx
lea r8d, [rdx - 0x71]
call qword [sym.imp.USER32.dll_SendMessageA]
mov rbx, rax
test rax, rax
je 0x1400286f7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r9d, 1
mov edx, r14d
mov r8, rax
mov rcx, r15
call fcn.1400791b8
mov rcx, rbx
mov dword [rsp + 0x5c], eax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, r14d
mov rcx, r15
call fcn.140078d84
mov rsi, rax
mov eax, dword [rsi + 0x28]
mov dword [rbp + r13 + 0xb0], eax
mov eax, dword [rsi + 0x54]
mov dword [rbp + r13 + 0xa8], eax
mov eax, dword [rsp + 0x40]
mov r14d, dword [rbp - 0x68]
mov r15, qword [rsp + 0x68]
xor ebx, ebx
cmp dword [rbp - 0x78], ebx
jl 0x140028b2c
cmp dword [rsi + 0x18], ebx
jne 0x140028742
cmp dword [rbp + r13 + 0xc4], ebx
je 0x140028749
mov dword [rbp - 0x60], 1
test byte [rsi + 0x20], 2
je 0x140028b1f
test eax, eax
jne 0x140028b1f
mov eax, dword [rsi + 0x40]
mov dword [rbp - 4], 1
cmp eax, 0xa
jle 0x140028b36
jmp 0x140028b22
test r14d, r14d
js 0x1400283f2
cmp dword [rbx + 0xc], r8d
jl 0x140028789
mov eax, r14d
mov qword [rsi + 0x48], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rsp + 0x70]
mov edx, r14d
call fcn.140078d84
mov rsi, rax
xor r8d, r8d
jmp 0x1400283f2
or ebx, 0xffffffff
cmp r15d, dword [rdi + 0xa4]
je 0x1400287be
mov dword [rdi + 0xa4], ebx
mov eax, dword [rdi + 0xb8]
cmp dword [rbp + r13 + 0xc4], eax
je 0x1400287d5
mov dword [rdi + 0xb8], r8d
mov eax, dword [rdi + 0xa8]
cmp dword [rsi + 0x1c], eax
je 0x1400287e6
mov dword [rdi + 0xa8], ebx
mov al, byte [rsi + 0x20]
lea r9, [rbp + 0x58]
and al, 2
lea r8, [rbp + 0x4c]
neg al
lea rdx, [rbp + 0x48]
mov rcx, rsi
sbb eax, eax
and eax, dword [rbp - 0x74]
mov r14d, eax
mov dword [rbp - 0x74], eax
lea rax, [rbp + 0x5c]
mov qword [rsp + 0x20], rax
call fcn.140027b40
mov eax, dword [rdi + 0x98]
cmp dword [rbp + 0x48], eax
je 0x140028826
mov dword [rdi + 0x98], ebx
mov eax, dword [rdi + 0x9c]
cmp dword [rbp + 0x4c], eax
je 0x140028837
mov dword [rdi + 0x9c], ebx
mov eax, dword [rdi + 0xac]
cmp dword [rbp + 0x5c], eax
je 0x14002884c
mov dword [rdi + 0xac], 0xff000000
mov edx, dword [rbp - 0x4c]
xor r8d, r8d
mov ecx, dword [rbp + 0x58]
mov eax, r8d
test ecx, ecx
cmovne edx, r8d
sete al
mov dword [rbp - 0x4c], edx
cmp eax, edx
je 0x140028874
mov dword [rdi + 0xa0], 0x4000
jmp 0x140028886
mov eax, dword [rdi + 0xa0]
cmp ecx, eax
je 0x14002888a
and ecx, eax
mov dword [rdi + 0xa0], ecx
mov dword [rbp - 0x74], r14d
cmp dword [rbp + r13 + 0xc4], r8d
je 0x1400289f0
test r12d, r12d
jne 0x1400289f0
mov rax, qword [rsp + 0x68]
mov ebx, r8d
mov edx, dword [rax + 0xc]
mov rax, qword [rbp + 0x68]
mov r12, qword [rax + 0x21e]
test edx, edx
js 0x1400289ea
mov rcx, qword [0x140096d50]
call fcn.140078d84
xor ecx, ecx
mov r15, rax
test rax, rax
je 0x1400289da
test r12, r12
je 0x1400289da
movsxd rax, dword [rsi + 0x14]
lea r14, [rax + rax*2]
add r14, r14
mov rax, qword [rsi + r14*8 + 0x90]
test rax, rax
jne 0x140028924
mov eax, dword [rsi + r14*8 + 0x5c]
mov r9d, dword [rsi + r14*8 + 0x58]
mov r8d, dword [rsi + r14*8 + 0x54]
mov rdx, qword [0x140096d48]
mov dword [rsp + 0x28], ecx
mov rcx, qword [0x140096d40]
mov dword [rsp + 0x20], eax
call fcn.140079dc0
mov rdx, rax
mov rcx, r12
call qword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [r15 + 0x18]
lea rdx, [r15 + 0xdc]
mov eax, 0x102
lea rcx, [rbp + 0x5d0]
cmp ebx, eax
cmovg ebx, eax
movsxd r15, ebx
mov r8, r15
call sub.VCRUNTIME140.dll_memmove
mov ecx, 0x106
cmp r15, rcx
jae 0x140029687
xor eax, eax
lea r8, [0x14008de6c]
mov edx, ecx
mov byte [rbp + r15 + 0x5d0], al
lea rcx, [rbp + 0x5d0]
call fcn.1400205fc
lea r8d, [rbx + 2]
mov rcx, r12
lea r9, [rbp + 0x70]
lea rdx, [rbp + 0x5d0]
call qword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [rsi + r14*8 + 0x98]
mov ebx, dword [rbp + 0x70]
mov ecx, ebx
test eax, eax
jle 0x1400289da
cmp eax, 2
jle 0x1400289c9
cmp eax, 4
jg 0x1400289da
mov eax, dword [rsi + r14*8 + 0xa4]
cdq
xor eax, edx
sub eax, edx
lea ebx, [rbx + rax*2]
jmp 0x1400289da
mov eax, dword [rsi + r14*8 + 0xa4]
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
add ebx, ecx
mov rcx, qword [0x140096d50]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor r8d, r8d
mov r12d, dword [rbp - 0x28]
jmp 0x1400289f3
mov ebx, r8d
mov r14d, dword [rbp - 0x68]
mov rax, qword [rbp + 0x40]
mov r15, qword [rsp + 0x68]
imul rax, rax, 0x2c
mov dword [rbp + rax + 0xc8], ebx
add r14d, dword [r15]
cmp dword [rsi], 1
mov dword [rbp - 0x68], r14d
jne 0x140028aa6
movsxd rbx, dword [rsi + 8]
mov dword [rbp + r13 + 0xa8], r8d
mov eax, dword [rsi + rbx + 0x64]
mov dword [rbp + r13 + 0xb0], eax
mov eax, dword [rbx + rsi + 0x60]
mov dword [rbp + r13 + 0xac], eax
mov rax, qword [rbx + rsi + 0x60]
mov qword [rsi + 0x24], rax
mov eax, dword [rbx + rsi + 0x58]
shr eax, 0x1f
mov dword [rbp + r13 + 0xc0], eax
test eax, eax
je 0x140028b0f
mov edx, dword [rbp - 0x78]
mov rcx, qword [0x140096d50]
call fcn.140078d84
mov rdx, rax
test rax, rax
je 0x140028a97
cmp dword [rax], 1
jne 0x140028a97
movsxd rax, dword [rax + 8]
mov rcx, qword [rax + rdx + 0x60]
mov qword [rbx + rsi + 0x60], rcx
mov rax, qword [rax + rdx + 0x68]
mov qword [rbx + rsi + 0x68], rax
mov qword [rsi + 0x24], rcx
mov rcx, qword [0x140096d50]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140028b0f
test r12d, r12d
je 0x140028acd
mov qword [rbp + r13 + 0xac], 0xa
mov dword [rbp + r13 + 0xa8], r8d
mov dword [rbp + r13 + 0xc0], 1
jmp 0x140028b0f
cmp dword [rsi + 0x18], r8d
je 0x140028adb
mov eax, dword [rsi + 0x54]
mov ecx, dword [rsi + 0x58]
jmp 0x140028ae1
mov eax, r8d
mov ecx, r8d
mov dword [rbp + r13 + 0xb0], ecx
mov dword [rbp + r13 + 0xa8], eax
mov eax, r8d
cmp dword [rsi + 0x18], r8d
mov dword [rbp + r13 + 0xac], 0xa
sete al
mov dword [rbp + r13 + 0xc0], eax
mov eax, dword [rsp + 0x40]
mov dword [rbp], 1
jmp 0x140028728
mov eax, dword [rsi + 0x24]
mov dword [rbp + r13 + 0xac], eax
jmp 0x140028b36
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [rbp + r13 + 0xb0]
cmp dword [rbp - 0x24], eax
mov ecx, dword [rbp - 0x7c]
cmovge eax, dword [rbp - 0x24]
mov edx, eax
mov dword [rbp - 0x24], eax
mov eax, dword [rbp + r13 + 0xa8]
cmp dword [rbp - 0x50], eax
cmovge eax, dword [rbp - 0x50]
mov r11d, eax
mov dword [rbp - 0x50], eax
cmp dword [rsp + 0x40], ebx
jne 0x140028b8b
mov eax, dword [rbp + r13 + 0xac]
add eax, dword [rbp + r13 + 0xc8]
cmp ecx, eax
cmovl ecx, eax
mov dword [rbp - 0x7c], ecx
mov r9d, dword [rbp - 0x6c]
add r15, 0x14
mov r13, qword [rbp + 0x40]
inc r9d
inc r13
mov qword [rsp + 0x68], r15
mov dword [rbp - 0x44], ebx
mov dword [rbp - 0x6c], r9d
mov qword [rbp + 0x40], r13
cmp r13, qword [rbp + 0x78]
jl 0x14002810d
mov rax, qword [rbp - 0x58]
mov r8, qword [rbp + 0x28]
mov r10, qword [rbp - 0x10]
mov r12, qword [rbp + 0x20]
mov rbx, qword [rbp - 0x38]
mov esi, dword [rbp - 0x70]
mov qword [rbp - 0x58], rax
xor r15d, r15d
cmp dword [rsp + 0x40], r15d
jne 0x140028bf9
mov eax, dword [rbx + r8*8 + 8]
imul eax, ecx
mov ecx, dword [rsp + 0x44]
mov dword [rbx + r8*8 + 0x14], r14d
add eax, r14d
cmp eax, ecx
cmovg ecx, eax
mov dword [rsp + 0x44], ecx
test edx, edx
je 0x140028c07
mov ecx, dword [rbx + r8*8]
add ecx, edx
add dword [rsp + 0x7c], ecx
cmp esi, dword [r12 + 0x24]
jl 0x140028c23
cmp esi, dword [r12 + 0x28]
jge 0x140028c23
test edx, edx
je 0x140028c23
mov ecx, dword [rbx + r8*8]
add ecx, edx
add dword [rsp + 0x60], ecx
mov r13, qword [rbp - 0x40]
mov dword [rbx + r8*8 + 0xc], edx
mov dword [rbx + r8*8 + 0x10], r11d
cmp r10, r13
jne 0x140028c41
lea eax, [rdx + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [rdi + 0x68], eax
inc esi
inc r10
mov dword [rbp - 0x70], esi
mov qword [rbp - 0x10], r10
cmp r10, qword [rbp - 0x30]
jl 0x1400280a5
mov r14, qword [rbp + 0x10]
jmp 0x140028c63
mov r13, rax
xor r15d, r15d
test dword [rdi + 0x2c], 0x1000
je 0x140028c88
lea rdx, [rbp + 0x88]
mov rcx, rdi
call fcn.14002242c
mov ebx, dword [rsp + 0x78]
mov dword [rbp + 0x94], r15d
jmp 0x140028cbb
mov ebx, dword [rsp + 0x78]
test ebx, ebx
je 0x140028cac
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea rcx, [rbp + 0x88]
xor edx, edx
call qword [sym.imp.USER32.dll_SetRect]
jmp 0x140028cbb
lea rdx, [rbp + 0x88]
mov rcx, rdi
call fcn.14002242c
mov ecx, dword [rsp + 0x40]
test ecx, ecx
jne 0x140028ebb
cmp dword [rbp - 0x60], r15d
je 0x140028ce7
test byte [rdi + 0xf4], 3
je 0x140028ce7
mov r11d, dword [rsp + 0x50]
lea edx, [rcx + 1]
lea eax, [rcx + 0x12]
mov ecx, dword [rsp + 0x4c]
jmp 0x140028d08
mov eax, dword [rdi + 0x48]
mov r8d, 0x12
mov ecx, dword [rsp + 0x4c]
mov edx, r15d
mov r11d, dword [rsp + 0x50]
sub eax, ecx
sub eax, r11d
cmp eax, r8d
cmovl eax, r8d
cmp dword [rsp + 0x44], eax
mov r9d, dword [rsp + 0x48]
cmovge eax, dword [rsp + 0x44]
mov esi, dword [rsp + 0x54]
mov r10d, eax
mov dword [rsp + 0x44], eax
add eax, ecx
add eax, r11d
mov dword [rbp - 0x48], edx
mov dword [rdi + 0x44], eax
test edx, edx
je 0x140028d37
mov eax, 9
jmp 0x140028d49
mov eax, dword [rdi + 0x4c]
mov ecx, 9
sub eax, esi
sub eax, r9d
cmp eax, ecx
cmovl eax, ecx
mov r15d, dword [rsp + 0x60]
lea ecx, [rax + rsi]
cmp r15d, eax
jl 0x140028d5a
lea ecx, [r15 + rsi]
add ecx, r9d
mov dword [rdi + 0x40], ecx
mov r8d, dword [rdi + 0x44]
cmp ecx, r8d
jge 0x140028d6c
mov r8d, ecx
mov edx, dword [rbp - 0x20]
mov rcx, rdi
call fcn.140027c54
mov ecx, dword [rdi + 0x12c]
add r11d, ecx
mov eax, dword [rdi + 0x44]
add r9d, ecx
mov edx, dword [rsp + 0x4c]
add esi, ecx
mov r8d, dword [rdi + 0xf4]
add edx, ecx
mov dword [rsp + 0x50], r11d
mov dword [rsp + 0x48], r9d
lea eax, [rax + rcx*2]
mov dword [rdi + 0x44], eax
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x54], esi
test r8b, 1
je 0x140028dfd
xor edx, edx
test ebx, ebx
je 0x140028dc2
lea ecx, [rdx + 1]
cmp qword [rbp + 8], rdx
je 0x140028dc4
mov ecx, edx
mov r9, qword [rbp + 0x38]
mov r8d, eax
mov dword [rsp + 0x28], ecx
mov rcx, r14
mov dword [rsp + 0x20], edx
mov edx, dword [rsp + 0x58]
call fcn.1400279a0
mov r11d, dword [rsp + 0x50]
mov r10d, eax
mov edx, dword [rsp + 0x4c]
sub r10d, r11d
mov r8d, dword [rdi + 0xf4]
sub r10d, edx
mov dword [rsp + 0x44], r10d
mov rbx, rdi
mov dword [rbx + 0x50], eax
test dword [rdi + 0x2c], 0x1000
je 0x140028e1d
test r8b, 0x10
jne 0x140028e1d
mov ecx, dword [rdi + 0xfc]
xor r9d, r9d
jmp 0x140028e2a
xor r9d, r9d
mov dword [rdi + 0xfc], r9d
mov ecx, r9d
sub ecx, r11d
sub ecx, dword [rbp + 0x90]
sub ecx, dword [rbp + 0x88]
sub ecx, edx
mov dword [rdi + 0x104], eax
cmp r10d, ecx
jge 0x140028ea1
add edx, r11d
mov dword [rsp + 0x44], ecx
add edx, ecx
mov r10d, ecx
mov dword [rdi + 0x44], edx
test r8b, 1
je 0x140028eb6
cmp dword [rsp + 0x78], r9d
je 0x140028e6d
mov eax, 1
cmp qword [rbp + 8], r9
je 0x140028e70
mov eax, r9d
mov dword [rsp + 0x28], eax
mov r8d, edx
mov edx, dword [rsp + 0x58]
mov rcx, r14
mov dword [rsp + 0x20], r9d
mov r9, qword [rbp + 0x38]
call fcn.1400279a0
mov r10d, eax
mov dword [rbx + 0x50], eax
sub r10d, dword [rsp + 0x50]
sub r10d, dword [rsp + 0x4c]
mov dword [rsp + 0x44], r10d
mov ecx, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x48]
xor edx, edx
cmp dword [rbp - 0x48], edx
je 0x140028ecb
lea ebx, [rdx + 9]
jmp 0x140028ee7
mov dword [rbx + 0x50], edx
jmp 0x140028ea1
mov r10d, dword [rsp + 0x44]
mov r15d, dword [rsp + 0x60]
mov esi, dword [rsp + 0x54]
jmp 0x140028ea5
mov eax, dword [rdi + 0x12c]
mov ebx, dword [rdi + 0x4c]
add eax, eax
sub ebx, eax
mov eax, 9
sub ebx, esi
sub ebx, r11d
cmp ebx, eax
cmovl ebx, eax
cmp r15d, ebx
jge 0x140028ef5
mov eax, ebx
sub eax, r15d
add dword [rsp + 0x7c], eax
mov esi, ebx
sub esi, r15d
cmp r15d, ebx
cmovge ebx, r15d
cmovge esi, edx
mov r15d, dword [rsp + 0x54]
mov dword [rbp - 0x7c], esi
lea r8d, [r15 + rbx]
add r8d, r11d
mov dword [rdi + 0x40], r8d
cmp ecx, 1
jne 0x140028fc2
mov edx, dword [rbp - 0x20]
sub r8d, r15d
mov r9d, dword [rdi + 0x12c]
sub r8d, r11d
mov rcx, rdi
call fcn.140027c54
mov ecx, dword [rdi + 0x12c]
cmp r9d, ecx
jge 0x140028fc2
mov eax, dword [rdi + 0x44]
sub ecx, r9d
add dword [rsp + 0x50], ecx
add r15d, ecx
add dword [rsp + 0x4c], ecx
add r11d, ecx
mov dword [rsp + 0x48], r11d
lea edx, [rax + rcx*2]
mov dword [rsp + 0x54], r15d
lea eax, [rbx + r15]
mov dword [rdi + 0x44], edx
add eax, r11d
test byte [rdi + 0xf4], 1
mov dword [rdi + 0x40], eax
je 0x140028fbf
xor ecx, ecx
cmp dword [rsp + 0x78], ecx
je 0x140028f8b
lea eax, [rcx + 1]
cmp qword [rbp + 8], rcx
je 0x140028f8d
mov eax, ecx
mov r9, qword [rbp + 0x38]
mov r8d, edx
mov edx, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, r14
call fcn.1400279a0
mov r10d, eax
mov dword [rdi + 0x50], eax
sub r10d, dword [rsp + 0x50]
sub r10d, dword [rsp + 0x4c]
mov dword [rsp + 0x44], r10d
jmp 0x140028fc2
mov dword [rdi + 0x50], edx
test byte [rdi + 0xf4], 2
mov eax, dword [rdi + 0x40]
je 0x140029010
mov ecx, dword [rsp + 0x78]
mov r8d, eax
mov r9, qword [rbp + 0x38]
mov edx, dword [rsp + 0x58]
mov dword [rsp + 0x28], ecx
mov rcx, r14
mov dword [rsp + 0x20], 1
call fcn.1400279a0
mov r10d, dword [rsp + 0x44]
mov dword [rdi + 0x54], eax
sub eax, r15d
sub eax, dword [rsp + 0x48]
cmp ebx, eax
jge 0x140029016
sub esi, ebx
add esi, eax
sub eax, ebx
add dword [rsp + 0x7c], eax
jmp 0x140029013
mov dword [rdi + 0x54], eax
mov dword [rbp - 0x7c], esi
movsxd rdx, dword [r12 + 0x38]
xor eax, eax
movsxd rbx, dword [r12 + 0x34]
mov r9d, eax
mov r11, qword [rbp - 0x30]
mov r15d, eax
mov dword [rsp + 0x60], eax
add rbx, r12
mov dword [rbp - 0x6c], eax
add rdx, r12
mov eax, dword [r12 + 0x2c]
mov dword [rdi + 0x110], eax
mov eax, dword [rbp - 0x80]
mov qword [rbp + 0x28], rbx
cmp eax, dword [r12 + 0x30]
jge 0x140029060
lea rax, [r11 + r11*2]
mov ecx, dword [rdx + rax*8 + 4]
mov dword [rdi + 0x110], ecx
cmp r13, r11
jge 0x1400292e6
mov r15d, dword [rbp - 0x64]
lea rax, [r13*2]
add rax, r13
sub r11, r13
mov qword [rbp - 0x30], r11
lea r14, [rax*8 + 4]
add r14, rdx
xor eax, eax
mov ecx, dword [r14 + 4]
mov r8d, dword [r14]
lea r13d, [rcx + r8]
mov dword [rbp - 0x50], r13d
test ecx, ecx
je 0x1400292c4
mov eax, r10d
sub eax, dword [r14 + 0x10]
cdq
idiv ecx
mov dword [rbp - 0x80], eax
cmp r15d, dword [r12 + 0x24]
jl 0x1400290d1
cmp r15d, dword [r12 + 0x28]
jge 0x1400290d1
mov r11d, dword [rbp + 0x88]
add r11d, dword [rsp + 0x50]
xor eax, eax
mov r12d, eax
jmp 0x1400290de
mov r11d, dword [rbp + 0x88]
mov r12d, 1
mov rdx, qword [rbp + 0x20]
mov qword [rbp - 0x40], r12
cmp r15d, dword [rdx + 0x24]
jne 0x140029109
mov ecx, dword [rsp + 0x48]
add ecx, dword [rbp + 0x8c]
mov dword [rbp - 8], r9d
add r9d, ecx
mov dword [rsp + 0x60], r9d
mov dword [rdi + 0x10c], r8d
cmp r15d, dword [rdx + 0x28]
jne 0x140029130
mov ecx, dword [rbp + 0x94]
mov eax, dword [r14]
add ecx, esi
add ecx, dword [rsp + 0x54]
add r9d, ecx
mov dword [rdi + 0x110], eax
mov dword [rsp + 0x60], r9d
mov dword [rbp - 0x6c], r9d
movsxd r8, dword [r14]
movsxd r10, r13d
mov rcx, r8
mov dword [rbp - 0x70], r8d
cmp r8, r10
jge 0x1400292aa
mov edi, dword [rbp - 0x80]
lea rsi, [rbp + 0xb8]
imul rax, rcx, 0x2c
add rsi, rax
lea rax, [r8 + r8*4]
lea rbx, [rbx + rax*4]
add rbx, 0xc
sub r10, rcx
mov qword [rbp - 0x10], rbx
mov qword [rbp - 0x38], r10
mov ecx, dword [rsi + 0x10]
mov edx, edi
mov eax, dword [r14 + 8]
sub edx, ecx
mov dword [rsi], eax
mov r15d, edx
mov dword [rsi - 4], edx
lea eax, [r11 + rcx]
mov dword [rsi - 0x14], r9d
mov dword [rsi - 0x18], eax
xor ecx, ecx
mov eax, dword [rbx - 0xc]
add eax, edi
add r11d, eax
mov dword [rbp - 0x80], r11d
test r12, r12
je 0x1400291d1
cmp r8d, dword [r14]
jne 0x1400291b9
mov ecx, dword [rsp + 0x50]
add r11d, ecx
mov dword [rbp - 0x80], r11d
lea eax, [rcx + rdx]
xor ecx, ecx
mov edx, eax
mov dword [rsi - 4], eax
lea eax, [r13 - 1]
mov r15d, edx
cmp r8d, eax
jne 0x1400291d1
mov r15d, dword [rsp + 0x4c]
add r15d, edx
mov dword [rsi - 4], r15d
cmp dword [rsi + 8], ecx
jne 0x140029277
cmp dword [rbx], ecx
jl 0x140029277
mov rcx, qword [rsp + 0x70]
call fcn.14004708c
mov r12d, dword [rbx]
xor eax, eax
mov r13d, r15d
cmp dword [rsi + 4], eax
je 0x140029226
test r12d, r12d
js 0x140029226
mov rcx, qword [rsp + 0x70]
mov edx, r12d
call fcn.140078d84
mov rcx, qword [rsp + 0x70]
mov ebx, dword [rax + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebx, ebx
cmovs ebx, r12d
mov r12d, ebx
mov rbx, qword [rbp - 0x10]
mov r15, qword [rsp + 0x70]
mov edx, r12d
mov rcx, r15
call fcn.140078d84
test rax, rax
je 0x140029255
mov edx, dword [rax + 0x1c]
lea rcx, [rax + 0x54]
mov r8d, dword [rax + 0x2c]
mov r9d, r13d
mov dword [rsp + 0x20], edx
mov edx, dword [rax + 0x14]
call fcn.1400872f4
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov r8d, dword [rbp - 0x70]
mov r9d, dword [rsp + 0x60]
mov r10, qword [rbp - 0x38]
mov r11d, dword [rbp - 0x80]
mov r12, qword [rbp - 0x40]
mov r13d, dword [rbp - 0x50]
inc r8d
add rbx, 0x14
add rsi, 0x2c
mov dword [rbp - 0x70], r8d
sub r10, 1
mov qword [rbp - 0x10], rbx
mov qword [rbp - 0x38], r10
jne 0x14002916e
mov rdi, qword [rbp + 0x80]
mov esi, dword [rbp - 0x7c]
mov rbx, qword [rbp + 0x28]
mov r15d, dword [rbp - 0x64]
mov eax, dword [r14 + 8]
add eax, dword [r14 - 4]
mov r12, qword [rbp + 0x20]
add r9d, eax
mov r11, qword [rbp - 0x30]
xor eax, eax
mov dword [rsp + 0x60], r9d
mov r10d, dword [rsp + 0x44]
inc r15d
add r14, 0x18
mov dword [rbp - 0x64], r15d
sub r11, 1
mov qword [rbp - 0x30], r11
jne 0x14002908c
mov r15d, dword [rbp - 0x6c]
mov r8d, dword [rsp + 0x40]
xor r11d, r11d
cmp dword [rbp - 4], r11d
lea r10d, [r11 + 2]
cmove r8d, r10d
inc r8d
mov dword [rsp + 0x40], r8d
cmp r8d, r10d
jge 0x140029327
mov r14, qword [rbp + 0x10]
mov r13d, dword [rsp + 0x44]
mov r15, qword [rbp - 0x58]
mov r9d, dword [rsp + 0x78]
jmp 0x140027ecb
mov rcx, qword [rbp + 0x18]
jmp 0x140029650
mov esi, dword [rbp + 0x8c]
lea rcx, [rdi + 0x30]
add esi, dword [rbp + 0x94]
add esi, dword [rsp + 0x7c]
add esi, dword [rsp + 0x54]
mov ebx, dword [rbp + 0x90]
add ebx, dword [rbp + 0x88]
add ebx, dword [rsp + 0x4c]
add ebx, dword [rsp + 0x50]
mov eax, dword [rdi + 0x38]
add esi, dword [rsp + 0x48]
add ebx, dword [rsp + 0x44]
sub eax, dword [rcx]
cmp ebx, eax
jne 0x14002936e
mov eax, dword [rdi + 0x3c]
sub eax, dword [rdi + 0x34]
cmp esi, eax
je 0x1400293b3
mov r9d, ebx
mov dword [rsp + 0x20], esi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_SetRect]
xor eax, eax
cmp dword [rdi + 0x10], eax
jl 0x140029397
mov eax, dword [rdi + 0x80]
sub eax, dword [rdi + 0x88]
add eax, ebx
jmp 0x140029399
mov eax, ebx
mov r13, qword [rbp + 0x10]
cdq
sub eax, edx
sar eax, 1
mov dword [rdi + 0x60], eax
mov dword [rdi + 0x64], eax
mov eax, 2
or dword [r13 + 0x10], eax
jmp 0x1400293b7
mov r13, qword [rbp + 0x10]
mov r8d, dword [rbp - 8]
lea rcx, [rdi + 0xe4]
mov r9d, ebx
mov dword [rsp + 0x20], esi
xor edx, edx
call qword [sym.imp.USER32.dll_SetRect]
xor edx, edx
test r15d, r15d
je 0x1400293df
mov dword [rdi + 0xf0], r15d
mov eax, dword [rdi + 0x2c]
cmp dword [rbp - 0x60], edx
je 0x1400293ec
or eax, 0x10
jmp 0x1400293f3
test al, 0x10
je 0x1400293f6
xor eax, 0x10
mov dword [rdi + 0x2c], eax
test al, al
jns 0x140029401
btc eax, 7
mov dword [rdi + 0x2c], eax
cmp dword [rbp - 0x74], edx
je 0x14002940b
or eax, 0x40
jmp 0x140029412
test al, 0x40
je 0x140029415
xor eax, 0x40
mov dword [rdi + 0x2c], eax
mov ecx, 0x100
cmp dword [rbp], edx
je 0x140029423
or eax, ecx
jmp 0x140029429
test ecx, eax
je 0x14002942c
xor eax, ecx
mov dword [rdi + 0x2c], eax
mov rcx, qword [rbp + 0x18]
movsxd r14, dword [rdi + 0x11c]
imul r12d, dword [r12 + 0x2c], 0x2c
call fcn.1400226a8
mov r15d, eax
mov esi, r12d
sub r15d, r14d
sub esi, r14d
add r15d, r12d
mov ebx, eax
test esi, esi
jle 0x1400294ce
mov rdi, qword [rbp + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, r15d
mov rcx, rdi
call fcn.140044914
mov dword [rsp + 0x5c], eax
test eax, eax
jne 0x140029656
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [rsp + 0x58]
mov rcx, rax
mov r13, rax
call fcn.140021bb8
movsxd rcx, dword [rsp + 0x58]
mov rdi, rax
mov eax, ebx
sub eax, dword [r13 + rcx*4 + 0xc4]
sub eax, r14d
sub eax, 0x158
je 0x1400294ce
movsxd rcx, r12d
lea rdx, [rdi + 0x158]
add rcx, 0x158
movsxd r8, eax
add rcx, rdi
add rdx, r14
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rbp + 0x20]
imul eax, dword [rax + 0x2c], 0x2c
test eax, eax
je 0x1400294f0
movsxd r8, eax
lea rcx, [rdi + 0x158]
lea rdx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_memmove
test esi, esi
jns 0x140029568
movsxd rax, dword [rsp + 0x58]
sub ebx, dword [r13 + rax*4 + 0xc4]
sub ebx, r14d
sub ebx, 0x158
je 0x14002952b
movsxd rcx, r12d
lea rdx, [r14 + 0x158]
add rcx, 0x158
movsxd r8, ebx
add rcx, rdi
add rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov rbx, qword [rbp + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, r15d
mov rcx, rbx
call fcn.140044914
mov rcx, rbx
mov dword [rsp + 0x5c], eax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r14d, dword [rsp + 0x58]
mov rcx, rax
mov edx, r14d
mov r13, rax
call fcn.140021bb8
mov rdi, rax
jmp 0x140029571
mov rbx, qword [rbp + 0x18]
mov r14d, dword [rsp + 0x58]
xor r15d, r15d
test esi, esi
je 0x1400295d3
lea ecx, [r14 + 1]
cmp ecx, dword [r13 + 0x8c]
jge 0x1400295a4
movsxd rax, ecx
lea rdx, [rax*4 + 0xc4]
add rdx, r13
add dword [rdx], esi
inc ecx
lea rdx, [rdx + 4]
cmp ecx, dword [r13 + 0x8c]
jl 0x140029593
mov eax, dword [r13 + 0xa0]
test eax, eax
je 0x1400295b8
add eax, esi
mov dword [r13 + 0xa0], eax
mov eax, dword [r13 + 0xa4]
test eax, eax
je 0x1400295cc
add eax, esi
mov dword [r13 + 0xa4], eax
mov dword [rdi + 0x11c], r12d
mov rax, qword [rbp + 0x20]
mov eax, dword [rax + 0x2c]
mov dword [rdi + 0x114], eax
cmp dword [rbp - 0x44], r15d
je 0x14002964d
mov rsi, qword [rbp - 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [rdi + 0xa4], r15d
mov r10, rax
mov ecx, dword [rax + 0x1c]
mov dword [rdi + 0xa8], ecx
mov edx, dword [rdi + 0x2c]
test dl, 0x40
je 0x140029614
xor edx, 0x40
mov dword [rdi + 0x2c], edx
lea rax, [rdi + 0xac]
mov dword [rdi + 0xb8], r15d
lea r9, [rdi + 0xa0]
mov qword [rsp + 0x20], rax
lea r8, [rdi + 0x9c]
mov rcx, r10
lea rdx, [rdi + 0x98]
call fcn.140027b40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rbp + 0x6e0]
xor rcx, rsp
call fcn.14008a940
add rsp, 0x7f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14008aa78
int3