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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x128
mov sil, r9b
mov r13d, r8d
mov r12, rdx
call fcn.004f566c
xor r14d, r14d
mov r15d, 1
movsxd rbx, eax
cmp ebx, 0xffffffff
jne 0x4f65e2
mov ecx, dword [0x00851a38]
cmp ecx, r14d
cmove ecx, r15d
mov dword [0x00851a38], ecx
mov rdi, qword [rsp + 0x190]
mov edx, r13d
mov rcx, r12
mov r8, rdi
call fcn.004f5fc4
cmp sil, r14b
jne 0x4f6978
lea rbp, [rbx + rbx*4]
mov rsi, rbx
cmp byte [rdi + rbp*4 + 0x120], r14b
jne 0x4f6978
mov ebx, eax
shl ebx, 3
shl r13d, 3
jmp 0x4f663b
mov r8d, 0xc
mov edx, ebx
mov rcx, r12
call fcn.004f5564
cmp eax, 0xfff
je 0x4f6645
add ebx, 8
cmp ebx, r13d
jbe 0x4f6621
jmp 0x4f6978
add ebx, 0xc
mov r8d, r15d
mov rcx, r12
mov edx, ebx
add ebx, r15d
call fcn.004f5564
cmp eax, r14d
je 0x4f6978
mov r13d, 2
mov edx, ebx
mov rcx, r12
mov r8d, r13d
add ebx, r13d
call fcn.004f5564
cmp eax, r14d
je 0x4f66a9
dec eax
je 0x4f669c
dec eax
je 0x4f6692
dec eax
jne 0x4f66b1
mov dword [rdi + rbp*4 + 0x124], r15d
jmp 0x4f66b1
mov dword [rdi + rbp*4 + 0x124], r13d
jmp 0x4f66b1
mov dword [rdi + rbp*4 + 0x124], 3
jmp 0x4f66b1
mov dword [rdi + rbp*4 + 0x124], r14d
add ebx, r15d
mov r8d, 4
mov rcx, r12
mov edx, ebx
add ebx, r8d
call fcn.004f5564
mov r15d, 0x20
mov dword [rsp + 0x20], r14d
lea ecx, [r15 + 0x20]
lea r9d, [r15 + 0x10]
lea r8d, [r15 + 0x18]
lea edx, [rcx + 0x10]
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x2c], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x3c], r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x4c], r14d
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x54], r14d
mov dword [rsp + 0x58], r14d
mov dword [rsp + 0x5c], r14d
mov dword [rsp + 0x60], r14d
mov r14d, 0xe0
lea r11d, [r14 + 0x60]
lea r13d, [r14 + 0x20]
mov dword [rsp + 0x68], ecx
lea r10d, [r11 + 0x40]
mov dword [rsp + 0xb0], ecx
lea ecx, [rdx + 0x20]
mov dword [rsp + 0x90], r10d
mov dword [rsp + 0xd8], r10d
xor r10d, r10d
mov dword [rsp + 0xbc], ecx
mov dword [rsp + 0x100], ecx
mov dword [rsp + 0x64], r15d
mov dword [rsp + 0x6c], 0x60
mov dword [rsp + 0x70], pe_nt_image_headers64
mov dword [rsp + 0x74], 0xa0
mov dword [rsp + 0x78], 0xc0
mov dword [rsp + 0x7c], r14d
mov dword [rsp + 0x80], r13d
mov dword [rsp + 0x84], 0x120
mov dword [rsp + 0x88], r11d
mov dword [rsp + 0x8c], 0x160
mov dword [rsp + 0x94], 0x1a0
mov dword [rsp + 0x98], 0x1c0
mov dword [rsp + 0x9c], 0
mov dword [rsp + 0xa0], 0
mov dword [rsp + 0xa4], r15d
mov dword [rsp + 0xa8], r9d
mov dword [rsp + 0xac], r8d
mov dword [rsp + 0xb4], edx
mov dword [rsp + 0xb8], 0x60
mov dword [rsp + 0xc0], pe_nt_image_headers64
mov dword [rsp + 0xc4], 0xa0
mov dword [rsp + 0xc8], 0xc0
mov dword [rsp + 0xcc], r14d
mov dword [rsp + 0xd0], r13d
mov dword [rsp + 0xd4], r11d
mov dword [rsp + 0xdc], r10d
mov dword [rsp + 0xe0], r10d
mov dword [rsp + 0xe4], r15d
mov dword [rsp + 0xe8], 0x28
mov dword [rsp + 0xec], r9d
mov dword [rsp + 0xf0], r8d
mov dword [rsp + 0xf4], 0x40
mov dword [rsp + 0xf8], edx
mov dword [rsp + 0xfc], 0x60
mov dword [rsp + 0x104], pe_nt_image_headers64
mov dword [rsp + 0x108], 0xa0
mov dword [rsp + 0x10c], 0xc0
mov dword [rsp + 0x110], r14d
mov dword [rsp + 0x114], r13d
mov dword [rsp + 0x118], r11d
mov dword [rsp + 0x11c], r10d
mov ecx, dword [rdi + rbp*4 + 0x124]
cdqe
lea r13d, [r15 - 0x1e]
shl rcx, 4
mov edx, ebx
mov r8d, r13d
add rcx, rax
mov eax, dword [rsp + rcx*4 + 0x20]
mov rcx, r12
shl eax, 0xa
mov dword [rdi + rbp*4 + 0x128], eax
call fcn.004f5564
test eax, eax
je 0x4f694b
dec eax
je 0x4f693d
dec eax
je 0x4f692f
dec eax
jne 0x4f6957
lea rax, [rsi + rsi*4 + 0x4b]
mov dword [rdi + rax*4], 0
jmp 0x4f6957
lea rax, [rsi + rsi*4 + 0x4b]
mov dword [rdi + rax*4], 0x7d00
jmp 0x4f6957
lea rax, [rsi + rsi*4 + 0x4b]
mov dword [rdi + rax*4], 0xbb80
jmp 0x4f6957
lea rax, [rsi + rsi*4 + 0x4b]
mov dword [rdi + rax*4], 0xac44
lea edx, [rbx + r13 + 2]
mov r8d, r13d
mov rcx, r12
call fcn.004f5564
mov byte [rdi + rbp*4 + 0x120], 1
inc eax
mov dword [rdi + rbp*4 + 0x130], eax
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret