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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x140164008]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov eax, dword [rdx + 0x3c]
mov rdi, rdx
sub eax, dword [rdx + 0x34]
mov r14, rcx
mov r12d, r8d
mov dword [rsp + 0x54], r12d
test eax, eax
jle 0x14004d212
mov rdx, qword [rcx + 0x7b8]
mov rax, qword [rdx + 0x160]
mov esi, dword [rdx + 0x2d4]
mov dword [rsp + 0x8c], esi
cmp dword [rax + 0x134], 0
je 0x14004cb25
mov ebp, dword [rax + 0x1b0]
jmp 0x14004cb2b
mov ebp, dword [rax + 0x128]
xor r11d, r11d
mov dword [rsp + 0x58], ebp
mov qword [rsp + 0x78], r11
mov r13d, CMapStringToOb::HashKey
lea r15d, [r11 + 1]
test ebp, ebp
je 0x14004cc84
movzx eax, word [rdx + 0x2d8]
add rcx, 0x1e0
mov edx, r15d
xor eax, dword [rcx]
and eax, 7
xor dword [rcx], eax
call fcn.14003d278
mov edx, r15d
mov rcx, rax
and dword [rax], 0xfff8000f
or dword [rax], 8
call fcn.14003d278
mov rcx, qword [r14 + 0x7b8]
xor edx, edx
mov rbx, rax
mov rcx, qword [rcx + 0x160]
call fcn.1400c9544
shr eax, 0x18
cmp al, 0x40
jbe 0x14004cc03
mov rcx, qword [r14 + 0x7b8]
xor edx, edx
mov rcx, qword [rcx + 0x160]
call fcn.1400c9544
shr eax, 0x18
cmp al, r13b
ja 0x14004cc03
lea rdx, [0x14002c950]
lea rcx, [0x14016e1ac]
call sub.mfc140u.dll_CFontDialog::GetCharFormat
mov rsi, rax
test rax, rax
je 0x14004d23d
mov rax, qword [r14 + 0x7b8]
xor edx, edx
mov rcx, qword [rax + 0x160]
call fcn.1400c9544
shr eax, 0x18
mov edx, r13d
sub edx, eax
mov rcx, rsi
call fcn.14005a3cc
mov esi, dword [rsp + 0x8c]
jmp 0x14004cc18
mov rax, qword [r14 + 0x7b8]
xor edx, edx
mov rcx, qword [rax + 0x160]
call fcn.1400c9544
mov edx, eax
mov r9d, 3
shr eax, 0x18
mov r8d, eax
lea ecx, [rax - 0x41]
cmp cl, 0xbd
cmovbe eax, r9d
and dword [rbx], 0xffe7ffff
and eax, r9d
shl eax, 0x13
or dword [rbx], eax
cmp cl, 0xbd
ja 0x14004cc49
mov edx, r13d
sub edx, r8d
xor edx, dword [rbx + 4]
mov rcx, rbx
and edx, 0xffffff
xor dword [rbx + 4], edx
mov edx, r15d
call fcn.14003d278
mov rax, qword [rdi + 0x70]
mov edx, dword [rax + r12*4]
cmp edx, dword [rdi + 0x1c]
jbe 0x14004cc7c
cmp edx, dword [rdi + 0x14]
jne 0x14004cc7c
mov r11, r15
mov qword [rsp + 0x78], r15
jmp 0x14004cc84
xor r11d, r11d
mov qword [rsp + 0x78], r11
mov eax, esi
mov r13d, 4
neg eax
sbb rbx, rbx
neg rbx
add rbx, 2
mov qword [rsp + 0x80], rbx
mov r8d, dword [rdi + 4]
xor eax, eax
cmp r13d, 4
setne al
xor r15d, r15d
mov dword [rsp + 0x6c], r15d
lea esi, [rax + 2]
mov qword [rsp + 0x60], rsi
test r8d, r8d
je 0x14004d189
mov ecx, r12d
mov rax, qword [rdi + 0x60]
mov r10, qword [rdi + 0x58]
mov edx, dword [rax + rcx*4]
mov rax, qword [rdi + 0x50]
mov dword [rdi + 0x34], edx
mov eax, dword [rax + rcx*4]
add eax, edx
mov dword [rdi + 0x3c], eax
mov rax, qword [rdi + 0x68]
mov ecx, dword [rax + r15*4]
mov rax, qword [rdi + 0x80]
mov dword [rdi + 0x30], ecx
add ecx, dword [r10 + r15*4]
mov dword [rdi + 0x38], ecx
mov ecx, r12d
imul ecx, r8d
add ecx, r15d
mov qword [rsp + 0x90], rcx
mov r8, qword [rax + rcx*8]
lea rdx, [rcx + rcx]
test r8, r8
je 0x14004cd3a
lea r12, [rdi + 0x88]
mov rax, qword [r12]
movzx ecx, word [rdx + rax]
test r13d, ecx
jbe 0x14004cd3a
mov ecx, 1
mov dword [rsp + 0x68], ecx
jmp 0x14004cd8b
xor ecx, ecx
lea rax, [rdi + 0x88]
mov dword [rsp + 0x68], ecx
mov r12, rax
test ebp, ebp
je 0x14004d167
test r11, r11
je 0x14004cd6d
cmp r13d, 4
je 0x14004cd6d
mov rax, qword [rax]
mov r11d, 0x1000
test word [rdx + rax], r11w
ja 0x14004cd8b
cmp rsi, rbx
jne 0x14004d167
mov rax, qword [r12]
mov r11d, 0x200
test word [rdx + rax], r11w
jbe 0x14004d167
mov eax, dword [r10 + r15*4]
lea ebp, [r15 + 1]
mov dword [rsp + 0x88], ebp
mov dword [rsp + 0x50], eax
test ecx, ecx
je 0x14004cdba
test dword [r8 + 8], 0x100
je 0x14004d163
mov rax, qword [r8 + 0x30]
lea rsi, [rax + rsi*8]
jmp 0x14004cdc1
lea rsi, [r14 + 0x1e0]
xor eax, eax
mov qword [rsp + 0x70], rsi
cmp dword [rdi + 0xa0], eax
lea r15, [rdi + 0xd0]
mov rdx, r15
mov rcx, rsi
sete al
add r8, 0x10
xor r9d, r9d
mov dword [rsp + 0x20], eax
call fcn.14003c690
mov ecx, dword [rdi + 4]
mov dword [rsp + 0x5c], eax
cmp ebp, ecx
jae 0x14004d072
test eax, eax
je 0x14004cf5a
imul ecx, dword [rsp + 0x54]
mov rax, qword [rdi + 0x80]
add ecx, ebp
mov r8, qword [rax + rcx*8]
lea rsi, [rcx + rcx]
test r8, r8
je 0x14004ce34
mov rax, qword [r12]
movzx ecx, word [rsi + rax]
test r13d, ecx
jbe 0x14004ce34
mov ebp, 1
jmp 0x14004ce36
xor ebp, ebp
cmp dword [rsp + 0x68], 0
jne 0x14004ce88
cmp dword [rsp + 0x58], 0
je 0x14004ce88
cmp qword [rsp + 0x78], 0
je 0x14004ce61
cmp r13d, 4
je 0x14004ce61
mov rax, qword [r12]
mov ecx, 0x1000
test word [rsi + rax], cx
ja 0x14004ce7c
mov rcx, qword [rsp + 0x60]
cmp rcx, rbx
jne 0x14004ce8d
mov rax, qword [r12]
mov edx, 0x200
test word [rsi + rax], dx
jbe 0x14004ce8d
jmp 0x14004ce81
mov rcx, qword [rsp + 0x60]
mov eax, 1
jmp 0x14004ce8f
mov rcx, qword [rsp + 0x60]
xor eax, eax
test ebp, ebp
jne 0x14004cea4
test eax, eax
je 0x14004d069
lea rcx, [r14 + 0x1e0]
jmp 0x14004ceac
mov rax, qword [r8 + 0x30]
lea rcx, [rax + rcx*8]
xor eax, eax
lea rbx, [rdi + 0xdc]
cmp dword [rdi + 0xa0], eax
mov rdx, rbx
sete al
add r8, 0x10
xor r9d, r9d
mov dword [rsp + 0x20], eax
call fcn.14003c690
test eax, eax
je 0x14004d061
mov r8d, InitCommonControls
mov rdx, rbx
mov rcx, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14004d061
mov rcx, qword [r12]
test ebp, ebp
je 0x14004cf07
movzx eax, r13w
not ax
and ax, word [rcx + rsi]
jmp 0x14004cf13
movzx eax, word [rcx + rsi]
mov edx, 0xfdff
and ax, dx
mov ebp, dword [rsp + 0x88]
mov r8d, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov word [rcx + rsi], ax
mov rax, qword [rdi + 0x58]
mov ecx, dword [rdi + 4]
add r8d, dword [rax + rbp*4]
inc ebp
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x88], ebp
cmp ebp, ecx
jb 0x14004ce05
mov rsi, qword [rsp + 0x70]
mov eax, dword [rsp + 0x5c]
jmp 0x14004d077
mov r15, qword [rsp + 0x80]
imul ecx, dword [rsp + 0x54]
mov rax, qword [rdi + 0x80]
add ecx, ebp
mov rdx, qword [rax + rcx*8]
lea rbx, [rcx + rcx]
test rdx, rdx
je 0x14004cf91
mov rax, qword [r12]
movzx ecx, word [rbx + rax]
test r13d, ecx
jbe 0x14004cf91
mov esi, 1
jmp 0x14004cf93
xor esi, esi
cmp dword [rsp + 0x68], 0
jne 0x14004cfe7
cmp dword [rsp + 0x58], 0
je 0x14004cfe7
cmp qword [rsp + 0x78], 0
je 0x14004cfbe
cmp r13d, 4
je 0x14004cfbe
mov rax, qword [r12]
mov ecx, 0x1000
test word [rbx + rax], cx
ja 0x14004cfdb
mov rcx, qword [rsp + 0x60]
cmp rcx, r15
jne 0x14004cfec
mov rax, qword [r12]
mov r8d, 0x200
test word [rbx + rax], r8w
jbe 0x14004cfec
jmp 0x14004cfe0
mov rcx, qword [rsp + 0x60]
mov eax, 1
jmp 0x14004cfee
mov rcx, qword [rsp + 0x60]
xor eax, eax
test esi, esi
jne 0x14004cfff
test eax, eax
je 0x14004d05c
lea rcx, [r14 + 0x1e0]
jmp 0x14004d007
mov rax, qword [rdx + 0x30]
lea rcx, [rax + rcx*8]
mov rdx, qword [rsp + 0x70]
mov r8d, 8
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14004d05c
mov rcx, qword [r12]
test esi, esi
je 0x14004d030
movzx eax, r13w
not ax
and ax, word [rcx + rbx]
jmp 0x14004d03c
movzx eax, word [rcx + rbx]
mov edx, 0xfdff
and ax, dx
mov edx, dword [rsp + 0x50]
mov word [rcx + rbx], ax
mov rax, qword [rdi + 0x58]
mov ecx, dword [rdi + 4]
add edx, dword [rax + rbp*4]
inc ebp
mov dword [rsp + 0x50], edx
cmp ebp, ecx
jb 0x14004cf62
mov rbx, r15
jmp 0x14004d069
mov rbx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x5c]
mov rsi, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x50]
cmp dword [rsp + 0x68], 0
jne 0x14004d0f0
test eax, eax
jne 0x14004d0f0
mov rax, qword [r14]
mov ecx, dword [rdi + 0xa8]
mov r12d, dword [rsp + 0x54]
add ecx, r12d
cmp dword [rsp + 0x8c], 0
mov r10, qword [rax + 0x9f8]
je 0x14004d0ad
mov r9d, dword [rdi + 0x3c]
dec r9d
jmp 0x14004d0b1
mov r9d, dword [rdi + 0x34]
and dword [rsp + 0x40], 0
mov rdx, qword [rdi + 0xb8]
mov dword [rsp + 0x38], ecx
mov rcx, r14
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r8d
mov r8d, dword [rdi + 0x30]
call r10
mov rsi, qword [rsp + 0x60]
mov r15d, dword [rsp + 0x6c]
mov ebp, dword [rsp + 0x58]
jmp 0x14004d16c
mov ecx, dword [rdi + 0x30]
mov rdx, rsi
mov eax, dword [rdi + 0x34]
mov r9d, dword [rsp + 0x60]
mov dword [rsp + 0x9c], eax
lea eax, [rcx + r8]
mov dword [rsp + 0x98], ecx
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x98]
mov dword [rsp + 0xa0], eax
mov eax, dword [rdi + 0x3c]
mov dword [rsp + 0xa4], eax
mov rax, qword [rdi + 0x80]
mov rcx, qword [rax + rcx*8]
mov rax, qword [rdi + 0xb8]
add rcx, 0x10
mov qword [rsp + 0x28], rcx
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14004ab44
mov rsi, qword [rsp + 0x60]
mov r15d, dword [rsp + 0x6c]
mov ebp, dword [rsp + 0x58]
mov r12d, dword [rsp + 0x54]
mov r8d, dword [rdi + 4]
inc r15d
mov r11, qword [rsp + 0x78]
mov dword [rsp + 0x6c], r15d
mov ecx, r12d
cmp r15d, r8d
jb 0x14004ccc9
test r11, r11
je 0x14004d1fd
mov rax, qword [r14 + 0x7b8]
lea rbx, [r14 + 0x1e0]
mov edx, 1
mov rcx, qword [rax + 0x160]
call fcn.1400c9544
mov r9d, 3
mov ecx, eax
shr ecx, 0x18
mov r8d, ecx
lea edx, [rcx - 0x41]
cmp dl, 0xbd
cmovbe ecx, r9d
and dword [rbx], 0xffe7ffff
and ecx, r9d
shl ecx, 0x13
or dword [rbx], ecx
cmp dl, 0xbd
ja 0x14004d1e0
mov eax, CMapStringToOb::HashKey
sub eax, r8d
xor eax, dword [rbx + 4]
mov edx, 1
and eax, 0xffffff
mov rcx, rbx
xor dword [rbx + 4], eax
call fcn.14003d278
mov r11, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
add r13d, r13d
cmp r13d, 8
jle 0x14004cca0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14002fdd0
mov rbx, qword [rsp + 0x108]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call sub.mfc140u.dll_AfxRegDeleteKey
int3