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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov rax, qword [0x18009b1a0]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009a6b0]
mov eax, dword [rcx + rax]
xor eax, 0xffffd880
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009a6b0]
mov dword [rdx + rcx], eax
cmp qword [rsp + 0x160], 0
jne 0x1800121ca
xor eax, eax
jmp 0x18001294a
mov dword [rsp + 0x8c], 2
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x8c]
movsxd rcx, ecx
lea rdx, [0x18009a6b0]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0x180], 0
je 0x18001221c
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x90], rax
jmp 0x18001223d
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x8c], 0
jne 0x18001225f
xor eax, eax
jmp 0x18001294a
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x88]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 0
mov eax, dword [rsp + 0x88]
cmp eax, 0x1e12ba01
jne 0x180012323
lea r8, str.Local1359308640195235090015598041483305743217964261642889580928x
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rsp + 0xd8], rax
jmp 0x18001234b
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009a6b0]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009a6b0]
mov dword [rdx + rcx], eax
mov eax, SafeArrayDestroy
mov word [rsp + 0x30], ax
movsx rax, word [rsp + 0x30]
lea rcx, [0x18009a6b0]
cmp dword [rcx + rax*4], 1
jne 0x18001238a
movsx rax, word [rsp + 0x30]
lea rcx, [0x18009a6b0]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x30]
lea rdx, [0x18009a6b0]
mov dword [rdx + rcx*4], eax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
and eax, 0xf0
cmp eax, 0xf0
je 0x1800123f9
mov rcx, qword [rsp + 0x168]
call fcn.18005a7a0
mov rdx, rax
mov rcx, qword [rsp + 0x168]
call fcn.180013210
mov dword [rsp + 0x3c], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009a6b0]
mov eax, dword [rcx + rax]
xor eax, 0xffffd821
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009a6b0]
mov dword [rdx + rcx], eax
jmp 0x18001245a
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
and eax, 0xf
mov ecx, reloc.OLEAUT32.dll_SafeArrayDestroy
sub ecx, eax
mov eax, ecx
imul eax, eax, 0x3d3d
cdqe
mov rcx, qword [rsp + 0x178]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x178], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
mov edx, dword [rsp + 0x178]
mov eax, dword [rcx + rax + 1]
xor eax, edx
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x34], 0
jmp 0x18001246e
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x34], eax
jae 0x180012948
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rcx + rax*4]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18001249e
jmp 0x180012464
mov rax, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.18005a7a0
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.180013210
cmp dword [rsp + 0x3c], eax
je 0x1800124d5
jmp 0x180012464
lea rax, [0x1800a5114]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x61
jne 0x180012544
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x180012544
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009a6b0]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x18009a6b0]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xd0]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0xc8]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x38], eax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009a6b0]
mov edx, 4
imul rdx, rdx, 2
lea r8, [0x18009a6b0]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009a6b0]
mov edx, 4
imul rdx, rdx, 1
lea r8, [0x18009a6b0]
mov edx, dword [r8 + rdx]
cmp dword [rcx + rax], edx
jae 0x1800125e1
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009a6b0]
mov edx, dword [rcx + rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009a6b0]
mov dword [rdx + rcx], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x88]
cmp dword [rsp + 0x38], eax
jb 0x18001289a
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x88]
mov rcx, qword [rsp + 0x48]
add eax, dword [rcx + 0x8c]
cmp dword [rsp + 0x38], eax
jae 0x18001289a
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009a6b0]
mov eax, dword [rcx + rax]
add eax, 0x192ae254
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009a6b0]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.1800012a0
xor r8d, r8d
mov dl, 0x2e
lea rcx, [rsp + 0x108]
call fcn.18000a340
mov qword [rsp + 0x78], rax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009a6b0]
mov eax, dword [rcx + rax]
xor eax, 0xffffd7d1
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009a6b0]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009a6b0]
mov eax, dword [rcx + rax]
add eax, 0x22239890
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009a6b0]
mov dword [rdx + rcx], eax
mov rax, qword [0x18007e9f8]
cmp qword [rsp + 0x78], rax
je 0x180012883
mov r9, qword [rsp + 0x78]
xor r8d, r8d
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0x108]
call fcn.1800108a0
lea rcx, [rsp + 0x128]
call fcn.180004de0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x160]
cmp qword [rsp + 0x50], rax
jne 0x18001273b
lea rcx, [rsp + 0x108]
call fcn.18000a380
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800127eb
mov rax, qword [rsp + 0x160]
cmp qword [rsp + 0x50], rax
je 0x1800127eb
mov rax, qword [rsp + 0x78]
inc rax
mov r9, qword [0x18007e9f8]
mov r8, rax
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x108]
call fcn.1800108a0
mov rcx, rax
call fcn.180004de0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x178]
mov r8d, dword [rsp + 0x170]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.180012160
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0xe8]
call fcn.180002370
lea rcx, [rsp + 0x128]
call fcn.180002370
lea rcx, [rsp + 0x108]
call fcn.180002370
mov rax, qword [rsp + 0xb8]
jmp 0x18001294a
mov dword [rsp + 0x70], 0
mov eax, dword [rsp + 0x70]
cmp eax, 0xddb0f8f1
jne 0x180012819
lea r8, str.Local94399950410889565927128768296642844811578365121974067680x
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rsp + 0xe0], rax
jmp 0x180012841
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009a6b0]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009a6b0]
mov dword [rdx + rcx], eax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x128]
call fcn.180002370
lea rcx, [rsp + 0x108]
call fcn.180002370
mov rax, qword [rsp + 0xa0]
jmp 0x18001294a
lea rcx, [rsp + 0x108]
call fcn.180002370
jmp 0x180012948
mov eax, dword [rsp + 0x170]
and eax, 1
test eax, eax
jne 0x1800128c0
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x18001294a
lea rax, str.bbbbbb
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0xa8]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x61
jne 0x18001292f
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x18001292f
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009a6b0]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x18009a6b0]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
jmp 0x18001294a
xor eax, eax
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.18005afa0
add rsp, 0x158
ret