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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2d0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rsp + 0x320], rbx
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x2c8], rax
mov rdi, r8
movsxd rbp, edx
mov dword [rsp + 0x38], ebp
mov r15, rcx
mov ecx, 0x58
call sub.MFC80U.DLL_Ordinal_774
mov r14, rax
test rax, rax
je 0x14018c1ab
lea rax, [0x1403b4488]
mov qword [r14], rax
xor r13d, r13d
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], r13
mov qword [r14 + 0x20], r13
mov qword [r14 + 0x48], r13
mov dword [r14 + 0x50], r13d
jmp 0x14018c1b1
xor r13d, r13d
mov r14, r13
mov qword [rsp + 0x60], r14
cmp dword [r15 + 0x198], 0
je 0x14018c1c8
mov dword [r14 + 0x50], 1
mov eax, dword [rdi]
mov dword [r14 + 0x28], eax
mov eax, dword [rdi + 4]
mov dword [r14 + 0x2c], eax
mov eax, dword [rdi + 8]
mov dword [r14 + 0x30], eax
mov eax, dword [rdi + 0xc]
mov dword [r14 + 0x34], eax
mov eax, dword [rdi + 0x10]
mov dword [r14 + 0x38], eax
mov eax, dword [rdi + 0x14]
mov dword [r14 + 0x3c], eax
mov eax, dword [rdi + 0x18]
mov dword [r14 + 0x40], eax
mov qword [r14 + 0x48], r15
test ebp, ebp
jg 0x14018c231
lea rax, [r15 + 0xa8]
test rax, rax
je 0x14018c22a
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x14018c22a
lea rdx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x5c]
sub eax, dword [rsp + 0x54]
jmp 0x14018c28a
mov eax, 0x14
jmp 0x14018c28a
mov rcx, qword [r15 + 0x168]
test rcx, rcx
jne 0x14018c242
mov rax, r13
jmp 0x14018c250
mov rax, qword [r15 + 0x170]
sub rax, rcx
sar rax, 3
cmp ebp, eax
jl 0x14018c25e
mov rcx, r15
call fcn.14018a980
jmp 0x14018c28a
test rcx, rcx
je 0x14018c276
mov rax, qword [r15 + 0x170]
sub rax, rcx
sar rax, 3
cmp rbp, rax
jb 0x14018c27c
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rax, qword [r15 + 0x168]
mov rcx, qword [rax + rbp*8]
mov eax, dword [rcx + 0x44]
mov dword [r14 + 0x44], eax
mov rbx, rbp
lea rsi, [r15 + 0x160]
nop
nop
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14018c2e7
mov rax, qword [rsi + 0x10]
sub rax, rcx
sar rax, 3
cmp rbx, rax
jae 0x14018c2e7
test rcx, rcx
je 0x14018c2ce
mov rax, qword [rsi + 0x10]
sub rax, rcx
sar rax, 3
cmp rbx, rax
jb 0x14018c2d4
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rax, qword [rsi + 8]
mov rcx, qword [rax + rbx*8]
mov eax, dword [rdi]
add dword [rcx + 0x44], eax
add rbx, 1
jmp 0x14018c2a0
xor edx, edx
mov r8d, 0x220
lea rcx, [rsp + 0xa0]
call sub.ntdll.dll_memset
mov edi, r13d
mov dword [rsp + 0x34], r13d
xor r9d, r9d
xor r8d, r8d
mov edx, Ordinal_4611
mov rcx, qword [r15 + 0xe8]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x14018c506
lea rbp, [r14 + 8]
movabs r12, 0x7878787878787879
movzx ebx, byte [rsp + 0x30]
nop
nop
nop
movsxd r8, edi
lea r9, [rsp + 0x80]
mov edx, Ordinal_4618
mov rcx, qword [r15 + 0xe8]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x14018c371
mov eax, dword [rsp + 0x88]
sub eax, dword [rsp + 0x80]
jmp 0x14018c374
mov eax, r13d
mov dword [rsp + 0xa0], eax
mov r8, qword [rbp + 8]
test r8, r8
jne 0x14018c389
mov r9, r13
jmp 0x14018c3a7
mov rcx, qword [rbp + 0x10]
sub rcx, r8
mov rax, r12
imul rcx
mov r9, rdx
sar r9, 8
mov rax, r9
shr rax, 0x3f
add r9, rax
test r8, r8
je 0x14018c400
mov rcx, qword [rbp + 0x18]
sub rcx, r8
mov rax, r12
imul rcx
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r9, rdx
jae 0x14018c400
mov rdi, qword [rbp + 0x10]
xor eax, eax
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], bl
mov r9, rbp
lea r8, [rsp + 0xa0]
lea edx, [rax + 1]
mov rcx, rdi
call fcn.140010610
lea r11, [rdi + 0x220]
mov qword [rbp + 0x10], r11
jmp 0x14018c4d7
mov r12, qword [rbp + 0x10]
cmp r8, r12
jbe 0x14018c40f
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r12
mov rdi, qword [rbp + 8]
test rdi, rdi
je 0x14018c477
mov r8, qword [rbp + 0x10]
mov rcx, r8
sub rcx, rdi
movabs rax, 0x7878787878787879
imul rcx
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x14018c477
cmp rdi, r8
jbe 0x14018c454
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub r12, rdi
movabs rax, 0x7878787878787879
imul r12
mov rdi, rdx
sar rdi, 8
mov rax, rdi
shr rax, 0x3f
add rdi, rax
jmp 0x14018c47a
mov rdi, r13
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
lea r9, [rsp + 0xa0]
mov r8d, 1
lea rdx, [rsp + 0x70]
mov rcx, rbp
call fcn.14000fda0
mov r12, qword [rbp + 8]
cmp r12, qword [rbp + 0x10]
jbe 0x14018c4b0
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
imul rdi, rdi, 0x220
lea rax, [rdi + r12]
cmp rax, qword [rbp + 0x10]
ja 0x14018c4c7
cmp rax, qword [rbp + 8]
jae 0x14018c4cd
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
movabs r12, 0x7878787878787879
mov edi, dword [rsp + 0x34]
add edi, 1
mov dword [rsp + 0x34], edi
xor r9d, r9d
xor r8d, r8d
mov edx, Ordinal_4611
mov rcx, qword [r15 + 0xe8]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp edi, eax
jne 0x14018c340
mov ebp, dword [rsp + 0x38]
mov rdx, qword [rsi + 8]
test rdx, rdx
jne 0x14018c514
mov rax, r13
jmp 0x14018c51f
mov rax, qword [rsi + 0x10]
sub rax, rdx
sar rax, 3
test rdx, rdx
je 0x14018c54a
mov rcx, qword [rsi + 0x18]
sub rcx, rdx
sar rcx, 3
cmp rax, rcx
jae 0x14018c54a
mov rcx, qword [rsi + 0x10]
mov qword [rcx], r14
add rcx, 8
mov qword [rsi + 0x10], rcx
mov eax, ebp
jmp 0x14018c5e2
mov rbx, qword [rsi + 0x10]
cmp rdx, rbx
jbe 0x14018c559
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rbx
mov rdi, qword [rsi + 8]
test rdi, rdi
je 0x14018c590
mov rcx, qword [rsi + 0x10]
mov rax, rcx
sub rax, rdi
sar rax, 3
je 0x14018c590
cmp rdi, rcx
jbe 0x14018c587
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub rbx, rdi
sar rbx, 3
jmp 0x14018c593
mov rbx, r13
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
lea r9, [rsp + 0x60]
mov r8d, 1
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140010210
mov rdi, qword [rsi + 8]
cmp rdi, qword [rsi + 0x10]
jbe 0x14018c5c6
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea rax, [rdi + rbx*8]
cmp rax, qword [rsi + 0x10]
ja 0x14018c5da
cmp rax, qword [rsi + 8]
jb 0x14018c5da
mov eax, ebp
jmp 0x14018c5e2
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, ebp
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x320]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret