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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
mov r13, rcx
mov rcx, qword [rcx + 0x50]
test rcx, rcx
je 0x4a1f4b
mov qword [rsp + 0xc0], 0
mov rax, qword [r13 + 0x30]
mov qword [rsp + 0xc8], 0
mov r8, qword [rcx]
test rax, rax
je 0x4a1cd1
test byte [rax + 0x10], 0x20
jne 0x4a20d2
mov rax, qword [0x0054738c]
mov qword [rsp + 0x80], rax
call qword [r8 + 0x18]
test eax, eax
mov r12d, eax
je 0x4a1f19
lea rax, [rsp + 0x7c]
xor ebp, ebp
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x50], r12d
jmp 0x4a1d2d
add ebp, 1
cmp dword [rsp + 0x50], ebp
je 0x4a1f19
mov rcx, qword [r13 + 0x50]
mov edx, ebp
mov r8, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r8d, dword [rsp + 0x7c]
test r8d, r8d
jne 0x4a1d20
mov rcx, qword [r13 + 0x50]
lea r8, [rsp + 0x88]
mov edx, ebp
mov qword [rsp + 0x88], 0
mov rax, qword [rcx]
call qword [rax + 0x20]
cmp qword [rsp + 0x88], 0
je 0x4a1d20
mov rax, qword [0x00546e64]
xor r9d, r9d
mov edx, ebp
mov rcx, qword [r13 + 0x50]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov rax, qword [rcx]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [rax + 0x48]
test eax, eax
jne 0x4a1f60
lea r15, [rsp + 0xb8]
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0x90]
lea r12, [rsp + 0xd0]
mov rcx, r15
call qword [0x00547274]
mov rdx, r15
mov rcx, r12
call qword [0x0054720c]
mov rax, qword [rsp + 0x98]
mov rcx, r12
mov rdx, qword [rsp + 0xd0]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x98], rdx
call fcn.004b96b0
mov rcx, r15
call fcn.004dcf80
mov rcx, qword [rsp + 0x90]
call qword [0x00548964]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x88]
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0xa0], 0
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, qword [rsp + 0xa0]
test rdx, rdx
je 0x4a1ee3
cmp word [rdx + 0x32], 0
je 0x4a1ee3
lea rax, [rsp + 0xa8]
xor ebx, ebx
mov dword [rsp + 0x5c], ebp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x68], r15
mov rcx, qword [rsp + 0x88]
mov edx, ebx
mov qword [rsp + 0xa8], 0
mov r8, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x88]
test rdx, rdx
je 0x4a1ec3
cmp dword [rdx + 0x3c], 2
je 0x4a2212
mov rax, qword [rcx]
add ebx, 1
call qword [rax + 0xa8]
mov rdx, qword [rsp + 0xa0]
movzx eax, word [rdx + 0x32]
cmp eax, ebx
ja 0x4a1e83
mov ebp, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x88]
add ebp, 1
mov rax, qword [rcx]
call qword [rax + 0x98]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
call fcn.004b96b0
cmp dword [rsp + 0x50], ebp
jne 0x4a1d2d
lea rbx, [rsp + 0xc0]
mov rcx, rbx
call qword [0x005476d4]
test al, al
je 0x4a1ff0
mov rax, qword [rsp + 0x80]
lea rcx, [rax + 0x10]
call fcn.004e9f50
test al, al
je 0x4a1fd0
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add dword [rsp + 0x54], 1
lea r15, [rsp + 0xb8]
mov r8d, 0xa
mov eax, dword [rsp + 0x54]
mov rcx, r15
lea r12, [rsp + 0xd0]
mov edx, eax
call qword [0x00546edc]
mov r8, r15
mov rcx, r12
lea rdx, [0x0051bcd4]
call fcn.004fbfb0
lea rax, [rsp + 0x98]
mov rdx, r12
mov qword [rsp + 0x48], rax
mov rcx, rax
call qword [0x00546f34]
mov rcx, r12
call fcn.004b96b0
mov rcx, r15
call fcn.004b96b0
jmp 0x4a1e31
lea rdx, [0x004d3a50]
mov rcx, qword [rsp + 0x80]
call qword [0x00547384]
jmp 0x4a1f4b
mov rcx, qword [0x005441c0]
lea r12, [r13 + 0x20]
mov eax, dword [rcx + 0x10]
mov rsi, rcx
cmp eax, 1
jbe 0x4a2059
lea rdi, [0x004d3610]
mov r9d, 0x28
mov dword [rsp + 0x20], 8
lea rdx, [0x004d3850]
mov r8, rdi
call qword [0x0054739c]
mov rsi, rax
mov rax, qword [0x005441c0]
lea rcx, [rax + 0x10]
call fcn.004e9f50
test al, al
jne 0x4a2052
mov rdx, rdi
mov rcx, qword [0x005441c0]
call qword [0x00547384]
mov qword [0x005441c0], rsi
mov edx, dword [rsi + 0x24]
mov rcx, rbx
call qword [0x00546e14]
lea rcx, [0x005441c0]
mov rdx, rbx
mov r8d, eax
mov ebp, eax
call fcn.004f05f0
mov rsi, qword [rax]
mov rdi, rax
cmp rsi, qword [0x005441c0]
je 0x4a2420
mov rax, qword [r13 + 0x20]
cmp qword [rsi + 0x20], rax
je 0x4a1f32
lea rbx, [rsp + 0xd0]
mov rdx, r12
mov rcx, rbx
call fcn.004d1b50
mov rax, qword [rsp + 0xd0]
mov rcx, rbx
mov rdx, qword [rsi + 0x20]
mov qword [rsp + 0xd0], rdx
mov qword [rsi + 0x20], rax
call fcn.004d1bd0
jmp 0x4a1f32
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0xb0], 0
call qword [r8 + 0x38]
mov rdx, qword [rsp + 0xb0]
test rdx, rdx
je 0x4a2206
movzx ecx, byte [rdx + 0xe]
mov r12d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx edi, word [rdx + 6]
movzx esi, byte [rdx + 8]
movzx ebx, byte [rdx + 9]
mov dword [rsp + 0xc0], r12d
movzx r11d, byte [rdx + 0xa]
mov word [rsp + 0xc4], bp
movzx r10d, byte [rdx + 0xb]
mov word [rsp + 0xc6], di
movzx r9d, byte [rdx + 0xc]
mov byte [rsp + 0xc8], sil
movzx r8d, byte [rdx + 0xd]
mov byte [rsp + 0xce], cl
movzx eax, byte [rdx + 0xf]
mov byte [rsp + 0xca], r11b
mov rcx, qword [r13 + 0x50]
mov byte [rsp + 0xc9], bl
mov byte [rsp + 0xcb], r10b
mov byte [rsp + 0xcc], r9b
mov byte [rsp + 0xcd], r8b
mov byte [rsp + 0xcf], al
mov rax, qword [rcx]
call qword [rax + 0x60]
mov rsi, qword [0x005441c0]
mov r11d, dword [rsi + 0x14]
test r11d, r11d
jne 0x4a2620
mov rax, qword [0x00546fcc]
lea rbx, [rsp + 0xb8]
mov qword [rsp + 0xb8], rax
cmp qword [r13 + 0x20], rax
je 0x4a21ed
lea rsi, [rsp + 0xd0]
mov rdx, rbx
mov rcx, rsi
call fcn.004d1b50
mov rax, qword [rsp + 0xd0]
mov rcx, rsi
mov rdx, qword [r13 + 0x20]
mov qword [r13 + 0x20], rax
mov qword [rsp + 0xd0], rdx
call fcn.004d1bd0
mov rcx, rbx
call fcn.004d1bd0
mov rax, qword [r13 + 0x20]
mov r9d, dword [rax + 4]
test r9d, r9d
jne 0x4a1f4b
mov rcx, qword [r13 + 0x50]
mov r8, qword [rcx]
jmp 0x4a1cd1
mov rax, qword [rdx + 0x10]
lea rsi, [rsp + 0xb0]
mov r8d, dword [rdx]
mov rdx, rcx
mov rcx, rsi
mov eax, dword [rax + 8]
mov dword [rsp + 0x60], eax
call fcn.004b3510
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 4]
test ecx, ecx
je 0x4a2480
mov rdx, rsi
mov rcx, r12
call fcn.004dcea0
mov rax, qword [rsp + 0x80]
mov edx, dword [rax + 0x20]
test edx, edx
je 0x4a23f0
mov edx, dword [rax + 0x24]
mov rcx, r12
mov rbp, qword [0x00546e1c]
call rbp
mov r8d, eax
lea rdi, [rsp + 0x80]
mov rdx, r12
mov rcx, rdi
call fcn.004f07a0
mov r14, qword [rsp + 0x80]
mov rcx, r12
mov r15, qword [rax]
call fcn.004dcf80
cmp r15, r14
je 0x4a22cf
add dword [rsp + 0x58], 1
mov r8d, 0xa
mov rcx, r12
mov eax, dword [rsp + 0x58]
mov edx, eax
call qword [0x00546edc]
mov rcx, rsi
mov rdx, r12
call qword [0x00546eb4]
mov rcx, r12
call fcn.004b96b0
mov rcx, r12
mov rdx, rsi
call fcn.004dcea0
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx + 0x10]
mov r15, rcx
cmp eax, 1
jbe 0x4a2336
lea r14, [0x004d3a50]
mov r9d, 0x18
mov dword [rsp + 0x20], 8
lea rdx, [0x004d3a60]
mov r8, r14
call qword [0x0054739c]
mov r15, rax
mov rax, qword [rsp + 0x80]
lea rcx, [rax + 0x10]
call fcn.004e9f50
test al, al
je 0x4a2400
mov qword [rsp + 0x80], r15
mov edx, dword [r15 + 0x24]
mov rcx, r12
call rbp
mov rcx, rdi
mov rdx, r12
mov r8d, eax
mov ebp, eax
call fcn.004f07a0
mov rcx, qword [rax]
mov r14, rax
cmp rcx, qword [rsp + 0x80]
je 0x4a24d2
lea rbp, [r13 + 0x20]
mov rcx, r12
call fcn.004dcf80
mov rcx, qword [r13 + 0x20]
mov eax, dword [rcx]
cmp eax, 1
jbe 0x4a2386
mov rcx, rbp
call fcn.004d1a30
mov rcx, qword [r13 + 0x20]
mov rdx, qword [rsp + 0x48]
call fcn.004f1270
lea rdi, [rax + 0x20]
test rax, rax
mov r14, rax
je 0x4a2540
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xd0], rcx
call fcn.004e9f30
mov eax, dword [rsp + 0x60]
mov rdx, r12
mov rcx, rdi
mov dword [rsp + 0xd8], eax
call fcn.004d6230
mov rcx, r12
call fcn.004b96b0
mov rcx, rsi
call fcn.004b96b0
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x88]
jmp 0x4a1ec3
xor r8d, r8d
mov rbp, qword [0x00546e1c]
jmp 0x4a2276
mov rdx, r14
mov rcx, qword [rsp + 0x80]
call qword [0x00547384]
jmp 0x4a232e
mov eax, dword [rsi + 0x20]
cmp dword [rsi + 0x14], eax
jge 0x4a2674
mov edx, 8
mov rcx, rsi
call qword [0x00547394]
mov rbx, rax
mov rax, qword [rdi]
mov dword [rbx + 8], ebp
lea rcx, [rbx + 0x20]
mov qword [rbx], rax
mov rdx, qword [rsp + 0xc8]
mov rax, qword [rsp + 0xc0]
mov qword [rbx + 0x14], rdx
mov rdx, r12
mov qword [rbx + 0xc], rax
call fcn.004d1b50
mov qword [rdi], rbx
mov rax, qword [0x005441c0]
add dword [rax + 0x14], 1
jmp 0x4a1f32
mov r14, qword [rsp + 0x68]
mov r8d, 0xa
mov edx, dword [rsp + 0x64]
mov rcx, r14
lea edi, [rdx + 1]
call qword [0x00546edc]
mov r8, r14
mov rcx, r12
lea rdx, str.value
call fcn.004fbfb0
mov rdx, r12
mov rcx, rsi
call qword [0x00546f34]
mov rcx, r12
call fcn.004b96b0
mov rcx, r14
call fcn.004b96b0
mov dword [rsp + 0x64], edi
jmp 0x4a2246
mov eax, dword [rcx + 0x20]
cmp dword [rcx + 0x14], eax
jl 0x4a2500
movsx edx, word [rcx + 0x1e]
add edx, 1
call qword [0x005473a4]
mov rcx, rdi
mov r8d, ebp
mov rdx, r12
call fcn.004f07a0
mov rcx, qword [rsp + 0x80]
mov r14, rax
mov edx, 8
call qword [0x00547394]
mov rcx, qword [rsp + 0xd0]
mov rdi, rax
mov rax, qword [r14]
mov dword [rdi + 8], ebp
mov qword [rdi + 0x10], rcx
mov qword [rdi], rax
call fcn.004e9f30
mov qword [r14], rdi
mov rax, qword [rsp + 0x80]
add dword [rax + 0x14], 1
jmp 0x4a2363
mov rax, qword [0x005473e4]
mov rcx, qword [r13 + 0x20]
mov qword [rsp + 0xb8], rax
mov eax, dword [rcx]
cmp eax, 1
jbe 0x4a2566
mov rcx, rbp
call fcn.004d1a30
mov rcx, qword [r13 + 0x20]
mov rbp, qword [rcx + 0x10]
test rbp, rbp
je 0x4a270f
mov rdi, qword [0x00546e44]
mov r15, qword [rsp + 0x48]
jmp 0x4a2595
mov rax, qword [rbp + 8]
mov r14, rbp
mov edx, 1
test rax, rax
je 0x4a25b0
mov rbp, rax
lea rcx, [rbp + 0x18]
mov rdx, r15
call rdi
test eax, eax
jns 0x4a2581
mov rax, qword [rbp + 0x10]
xor edx, edx
jmp 0x4a258d
test r14, r14
movzx r15d, dl
je 0x4a26a5
lea rdx, [r14 + 0x18]
mov rcx, qword [rsp + 0x48]
call rdi
test eax, eax
js 0x4a26a5
mov rax, qword [rsp + 0xb8]
cmp qword [r14 + 0x20], rax
je 0x4a260b
mov rdx, qword [rsp + 0x68]
mov rcx, r12
call fcn.004d6290
mov rax, qword [rsp + 0xd0]
mov rcx, r12
mov rdx, qword [r14 + 0x20]
mov qword [rsp + 0xd0], rdx
mov qword [r14 + 0x20], rax
call fcn.004d6340
lea rdi, [r14 + 0x20]
mov rcx, qword [rsp + 0x68]
call fcn.004d6340
jmp 0x4a23a0
mov r10d, dword [rsi + 0x20]
lea rbx, [rsp + 0xc0]
xor r8d, r8d
test r10d, r10d
jne 0x4a26ec
lea rcx, [0x005441c0]
mov rdx, rbx
call fcn.004f05f0
mov rax, qword [rax]
cmp rax, rsi
je 0x4a219d
lea rbx, [rsp + 0xb8]
lea rdx, [rax + 0x20]
mov rcx, rbx
call fcn.004d1b50
mov rax, qword [rsp + 0xb8]
jmp 0x4a21b4
movsx edx, word [rsi + 0x1e]
mov rcx, rsi
add edx, 1
call qword [0x005473a4]
mov r8d, ebp
mov rdx, rbx
lea rcx, [0x005441c0]
call fcn.004f05f0
mov rsi, qword [0x005441c0]
mov rdi, rax
jmp 0x4a242c
mov rcx, qword [r13 + 0x20]
mov r9, rbp
mov r8d, 8
mov edx, 0x28
mov dword [rsp + 0x20], r15d
call qword [0x00546fc4]
mov rcx, qword [rsp + 0x98]
mov rdi, rax
add rdi, 0x20
mov qword [rax + 0x18], rcx
call fcn.004e9f30
mov rdx, qword [rsp + 0x68]
mov rcx, rdi
call fcn.004d6290
jmp 0x4a260f
lea rbx, [rsp + 0xc0]
mov edx, dword [rsi + 0x24]
mov rcx, rbx
call qword [0x00546e14]
mov rsi, qword [0x005441c0]
mov r8d, eax
jmp 0x4a2638
lea rbp, [rcx + 8]
mov r15d, 1
jmp 0x4a26a9