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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
movzx edi, r8w
mov rsi, rcx
mov ebp, edx
cmp edx, 6
jae 0x1400135bd
cmp dword [rcx + 0x74], 0
je 0x14001302a
cmp ebp, 5
jae 0x1400135c6
mov r9, qword [rsi + 0x20]
xor ecx, ecx
mov r8, qword [rsi + 0x18]
mov rax, r9
sub rax, r8
sar rax, 3
test rax, rax
je 0x140013061
mov edx, ecx
mov rbx, qword [r8 + rdx*8]
cmp word [rbx], di
je 0x14001306c
inc ecx
mov rax, r9
sub rax, r8
mov edx, ecx
sar rax, 3
cmp rdx, rax
jb 0x140013045
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret
test rbx, rbx
je 0x140013061
mov rcx, qword [rsi + 0x10]
mov eax, 0xaaaaaaab
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r13
mov r13d, 0x7f
mul ebp
mov qword [rsp + 0x68], r14
shr edx, 1
imul edi, edx, 0xfd
mov qword [rsp + 0x20], r15
add edi, ebp
test rcx, rcx
je 0x1400130b4
mov rax, qword [rcx]
lea edx, [rdi + 0x40]
xor r9d, r9d
mov r8d, r13d
call qword [rax + InitCommonControls]
mov rcx, qword [rsi + 0x10]
lea r12, [rsi + 0x10]
test rcx, rcx
je 0x1400130d4
mov rax, qword [rcx]
lea edx, [rdi + 0x44]
xor r9d, r9d
mov r8, r13
call qword [rax + InitCommonControls]
lea r12, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
lea r15, [rsi + 0x10]
test rcx, rcx
je 0x1400130f3
mov rax, qword [rcx]
lea edx, [rdi + 0x48]
xor r9d, r9d
mov r8, r13
call qword [rax + InitCommonControls]
mov r15, r12
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14001310b
mov rax, qword [rcx]
lea edx, [rdi + 0x4c]
xor r9d, r9d
mov r8, r13
call qword [rax + InitCommonControls]
mov rcx, qword [r15]
mov r12, r15
test rcx, rcx
je 0x14001312d
mov rax, qword [rcx]
lea edx, [rdi + 0x80]
xor r9d, r9d
lea r8d, [r9 + 0xf]
call qword [rax + InitCommonControls]
lea r12, [rsi + 0x10]
mov rcx, qword [r15]
mov r14, r15
test rcx, rcx
je 0x14001314e
mov rax, qword [rcx]
lea edx, [rdi + 0x84]
xor r9d, r9d
lea r8d, [r9 + 0xf]
call qword [rax + InitCommonControls]
mov r14, r12
mov rcx, qword [r15]
test rcx, rcx
je 0x140013169
mov rax, qword [rcx]
lea edx, [rdi + 0x88]
xor r9d, r9d
lea r8d, [r9 + 0xf]
call qword [rax + InitCommonControls]
mov rcx, qword [r14]
test rcx, rcx
je 0x140013188
mov rax, qword [rcx]
lea edx, [rdi + 0x8c]
xor r9d, r9d
lea r8d, [r9 + 0xf]
call qword [rax + InitCommonControls]
lea r14, [rsi + 0x10]
movzx eax, byte [rbx + 2]
movzx edx, byte [rbx + 3]
shl dl, 3
or dl, al
cmp eax, 7
ja case.default.0x1400131ac
lea r8, [0x140000000]
mov ecx, dword [r8 + rax*4 + 0x13684]
add rcx, r8
jmp rcx
mov byte [rbp + rsi + 0xc88], 8
jmp case.default.0x1400131ac
mov byte [rbp + rsi + 0xc88], 0xa
jmp case.default.0x1400131ac
mov byte [rbp + rsi + 0xc88], InitCommonControls
jmp case.default.0x1400131ac
mov byte [rbp + rsi + 0xc88], InitCommonControls
mov rcx, qword [r14]
mov r15, r14
test rcx, rcx
je 0x1400131f6
mov rax, qword [rcx]
xor r9d, r9d
movzx r8d, dl
lea edx, [rdi + 0xb0]
call qword [rax + InitCommonControls]
lea r15, [rsi + 0x10]
mov rcx, qword [r14]
test rcx, rcx
je 0x140013220
movzx eax, byte [rbx + 0xc]
lea edx, [rdi + 0x30]
mov r10, qword [rcx]
xor r9d, r9d
shl al, 4
movzx r8d, al
movzx eax, byte [rbx + 0xb]
or r8, rax
call qword [r10 + InitCommonControls]
mov r14, r15
movzx edx, byte [rbx + 9]
mov ecx, r13d
sub ecx, edx
mov dword [rsi + rbp*4 + 0xc98], ecx
mov rcx, qword [r14]
test rcx, rcx
je 0x140013247
mov rax, qword [rcx]
mov r8d, edx
lea edx, [rdi + 0x40]
xor r9d, r9d
call qword [rax + InitCommonControls]
mov rcx, qword [r14]
mov r12, r14
test rcx, rcx
je 0x140013275
movzx eax, byte [rbx + 0xa]
lea edx, [rdi + 0x50]
mov r10, qword [rcx]
xor r9d, r9d
shl al, 6
movzx r8d, al
movzx eax, byte [rbx + 4]
or r8, rax
call qword [r10 + InitCommonControls]
lea r12, [rsi + 0x10]
mov rcx, qword [r14]
mov r15, r14
test rcx, rcx
je 0x140013294
mov rax, qword [rcx]
lea edx, [rdi + 0x60]
movzx r8d, byte [rbx + 5]
xor r9d, r9d
call qword [rax + InitCommonControls]
mov r15, r12
mov rcx, qword [r14]
test rcx, rcx
je 0x1400132ad
mov rax, qword [rcx]
lea edx, [rdi + 0x70]
movzx r8d, byte [rbx + 6]
xor r9d, r9d
call qword [rax + InitCommonControls]
mov rcx, qword [r15]
mov r12, r15
test rcx, rcx
je 0x1400132de
movzx eax, byte [rbx + 8]
lea edx, [rdi + 0x80]
mov r10, qword [rcx]
xor r9d, r9d
shl al, 4
movzx r8d, al
movzx eax, byte [rbx + 7]
or r8, rax
call qword [r10 + InitCommonControls]
lea r12, [rsi + 0x10]
mov rcx, qword [r15]
mov r14, r15
test rcx, rcx
je 0x14001330b
movzx eax, byte [rbx + 0x19]
lea edx, [rdi + 0x38]
mov r10, qword [rcx]
xor r9d, r9d
shl al, 4
movzx r8d, al
movzx eax, byte [rbx + 0x18]
or r8, rax
call qword [r10 + InitCommonControls]
mov r14, r12
movzx edx, byte [rbx + 0x16]
mov ecx, r13d
sub ecx, edx
mov dword [rsi + rbp*4 + 0xcb0], ecx
mov rcx, qword [r15]
test rcx, rcx
je 0x140013332
mov rax, qword [rcx]
mov r8d, edx
lea edx, [rdi + 0x48]
xor r9d, r9d
call qword [rax + InitCommonControls]
mov rcx, qword [r14]
mov r12, r14
test rcx, rcx
je 0x140013360
movzx eax, byte [rbx + 0x17]
lea edx, [rdi + 0x58]
mov r10, qword [rcx]
xor r9d, r9d
shl al, 6
movzx r8d, al
movzx eax, byte [rbx + 0x11]
or r8, rax
call qword [r10 + InitCommonControls]
lea r12, [rsi + 0x10]
mov rcx, qword [r14]
mov r15, r14
test rcx, rcx
je 0x14001337f
mov rax, qword [rcx]
lea edx, [rdi + 0x68]
movzx r8d, byte [rbx + 0x12]
xor r9d, r9d
call qword [rax + InitCommonControls]
mov r15, r12
mov rcx, qword [r14]
test rcx, rcx
je 0x140013398
mov rax, qword [rcx]
lea edx, [rdi + 0x78]
movzx r8d, byte [rbx + 0x13]
xor r9d, r9d
call qword [rax + InitCommonControls]
mov rcx, qword [r15]
mov r12, r15
test rcx, rcx
je 0x1400133c9
movzx eax, byte [rbx + 0x15]
lea edx, [rdi + 0x88]
mov r10, qword [rcx]
xor r9d, r9d
shl al, 4
movzx r8d, al
movzx eax, byte [rbx + 0x14]
or r8, rax
call qword [r10 + InitCommonControls]
lea r12, [rsi + 0x10]
mov rcx, qword [r15]
mov r14, r15
test rcx, rcx
je 0x1400133f6
movzx eax, byte [rbx + 0x26]
lea edx, [rdi + 0x34]
mov r10, qword [rcx]
xor r9d, r9d
shl al, 4
movzx r8d, al
movzx eax, byte [rbx + 0x25]
or r8, rax
call qword [r10 + InitCommonControls]
mov r14, r12
movzx edx, byte [rbx + 0x23]
mov ecx, r13d
sub ecx, edx
mov dword [rsi + rbp*4 + 0xcc8], ecx
mov rcx, qword [r15]
test rcx, rcx
je 0x14001341d
mov rax, qword [rcx]
mov r8d, edx
lea edx, [rdi + 0x44]
xor r9d, r9d
call qword [rax + InitCommonControls]
mov rcx, qword [r14]
mov r12, r14
test rcx, rcx
je 0x14001344b
movzx eax, byte [rbx + 0x24]
lea edx, [rdi + 0x54]
mov r10, qword [rcx]
xor r9d, r9d
shl al, 6
movzx r8d, al
movzx eax, byte [rbx + 0x1e]
or r8, rax
call qword [r10 + InitCommonControls]
lea r12, [rsi + 0x10]
mov rcx, qword [r14]
mov r15, r14
test rcx, rcx
je 0x14001346a
mov rax, qword [rcx]
lea edx, [rdi + 0x64]
movzx r8d, byte [rbx + 0x1f]
xor r9d, r9d
call qword [rax + InitCommonControls]
mov r15, r12
mov rcx, qword [r14]
test rcx, rcx
je 0x140013483
mov rax, qword [rcx]
lea edx, [rdi + 0x74]
movzx r8d, byte [rbx + 0x20]
xor r9d, r9d
call qword [rax + InitCommonControls]
mov rcx, qword [r15]
mov r12, r15
test rcx, rcx
je 0x1400134b4
movzx eax, byte [rbx + 0x22]
lea edx, [rdi + 0x84]
mov r10, qword [rcx]
xor r9d, r9d
shl al, 4
movzx r8d, al
movzx eax, byte [rbx + 0x21]
or r8, rax
call qword [r10 + InitCommonControls]
lea r12, [rsi + 0x10]
mov rcx, qword [r15]
mov r14, r15
test rcx, rcx
je 0x1400134e1
movzx eax, byte [rbx + 0x33]
lea edx, [rdi + 0x3c]
mov r10, qword [rcx]
xor r9d, r9d
shl al, 4
movzx r8d, al
movzx eax, byte [rbx + 0x32]
or r8, rax
call qword [r10 + InitCommonControls]
mov r14, r12
movzx edx, byte [rbx + 0x30]
mov r12, qword [rsp + 0x50]
sub r13d, edx
mov dword [rsi + rbp*4 + 0xce0], r13d
mov rcx, qword [r15]
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x60]
test rcx, rcx
je 0x140013516
mov rax, qword [rcx]
mov r8d, edx
lea edx, [rdi + 0x4c]
xor r9d, r9d
call qword [rax + InitCommonControls]
mov rcx, qword [r14]
mov rbp, r14
test rcx, rcx
je 0x140013544
movzx eax, byte [rbx + 0x31]
lea edx, [rdi + 0x5c]
mov r10, qword [rcx]
xor r9d, r9d
shl al, 6
movzx r8d, al
movzx eax, byte [rbx + 0x2b]
or r8, rax
call qword [r10 + InitCommonControls]
lea rbp, [rsi + 0x10]
mov rcx, qword [r14]
mov rsi, r14
test rcx, rcx
je 0x140013563
mov rax, qword [rcx]
lea edx, [rdi + 0x6c]
movzx r8d, byte [rbx + 0x2c]
xor r9d, r9d
call qword [rax + InitCommonControls]
mov rsi, rbp
mov rcx, qword [r14]
mov r14, qword [rsp + 0x68]
test rcx, rcx
je 0x140013581
mov rax, qword [rcx]
lea edx, [rdi + 0x7c]
movzx r8d, byte [rbx + 0x2d]
xor r9d, r9d
call qword [rax + InitCommonControls]
mov rcx, qword [rsi]
test rcx, rcx
je 0x140013673
movzx eax, byte [rbx + 0x2f]
lea edx, [rdi + 0x8c]
mov r10, qword [rcx]
xor r9d, r9d
shl al, 4
movzx r8d, al
movzx eax, byte [rbx + 0x2e]
or r8, rax
call qword [r10 + InitCommonControls]
mov eax, 1
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp ebp, 0xd
jae 0x140013673
cmp dword [rcx + 0x74], 0
je 0x140013673
mov rax, qword [rcx + 0xe00]
mov rdx, rax
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x1400135fb
cmp dword [rcx + 0x20], edi
jge 0x1400135ef
mov rcx, qword [rcx + 0x10]
jmp 0x1400135f5
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1400135e4
cmp byte [rdx + 0x19], 0
jne 0x140013660
cmp edi, dword [rdx + 0x20]
jl 0x140013660
lea ecx, [rbp - 5]
mov ebp, ecx
lea rbx, [rsi + 0xe10]
lea rbx, [rbx + rcx*8]
cmp rdx, rax
je 0x14001366e
lea rcx, [rsi + 0xe00]
mov dword [rsp + 0x58], edi
lea rdx, [rsp + 0x58]
call fcn.1400146a0
lea rcx, [rsi + 0xe00]
mov qword [rbx], rax
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], edi
call fcn.1400146a0
mov ecx, dword [rax + 0xc]
mov eax, 1
mov dword [rsi + rbp*4 + 0xeb0], ecx
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea ebx, [rbp - 5]
lea rbx, [rbx + 0x1c2]
lea rbx, [rsi + rbx*8]
xor ecx, ecx
mov qword [rbx], rcx
mov eax, 1
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret