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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r14, r9
mov r12d, r8d
mov r15, rdx
mov rbx, rcx
xor r13d, r13d
mov esi, r13d
mov dword [rsp + 0x20], r13d
cmp r9, r13
je 0x45fdcc
mov dword [r9], r13d
cmp r12d, r13d
je 0x46003a
cmp byte [rbx + 0x59], r13b
je 0x45ff7c
mov edi, r12d
cmp dword [rbx + 0x5c], r12d
cmovb edi, dword [rbx + 0x5c]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x24], r13d
test edi, edi
je 0x45fe65
cmp byte [rsp + 0xa0], 0
jne 0x45fe05
mov byte [rbx + 0x58], 0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x45fe3f
mov dword [rsp + 0x98], 0
mov rax, qword [rcx]
lea r9, [rsp + 0x98]
mov r8d, edi
mov rdx, r15
call qword [rax + 0x18]
mov r13d, eax
mov dword [rsp + 0x24], eax
mov edi, dword [rsp + 0x98]
mov dword [rsp + 0x28], edi
cmp byte [rbx + 0x30], 0
je 0x45fe65
cmp qword [rbx + 0x20], 0
je 0x45fe65
mov r8d, edi
mov eax, dword [rbx + 0x34]
mov rcx, qword [rbx + 0x68]
sub rcx, rax
add rcx, qword [rbx + 0x20]
mov rdx, r15
call sub.msvcrt.dll_memcpy
add esi, edi
mov dword [rsp + 0x20], esi
test r14, r14
je 0x45fe73
mov dword [r14], esi
mov ecx, edi
add r15, rcx
mov qword [rsp + 0x88], r15
sub r12d, edi
mov dword [rsp + 0x90], r12d
sub dword [rbx + 0x5c], edi
add qword [rbx + 0x68], rcx
test r13d, r13d
je 0x45fe9f
mov eax, r13d
jmp 0x460049
xor r13d, r13d
cmp dword [rbx + 0x5c], r13d
jne 0x45ff6e
mov al, byte [rbx + 0x58]
neg al
sbb edx, edx
not edx
and edx, 2
mov rcx, rbx
call fcn.0045ef48
cmp eax, r13d
jne 0x460049
cmp dword [rbx + 0x2c], r13d
je 0x45ff6a
mov rcx, rbx
call fcn.0045fa4c
mov edi, eax
mov dword [rsp + 0x2c], eax
mov byte [rbx + 0x59], 1
inc dword [rbx + 0x3c]
cmp eax, r13d
jne 0x45ff14
mov rcx, qword [rbx + 0x50]
cmp rcx, r13
je 0x45ff14
mov rdx, qword [rbx + 0x20]
cmp rdx, r13
je 0x45ff14
mov eax, dword [rbx + 0x34]
mov r8, qword [rbx + 0x68]
sub r8, rax
call fcn.00414f78
mov edi, eax
mov dword [rsp + 0x2c], eax
cmp qword [rbx + 0x20], r13
jne 0x45ff3d
cmp byte [rbx + 0x30], r13b
je 0x45ff3d
cmp qword [rbx + 0x50], r13
je 0x45ff3d
mov edx, 1
mov rcx, rbx
call fcn.0045ef48
cmp eax, r13d
je 0x45ff5a
jmp 0x460049
mov al, byte [rbx + 0x58]
neg al
sbb edx, edx
not edx
and edx, 2
mov rcx, rbx
call fcn.0045ef48
cmp eax, r13d
jne 0x460049
cmp edi, r13d
je 0x45fec9
mov eax, edi
jmp 0x460049
mov byte [rbx + 0x30], r13b
cmp esi, r13d
ja 0x46003a
jmp 0x45fdcc
mov rax, qword [rbx + 0x18]
mov ecx, dword [rbx + 0x3c]
cmp ecx, dword [rax + 0xc]
jl 0x45ff92
mov eax, 0x80004005
jmp 0x460049
mov r9, qword [rbx + 0x10]
mov eax, dword [rbx + 0x38]
add eax, ecx
movsxd r8, eax
mov rdx, qword [r9 + 0x30]
movsxd rcx, dword [rdx + r8*8]
mov rax, qword [r9 + 0x10]
mov rax, qword [rax + rcx*8]
movsxd rcx, dword [rdx + r8*8 + 4]
mov rax, qword [rax + 0x90]
mov rdx, qword [rax + rcx*8]
mov eax, dword [rdx + 0x14]
mov dword [rbx + 0x5c], eax
mov eax, dword [rdx + 0x10]
mov rdx, rax
cmp rax, qword [rbx + 0x68]
jae 0x45ffd7
mov eax, 0x80004005
jmp 0x460049
cmp rax, qword [rbx + 0x68]
jbe 0x460013
sub eax, dword [rbx + 0x68]
mov ecx, r12d
cmp eax, r12d
cmovb ecx, eax
add esi, ecx
mov dword [rsp + 0x20], esi
cmp r14, r13
je 0x45fff7
mov dword [r14], esi
mov eax, ecx
add r15, rax
mov qword [rsp + 0x88], r15
sub r12d, ecx
mov dword [rsp + 0x90], r12d
add qword [rbx + 0x68], rax
cmp rdx, qword [rbx + 0x68]
jne 0x45fdcc
mov rcx, rbx
call fcn.0045fa4c
cmp eax, r13d
jne 0x460049
mov byte [rbx + 0x59], 1
inc dword [rbx + 0x3c]
mov byte [rbx + 0x58], 1
jmp 0x45fdcc
mov rcx, rbx
call fcn.0045fcf8
jmp 0x460049
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret