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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x60], 0
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax + 1]
and eax, 0x20
test eax, eax
je 0x180049756
mov r8, qword [rsp + 0x110]
mov rax, qword [rsp + 0x110]
mov edx, dword [rax + 0x50]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.180026f60
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x180049730
mov eax, dword [rsp + 0x38]
jmp 0x180049f80
cmp dword [rsp + 0x48], 0
je 0x180049756
mov rax, qword [rsp + 0x110]
movsx eax, byte [rax + 0x54]
test eax, eax
jge 0x180049756
mov ecx, 0x134c8
call fcn.1800e86f0
jmp 0x180049f80
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax]
cmp eax, 3
jl 0x18004978e
mov rcx, qword [rsp + 0x110]
call fcn.180034230
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x18004978e
cmp dword [rsp + 0x38], 0x10
je 0x18004978e
mov eax, dword [rsp + 0x38]
jmp 0x180049f80
mov rax, qword [rsp + 0x110]
cmp qword [rax + 0x80], 0
jne 0x1800498bd
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x13]
test eax, eax
je 0x1800497d5
xor r9d, r9d
mov rax, qword [rsp + 0x118]
mov r8, qword [rax + 8]
mov rax, qword [rsp + 0x110]
mov edx, dword [rax + 0x50]
mov rcx, qword [rsp + 0x30]
call fcn.180049f90
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax + 1]
and eax, 2
test eax, eax
je 0x180049851
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
mov rcx, qword [rcx + 0x30]
cmp qword [rax + 8], rcx
jne 0x180049851
mov rax, qword [rsp + 0x110]
movzx eax, word [rax + 0x46]
test eax, eax
je 0x18004984f
mov rax, qword [rsp + 0x118]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x118]
add eax, dword [rcx + 0x28]
mov rcx, qword [rsp + 0x110]
cmp dword [rcx + 0x40], eax
jne 0x18004984f
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
call fcn.1800505a0
jmp 0x180049f80
jmp 0x1800498b8
cmp dword [rsp + 0x48], 0
jne 0x1800498b8
mov eax, dword [rsp + 0x120]
and eax, 8
test eax, eax
je 0x180049873
mov dword [rsp + 0xf8], 1
jmp 0x18004987e
mov dword [rsp + 0xf8], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0xf8]
mov rax, qword [rsp + 0x118]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x110]
call fcn.180034db0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1800498b8
mov eax, dword [rsp + 0x38]
jmp 0x180049f80
jmp 0x180049a38
cmp dword [rsp + 0x48], 0
jne 0x1800499c0
mov eax, dword [rsp + 0x120]
and eax, 2
test eax, eax
jne 0x1800499c0
mov rax, qword [rsp + 0x118]
movzx eax, word [rax + 0x20]
test eax, eax
je 0x180049950
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x118]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x118]
movzx eax, word [rax + 0x20]
mov word [rsp + 0x84], ax
mov byte [rsp + 0x86], 0
mov byte [rsp + 0x8a], 0
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x110]
call fcn.1800351d0
mov dword [rsp + 0x38], eax
jmp 0x1800499b0
mov eax, dword [rsp + 0x120]
and eax, 8
test eax, eax
je 0x18004996b
mov dword [rsp + 0xfc], 1
jmp 0x180049976
mov dword [rsp + 0xfc], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xfc]
mov rax, qword [rsp + 0x118]
mov r8, qword [rax + 8]
mov rax, qword [rsp + 0x118]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x110]
call fcn.180034bf0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1800499c0
mov eax, dword [rsp + 0x38]
jmp 0x180049f80
cmp dword [rsp + 0x48], 0
jne 0x180049a38
mov rcx, qword [rsp + 0x110]
call fcn.180028d40
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x118]
mov rcx, qword [rcx + 8]
cmp qword [rax + 0x30], rcx
jne 0x180049a38
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x118]
mov eax, dword [rax + 8]
mov dword [rsp + 0xb4], eax
mov dword [rsp + 0xb8], 0
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x110]
call fcn.1800505a0
jmp 0x180049f80
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x88]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x14], 0
jge 0x180049a95
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax]
cmp eax, 1
jle 0x180049a77
mov ecx, 0x13543
call fcn.1800e86f0
mov dword [rsp + 0x38], eax
jmp 0x180049a85
mov rcx, qword [rsp + 0x40]
call fcn.18004a030
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x180049a95
mov eax, dword [rsp + 0x38]
jmp 0x180049f80
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x88]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x120]
and eax, 0x80
test eax, eax
je 0x180049b9a
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x90]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 4
jge 0x180049ae8
mov dword [rsp + 0x60], 4
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x180049b98
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0xe]
cmp dword [rsp + 0x60], eax
jle 0x180049b98
lea r8, [rsp + 0xc0]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 0x80]
movzx eax, word [rsp + 0xd4]
cmp dword [rsp + 0xd0], eax
je 0x180049b98
mov eax, dword [rsp + 0x60]
sub eax, 4
cdqe
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18001b660
mov dword [rsp + 0xd8], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 4]
mov r8b, 3
mov edx, dword [rsp + 0xd8]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.180027eb0
cmp dword [rsp + 0x38], 0
je 0x180049b98
jmp 0x180049f7c
jmp 0x180049bc6
lea r9, [rsp + 0x60]
mov r8, qword [rsp + 0x118]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.18004a9b0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x180049bc6
jmp 0x180049f7c
mov rax, qword [rsp + 0x110]
movzx eax, word [rax + 0x56]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x110]
mov word [rax + 0x46], 0
cmp dword [rsp + 0x48], 0
jne 0x180049df0
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x18]
cmp dword [rsp + 0x3c], eax
jl 0x180049c0d
mov ecx, 0x1356a
call fcn.1800e86f0
jmp 0x180049f80
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x70]
call fcn.180018ea0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x180049c2b
jmp 0x180049f7c
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x1a]
mov ecx, dword [rsp + 0x3c]
shl ecx, 1
movsxd rcx, ecx
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx + 0x60]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
mov edx, dword [rsp + 0x3c]
shl edx, 1
movsxd rdx, edx
mov r8, qword [rsp + 0x40]
mov r8, qword [r8 + 0x60]
movzx edx, byte [r8 + rdx + 1]
or ecx, edx
and eax, ecx
cdqe
mov rcx, qword [rsp + 0x40]
add rax, qword [rcx + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 8]
test eax, eax
jne 0x180049c9b
mov r8d, 4
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_memcpy
lea r8, [rsp + 0xe0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 0x80]
movzx eax, word [rsp + 0xf4]
cmp eax, dword [rsp + 0xf0]
je 0x180049ce6
lea r8, [rsp + 0xe0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call fcn.18004a260
mov dword [rsp + 0x38], eax
jmp 0x180049cee
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax + 1]
and eax, 0xfffffffb
mov rcx, qword [rsp + 0x110]
mov byte [rcx + 1], al
movzx eax, word [rsp + 0xf6]
cmp eax, dword [rsp + 0x60]
jne 0x180049dc4
movzx eax, word [rsp + 0xf4]
cmp eax, dword [rsp + 0xf0]
jne 0x180049dc4
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x180049d4f
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x10]
cmp dword [rsp + 0x60], eax
jge 0x180049dc4
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 9]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x50]
lea rax, [rcx + rax + 0xa]
cmp qword [rsp + 0x58], rax
jae 0x180049d7c
mov ecx, 0x13585
call fcn.1800e86f0
jmp 0x180049f80
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
cmp rax, qword [rcx + 0x58]
jbe 0x180049da6
mov ecx, 0x13588
call fcn.1800e86f0
jmp 0x180049f80
movsxd rax, dword [rsp + 0x60]
mov r8, rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_memcpy
xor eax, eax
jmp 0x180049f80
movzx eax, word [rsp + 0xf6]
lea r9, [rsp + 0x38]
mov r8d, eax
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
call fcn.18004af40
cmp dword [rsp + 0x38], 0
je 0x180049dee
jmp 0x180049f7c
jmp 0x180049e49
cmp dword [rsp + 0x48], 0
jge 0x180049e49
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x18]
test eax, eax
jle 0x180049e49
mov rax, qword [rsp + 0x110]
movzx eax, word [rax + 0x56]
inc ax
mov rcx, qword [rsp + 0x110]
mov word [rcx + 0x56], ax
mov rax, qword [rsp + 0x110]
movzx eax, word [rax + 0x56]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax + 1]
and eax, 0xfffffffd
mov rcx, qword [rsp + 0x110]
mov byte [rcx + 1], al
mov r9d, dword [rsp + 0x60]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
call fcn.18004b620
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0xc]
test eax, eax
je 0x180049f7c
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax + 1]
and eax, 0xfffffffd
mov rcx, qword [rsp + 0x110]
mov byte [rcx + 1], al
mov rcx, qword [rsp + 0x110]
call fcn.18004c4e0
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x88]
mov byte [rax + 0xc], 0
mov rax, qword [rsp + 0x110]
mov byte [rax], 1
mov eax, dword [rsp + 0x120]
and eax, 2
test eax, eax
je 0x180049f7c
cmp dword [rsp + 0x38], 0
jne 0x180049f7c
mov rcx, qword [rsp + 0x110]
call fcn.1800270b0
mov rax, qword [rsp + 0x110]
cmp qword [rax + 0x80], 0
je 0x180049f59
mov rax, qword [rsp + 0x118]
mov rcx, qword [rax + 8]
call fcn.180008e00
mov rcx, qword [rsp + 0x110]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x110]
cmp qword [rax + 0x18], 0
jne 0x180049f31
mov dword [rsp + 0x38], 7
jmp 0x180049f59
mov rax, qword [rsp + 0x118]
mov r8, qword [rax + 8]
mov rax, qword [rsp + 0x118]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x18]
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x110]
mov byte [rax], 3
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x118]
mov rcx, qword [rcx + 8]
mov qword [rax + 0x48], rcx
mov eax, dword [rsp + 0x38]
add rsp, 0x108
ret