Function at 0x545780
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
cmp qword [rcx + 0x140], 0
mov r12, rcx
mov rbp, rdx
je 0x54593e
lea rbx, [rsp + 0x80]
mov dword [rsp + 0x80], 0
lea rcx, [rbx + 4]
call fcn.00602a00
mov rcx, qword [r12 + 0x10]
lea rdi, [rsp + 0x40]
mov edx, dword [r12 + 0xd4]
call fcn.0050d110
mov rcx, qword [r12 + 0x10]
mov esi, eax
mov eax, dword [rcx + 0xb8]
lea edx, [rax - 1]
call fcn.0050d110
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
cmp esi, eax
mov qword [rsp + 0x48], 0
je 0x545b17
mov qword [rsp + 0x28], rdi
mov r9d, esi
mov r8, rbx
mov rcx, r12
mov edx, dword [r12 + 0xd4]
mov dword [rsp + 0x20], eax
call fcn.00540690
cmp eax, esi
je 0x545b46
mov rax, qword [r12 + 0x18]
mov eax, dword [rax + 8]
test eax, eax
jne 0x5458cc
mov rcx, qword [r12 + 0x10]
xor esi, esi
xor ebx, ebx
movsxd rdi, dword [r12 + 0xd4]
mov rax, qword [rcx + 8]
sub rax, qword [rcx]
movsxd r8, dword [rcx + 0xbc]
sar rax, 5
imul rdi, r8
test eax, eax
jg 0x545890
jmp 0x5458ab
mov rcx, qword [r12 + 0x10]
add ebx, 1
mov rax, qword [rcx + 8]
sub rax, qword [rcx]
sar rax, 5
cmp ebx, eax
jge 0x545b0b
mov edx, ebx
call fcn.0050e6b0
add rsi, rax
cmp rdi, rsi
jge 0x545875
mov rax, qword [r12 + 0x10]
movsxd r8, dword [rax + 0xbc]
sub rsi, rdi
lea rax, [r8 + rsi - 1]
cqo
idiv r8
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call fcn.004d6fb0
mov rdx, qword [r12 + 0x18]
cmp dword [rdx + 8], 3
jne 0x5458e6
cmp qword [rdx + 0x10], rax
je 0x545848
call fcn.004d6fb0
mov rdx, qword [r12 + 0x18]
cmp dword [rdx + 8], 2
jne 0x545900
cmp qword [rdx + 0x10], rax
je 0x545848
call fcn.004d6fb0
mov rdx, qword [r12 + 0x18]
cmp dword [rdx + 8], 0x26
jne 0x54591a
cmp qword [rdx + 0x10], rax
je 0x545848
call fcn.004d6fb0
mov rdx, qword [r12 + 0x18]
cmp qword [rdx + 0x10], rax
jne 0x545934
cmp dword [rdx + 8], 6
je 0x545848
mov eax, 0xffffffff
jmp 0x5458b8
mov rax, qword [rcx + 0x10]
mov edx, dword [rax + 0xb8]
test edx, edx
jle 0x5457a7
lea rdi, [rcx + 0x120]
xor esi, esi
xor r13d, r13d
lea rbx, [rsp + 0x80]
mov rdx, qword [r12 + 8]
mov rax, qword [rdx + 0x118]
cmp rax, qword [rdx + 0x120]
je 0x545ad9
mov ecx, r13d
add ecx, dword [rdx + 4]
lea rdx, [rcx + rcx*4]
lea rax, [rax + rdx*4]
test rax, rax
je 0x545aec
mov rdx, qword [rax]
mov qword [rsp + 0x60], rdx
mov rdx, qword [rax + 8]
mov qword [rsp + 0x68], rdx
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x94], r13d
mov r8, qword [r12 + 0x128]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x68]
test r8, r8
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x90], eax
je 0x545a22
nop word cs:[rax + rax]
xor eax, eax
movzx ecx, byte [rbx + rax]
movzx edx, byte [r8 + rax + 0x20]
cmp ecx, edx
jl 0x545a91
jg 0x545a10
add rax, 1
cmp rax, 0x14
jne 0x5459f2
mov rax, qword [r8 + 0x18]
test rax, rax
je 0x545a9e
mov r8, rax
jmp 0x5459f0
mov r14, rdi
mov r15d, 1
mov ecx, 0x38
add r13d, 1
add esi, 0x14
call fcn.007da0a0
mov r9, rdi
mov r8, r14
mov ecx, r15d
mov rdx, qword [rsp + 0x80]
mov qword [rax + 0x20], rdx
mov rdx, qword [rsp + 0x88]
mov qword [rax + 0x28], rdx
mov rdx, qword [rsp + 0x90]
mov qword [rax + 0x30], rdx
mov rdx, rax
call fcn.007d0f90
mov rax, qword [r12 + 0x10]
add qword [r12 + 0x140], 1
cmp r13d, dword [rax + 0xb8]
jl 0x545964
jmp 0x5457af
mov rax, qword [r8 + 0x10]
test rax, rax
jne 0x545a1d
cmp r8, rdi
je 0x545a22
xor eax, eax
nop dword [rax]
movzx ecx, byte [rbx + rax]
movzx edx, byte [r8 + rax + 0x20]
cmp ecx, edx
jl 0x545c25
jg 0x545ace
add rax, 1
cmp rax, 0x14
jne 0x545ab0
mov r14, r8
xor r15d, r15d
jmp 0x545a2b
movsxd rax, esi
add rax, qword [rdx + 0x140]
test rax, rax
jne 0x545994
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 0
jmp 0x5459ac
movsxd r8, dword [rcx + 0xbc]
jmp 0x5458ab
mov edx, dword [r12 + 0xd4]
mov r9d, esi
mov r8, rbx
mov rcx, r12
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call fcn.00540690
cmp eax, esi
jne 0x545838
lea rsi, [rsp + 0x60]
lea rdx, [rbx + 4]
mov rcx, rsi
call fcn.00602a60
mov r8, rdi
mov rdx, rsi
mov rcx, r12
mov r9d, dword [r12 + 0xd4]
call fcn.005453d0
test eax, eax
mov ebx, eax
js 0x545c70
mov dword [rbp], eax
movsxd rsi, dword [r12 + 0xd4]
cmp eax, esi
je 0x545b8f
mov byte [r12 + 0xd8], 1
mov rax, qword [r12 + 0x70]
movsxd rcx, ebx
lea rdx, [rax + rcx*4]
movsxd rax, dword [rdx]
cmp eax, 0xffffffff
je 0x545c33
mov r9, qword [r12 + 0x58]
movsxd r8, esi
lea r8, [r9 + r8*4]
cmp dword [r8], 0xfffffffd
jne 0x545d3e
mov dword [rsp + 0x3c], ebx
movsxd rax, dword [rdx]
mov dword [rdx], ebx
mov rdx, qword [r12 + 0x70]
movsxd r8, dword [r12 + 0xd4]
test eax, eax
mov dword [rdx + r8*4], eax
mov rdx, qword [r12 + 0x58]
mov dword [rdx + rcx*4], ebx
js 0x545f0b
mov ecx, dword [r12 + 0xd4]
mov rdx, qword [r12 + 0x58]
mov dword [rdx + rax*4], ecx
mov rcx, qword [r12 + 0x18]
mov dword [r12 + 0xf4], ebx
mov r8d, dword [r12 + 0xd4]
mov edx, dword [rsp + 0x3c]
mov rax, qword [rcx]
call qword [rax + 0x70]
test al, al
jne 0x545efe
xor eax, eax
jmp 0x5458b8
mov r14, r8
mov r15d, 1
jmp 0x545a2b
mov edx, 1
mov rcx, qword [r12 + 0x58]
movsxd rax, esi
mov r8d, dword [rcx + rax*4]
cmp r8d, 0xfffffffd
jne 0x545c7c
cmp ebx, 0xfffffffe
je 0x545ecf
movsxd rax, ebx
mov dword [rcx + rax*4], esi
movsxd rsi, dword [r12 + 0xd4]
jmp 0x545ef1
movsxd rsi, dword [r12 + 0xd4]
xor edx, edx
jmp 0x545c38
mov rcx, qword [r12 + 0x70]
mov dword [rsp + 0x3c], r8d
cmp ebx, 0xfffffffe
mov dword [rcx + rax*4], esi
movsxd r8, dword [rsp + 0x3c]
mov rcx, qword [r12 + 0x70]
mov dword [rcx + r8*4], ebx
mov r8d, dword [r12 + 0xd4]
mov rcx, qword [r12 + 0x58]
mov dword [rcx + rax*4], r8d
je 0x545dd5
test dl, dl
je 0x545dec
mov rdx, qword [r12 + 0x58]
movsxd rax, ebx
mov ecx, dword [rsp + 0x3c]
mov dword [rdx + rax*4], ecx
mov rcx, qword [r12 + 0x18]
mov r8d, dword [r12 + 0xd4]
mov edx, dword [rsp + 0x3c]
mov rax, qword [rcx]
call qword [rax + 0x70]
test al, al
mov dword [r12 + 0xf4], esi
jne 0x545efe
cmp ebx, 0xfffffffe
jne 0x545c1e
mov rdx, qword [r12 + 0x10]
mov eax, dword [r12 + 0xd4]
mov edx, dword [rdx + 0xb8]
sub edx, 1
cmp eax, edx
je 0x545c1e
mov rcx, qword [r12 + 0x18]
lea edx, [rax + 1]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov edx, dword [r12 + 0xd4]
lea ecx, [rdx + 1]
cmp eax, ecx
jle 0x545c1e
sub eax, edx
jmp 0x5458b8
mov dword [rsp + 0x38], ebx
mov r8d, dword [r8]
cmp ebx, r8d
mov dword [rsp + 0x3c], r8d
mov dword [rdx], ebx
je 0x545e79
movsxd r8, dword [rsp + 0x3c]
cmp eax, 0xfffffffe
mov rdx, qword [r12 + 0x70]
mov dword [rdx + r8*4], eax
movsxd r8, dword [r12 + 0xd4]
mov rdx, qword [r12 + 0x70]
mov dword [rdx + r8*4], esi
mov rdx, qword [r12 + 0x58]
mov r8d, dword [rsp + 0x38]
mov dword [rdx + rcx*4], r8d
movsxd rcx, dword [r12 + 0xd4]
mov rdx, qword [r12 + 0x58]
mov dword [rdx + rcx*4], esi
je 0x545e08
test eax, eax
js 0x545e41
mov rdx, qword [r12 + 0x58]
mov ecx, dword [rsp + 0x3c]
mov dword [rdx + rax*4], ecx
mov rcx, qword [r12 + 0x18]
mov edx, dword [r12 + 0xd4]
mov r9d, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov dword [r12 + 0xf4], ebx
jmp 0x545c16
cmp dword [r12 + 0x20], 2
jne 0x545dec
lea rdx, [rsp + 0x3c]
lea rcx, [r12 + 0x40]
call fcn.007992e0
mov rcx, qword [r12 + 0x18]
mov r8d, dword [r12 + 0xd4]
mov edx, dword [rsp + 0x3c]
mov rax, qword [rcx]
call qword [rax + 0x68]
jmp 0x545cdf
mov rdx, qword [r12 + 0x48]
lea r8, [rsp + 0x38]
mov rcx, qword [r12 + 0x40]
call fcn.007d17e0
cmp dword [r12 + 0x20], 2
jne 0x545e41
lea rsi, [r12 + 0x40]
mov rdx, rax
mov rcx, rsi
call fcn.00799280
lea rdx, [rsp + 0x3c]
mov rcx, rsi
call fcn.007992e0
mov rcx, qword [r12 + 0x18]
mov edx, dword [r12 + 0xd4]
mov r8d, dword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [r12 + 0x18]
mov esi, eax
mov r8d, dword [r12 + 0xd4]
mov edx, dword [rsp + 0x3c]
mov rax, qword [rcx]
call qword [rax + 0x68]
or eax, esi
jmp 0x545dc8
movsxd r8, dword [r12 + 0xd4]
mov rdx, qword [r12 + 0x70]
mov dword [rdx + r8*4], eax
mov rdx, qword [r12 + 0x58]
mov r8d, dword [rsp + 0x38]
mov dword [rdx + rcx*4], r8d
mov ecx, dword [r12 + 0xd4]
mov rdx, qword [r12 + 0x58]
mov dword [rdx + rax*4], ecx
mov rcx, qword [r12 + 0x18]
mov dword [r12 + 0xf4], ebx
mov edx, dword [r12 + 0xd4]
mov r8d, dword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x70]
xor eax, eax
jmp 0x5458b8
cmp dword [r12 + 0x20], 2
jne 0x545ef1
lea rdx, [r12 + 0xd4]
lea rcx, [r12 + 0x40]
call fcn.007992e0
movsxd rsi, dword [r12 + 0xd4]
mov rax, qword [r12 + 0x70]
mov dword [rax + rsi*4], ebx
jmp 0x545cef
mov rcx, r12
call fcn.00541e40
jmp 0x5458b8
cmp eax, 0xfffffffe
jne 0x545f4c
mov rdx, qword [r12 + 0x48]
lea r8, [rsp + 0x3c]
mov rcx, qword [r12 + 0x40]
call fcn.007d17e0
cmp dword [r12 + 0x20], 2
jne 0x545f4c
lea rsi, [r12 + 0x40]
mov rdx, rax
mov rcx, rsi
call fcn.00799280
lea rdx, [r12 + 0xd4]
mov rcx, rsi
call fcn.007992e0
mov rcx, qword [r12 + 0x18]
mov dword [r12 + 0xf4], ebx
mov edx, dword [r12 + 0xd4]
mov r8d, dword [rsp + 0x3c]
mov rax, qword [rcx]
call qword [rax + 0x68]
jmp 0x545c16