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

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12d, r9d
mov r15, rdx
mov rbp, rcx
xor r13b, r13b
call fcn.140050be0
mov rdi, qword [r15 + 0x10]
mov rbx, rax
test rdi, rdi
je 0x140042cd2
mov rsi, qword [rsp + 0x98]
mov ebp, InitCommonControls
mov r8d, dword [rsi]
test r8d, r8d
je 0x140042cb9
cmp qword [rdi + 0x48], 0
mov r13b, 1
je 0x140042c24
mov r9d, dword [rbx + 0x3c]
mov edx, 0x4c
mov rcx, rbx
add r9d, 2
mov dword [rsp + 0x20], 0
call fcn.140068970
mov rax, qword [rbx + 0x30]
movsxd r14, dword [rbx + 0x3c]
mov r15d, dword [rsi]
cmp dword [rax + 0x60], r14d
jg 0x140042c46
mov edx, 1
mov rcx, rbx
call fcn.140029ca0
test eax, eax
jne 0x140042c77
mov rax, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rcx, [r14 + r14*2]
mov word [rax + rcx*8], 0x6e
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], 0
mov qword [rax + rcx*8 + 0x10], 0
mov r15, qword [rsp + 0x78]
xor al, al
cmp dword [rsp + 0xb0], 0
movzx edx, al
mov eax, dword [rdi + 0x64]
cmovne edx, ebp
and al, 3
cmp al, 2
jne 0x140042c9f
test byte [r15 + 0x48], 0x20
je 0x140042c9f
or dl, 1
test dl, dl
je 0x140042cb9
mov r8, qword [rbx + 8]
test r8, r8
je 0x140042cb9
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [r8 + rcx*8 - 0x15], dl
mov rdi, qword [rdi + 0x28]
inc r12d
add rsi, 4
test rdi, rdi
jne 0x140042bf1
mov rbp, qword [rsp + 0x70]
test byte [r15 + 0x48], 0x20
jne 0x140042e7b
mov r14d, dword [rsp + 0x90]
movzx eax, byte [rbp + 0x1f]
lea edi, [r14 + 1]
test al, al
jne 0x140042cf9
inc dword [rbp + 0x54]
mov esi, dword [rbp + 0x54]
jmp 0x140042d05
dec al
movzx eax, al
mov byte [rbp + 0x1f], al
mov esi, dword [rbp + rax*4 + 0x24]
movsx r9d, word [r15 + 0x42]
mov r8d, edi
mov edx, 0x31
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.140068970
test r13b, r13b
jne 0x140042d31
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call fcn.140064220
movsx eax, word [r15 + 0x42]
lea r9d, [rdi - 1]
lea rcx, [rbp + 0x94]
add r9d, eax
xor r12d, r12d
mov r8d, 0xa
nop dword [rax]
mov edx, dword [rcx]
cmp edx, edi
jl 0x140042d7a
cmp edx, r9d
jg 0x140042d7a
cmp byte [rcx - 6], r12b
je 0x140042d77
movzx eax, byte [rbp + 0x1f]
cmp al, 8
jae 0x140042d73
movzx eax, al
mov dword [rbp + rax*4 + 0x24], edx
inc byte [rbp + 0x1f]
mov byte [rcx - 6], r12b
mov dword [rcx], r12d
add rcx, 0x14
dec r8
jne 0x140042d50
cmp byte [rbp + 0x1e], r12b
je 0x140042d8e
xor dil, dil
jmp 0x140042da7
cmp dword [rsp + 0xa0], r12d
mov edi, 2
mov eax, 4
cmovne edi, eax
or dil, 1
cmp dword [rsp + 0xa8], r12d
je 0x140042db5
or dil, 8
cmp dword [rsp + 0xb0], r12d
je 0x140042dc3
or dil, 0x10
mov r8d, dword [rsp + 0x80]
mov r9d, esi
mov edx, 0x4b
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call fcn.140068970
cmp byte [rbp + 0x1e], r12b
jne 0x140042e65
mov r8, qword [rbx + 8]
mov rsi, qword [r15]
mov rcx, qword [rbx]
test r8, r8
je 0x140042e5b
cmp byte [rcx + 0x50], r12b
jne 0x140042e5b
mov eax, dword [rbx + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbp, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbp + 0x10]
call fcn.140027190
mov qword [rbp + 0x10], r12
test rsi, rsi
jne 0x140042e2c
mov qword [rbp + 0x10], r12
mov byte [rbp + 1], r12b
jmp 0x140042e65
mov rax, rsi
cmp byte [rsi], r12b
je 0x140042e3c
inc rax
cmp byte [rax], r12b
jne 0x140042e34
mov rcx, qword [rbx]
sub eax, esi
mov rdx, rsi
and eax, 0x3fffffff
movsxd r8, eax
call fcn.140044a70
mov byte [rbp + 1], 0xff
mov qword [rbp + 0x10], rax
jmp 0x140042e65
mov r8, rsi
xor edx, edx
call fcn.140027190
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140042e7b
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret