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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
lea r9, [0x00400000]
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xb8], rbp
mov qword [rsp + 0xb0], rsi
mov rsi, qword [rsp + 0xd0]
mov qword [rsp + 0xa8], rdi
mov eax, dword [rsi + 4]
mov ecx, dword [rsi]
mov r8d, dword [rsi + 0xc]
mov edx, dword [rsi + 0x10]
mov ebp, dword [rsi + 0x1c]
add rax, r9
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0x98], r13
mov r13d, dword [rsi + 8]
mov qword [rsp + 0x90], r14
mov r14, qword [rsp + 0xd8]
mov qword [rsp + 0x88], r15
mov r15d, dword [rsi + 0x14]
add r13, r9
add r8, r9
add rdx, r9
add r15, r9
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor eax, eax
and ecx, 1
test cl, cl
mov dword [rsp + 0x30], 0x48
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x50], r9d
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x68], r9
mov dword [rsp + 0x70], r9d
jne 0x49b023
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x20]
mov r8d, 1
xor edx, edx
mov ecx, 0xc06d0057
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdi, qword [r13]
mov rax, r14
sub rax, r8
sar rax, 3
mov r12d, eax
movabs rax, 0x8000000000000000
test qword [rdx + r12*8], rax
mov eax, r9d
sete al
test eax, eax
mov dword [rsp + 0x50], eax
je 0x49b065
mov eax, dword [rdx + r12*8]
lea rcx, [0x00400002]
add rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x49b06e
movzx eax, word [rdx + r12*8]
mov dword [rsp + 0x58], eax
mov rax, qword [0x004d5e70]
mov rbx, r9
test rax, rax
je 0x49b099
lea rdx, [rsp + 0x30]
xor ecx, ecx
call rax
test rax, rax
mov rbx, rax
jne 0x49b22b
mov rax, qword [0x004d5e70]
test rdi, rdi
jne 0x49b172
test rax, rax
je 0x49b0bb
lea rdx, [rsp + 0x30]
mov ecx, 1
call rax
test rax, rax
mov rdi, rax
jne 0x49b124
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rdi, rax
jne 0x49b124
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
mov rax, qword [0x004d5e68]
test rax, rax
je 0x49b0f8
lea rdx, [rsp + 0x30]
mov ecx, 3
call rax
test rax, rax
mov rdi, rax
jne 0x49b124
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x20]
mov r8d, 1
xor edx, edx
mov ecx, 0xc06d007e
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rax, rdi
xchg qword [r13], rax
cmp rax, rdi
je 0x49b162
cmp dword [rsi + 0x18], 0
je 0x49b16b
mov edx, InitCommonControls
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
je 0x49b16b
mov qword [rax + 8], rsi
mov rcx, qword [0x004d5e60]
mov qword [rax], rcx
mov qword [0x004d5e60], rax
jmp 0x49b16b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x004d5e70]
test rax, rax
mov qword [rsp + 0x60], rdi
je 0x49b18b
lea rdx, [rsp + 0x30]
mov ecx, 2
call rax
mov rbx, rax
test rbx, rbx
jne 0x49b228
cmp dword [rsi + 0x14], ebx
je 0x49b1c1
cmp dword [rsi + 0x1c], ebx
je 0x49b1c1
movsxd rax, dword [rdi + 0x3c]
add rax, rdi
cmp dword [rax], 0x4550
jne 0x49b1c1
cmp dword [rax + 8], ebp
jne 0x49b1c1
cmp rdi, qword [rax + 0x30]
jne 0x49b1c1
mov rbx, qword [r15 + r12*8]
test rbx, rbx
jne 0x49b228
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rbx, rax
jne 0x49b228
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
mov rax, qword [0x004d5e68]
test rax, rax
je 0x49b1fc
lea rdx, [rsp + 0x30]
mov ecx, 4
call rax
mov rbx, rax
test rbx, rbx
jne 0x49b228
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x20]
mov r8d, 1
xor edx, edx
mov ecx, 0xc06d007f
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov qword [r14], rbx
mov rax, qword [0x004d5e70]
test rax, rax
je 0x49b255
lea rdx, [rsp + 0x30]
mov ecx, 5
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rbx
call rax
mov rax, rbx
mov r12, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x88]
mov r14, qword [rsp + 0x90]
mov r13, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xb8]
add rsp, 0xc8
ret