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

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x68], rsi
mov rsi, rcx
mov qword [rsp + 0x50], r13
mov r13d, edx
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140053d99
call qword [0x140176e18]
mov rcx, qword [rsi + 0x28]
cmp byte [rcx + 0x11], 0
je 0x140053db1
inc dword [rcx + 0x14]
cmp byte [rcx + 0x12], 0
jne 0x140053db1
call fcn.140047bc0
mov rdx, qword [rsi]
test rdx, rdx
je 0x140053dcb
mov rcx, qword [rdx + 0x18]
test rcx, rcx
je 0x140053dcb
call qword [0x140176e18]
mov rdx, qword [rsi]
mov ebx, dword [rsi + 0x30]
test ebx, ebx
je 0x140053dde
lea eax, [rbx - 5]
cmp eax, 1
ja 0x1400543ce
mov rcx, qword [rsi + 0x28]
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsi + 8]
mov qword [rsp + 0x58], r12
mov r8, qword [rcx + 8]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x98], 0
mov rax, qword [r8]
mov qword [rsp + 0x28], rax
mov rax, qword [rdi + 8]
mov r9, qword [rax]
mov qword [rsp + 0x20], r9
test rdx, rdx
je 0x140053e30
cmp byte [r8 + 0x24], 2
jne 0x140053e30
mov ebx, 5
jmp 0x140053e53
xor ebx, ebx
cmp byte [rcx + 0x10], bl
jne 0x140053e53
xor edx, edx
call fcn.14004a920
mov rcx, qword [rsi + 0x28]
mov ebx, eax
mov rdi, qword [rsi + 8]
mov dword [rsp + 0x98], 1
cmp dword [rsi + 0x14], 0
mov qword [rsp + 0x88], rbp
jne 0x140053f0e
test ebx, ebx
jne 0x140053f43
mov rax, qword [rcx + 8]
mov r14, qword [rdi + 8]
mov ebp, dword [rax + 0x30]
cmp byte [rdi + 0x11], bl
je 0x140053e8d
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], bl
jne 0x140053e8d
mov rcx, rdi
call fcn.140047bc0
test byte [r14 + 0x26], 2
je 0x140053eaa
cmp byte [rdi + 0x11], 0
je 0x140053f12
sub dword [rdi + 0x14], 1
jne 0x140053f12
mov rcx, rdi
call fcn.140047b90
jmp 0x140053f12
mov r12d, dword [r14 + 0x30]
lea eax, [rbp - 0x200]
sub r12d, dword [r14 + 0x34]
cmp eax, 0xfe00
ja 0x140053ed2
lea eax, [rbp - 1]
test ebp, eax
jne 0x140053ed2
mov rcx, r14
mov dword [r14 + 0x30], ebp
call fcn.140049d50
mov rcx, qword [r14]
lea rdx, [r14 + 0x30]
mov r8d, r12d
call fcn.140041f80
mov ecx, dword [r14 + 0x30]
mov ebp, eax
movzx eax, r12w
sub ecx, eax
mov dword [r14 + 0x34], ecx
cmp byte [rdi + 0x11], 0
je 0x140053f05
sub dword [rdi + 0x14], 1
jne 0x140053f05
mov rcx, rdi
call fcn.140047b90
cmp ebp, 7
jne 0x140053f12
mov ebx, ebp
jmp 0x140053f43
test ebx, ebx
jne 0x140053f43
cmp dword [rsi + 0x14], 0
jne 0x140053f43
mov rcx, qword [rsi + 8]
mov edx, 2
call fcn.14004a920
mov ebx, eax
test eax, eax
jne 0x140053f43
mov rcx, qword [rsi + 8]
lea r8, [rsi + 0x10]
lea edx, [rax + 1]
mov dword [rsi + 0x14], 1
call fcn.1400520b0
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + 8]
mov rax, qword [rsi + 8]
mov edx, dword [rcx + 0x30]
mov rax, qword [rax + 8]
mov dword [rsp + 0x80], edx
mov r8d, dword [rax + 0x30]
mov rax, qword [rax]
mov dword [rsp + 0x90], r8d
movzx r12d, byte [rax + 9]
test ebx, ebx
jne 0x140053f86
cmp r12b, 5
jne 0x140053f86
cmp edx, r8d
mov eax, 8
cmovne ebx, eax
mov r15d, dword [rcx + 0x3c]
xor r14d, r14d
nop dword [rax]
test r13d, r13d
js 0x140053f9a
cmp r14d, r13d
jge 0x140054006
mov ebp, dword [rsi + 0x18]
cmp ebp, r15d
ja 0x140054006
test ebx, ebx
jne 0x14005404b
mov rax, qword [rsi + 0x28]
xor edx, edx
mov rcx, qword [rax + 8]
mov eax, dword [0x1401770c8]
div dword [rcx + 0x30]
inc eax
cmp ebp, eax
je 0x140053ffe
mov rcx, qword [rsp + 0x28]
lea r9d, [rbx + 2]
lea r8, [rsp + 0x30]
mov edx, ebp
call fcn.140043590
mov ebx, eax
test eax, eax
jne 0x140053ffe
mov rdi, qword [rsp + 0x30]
xor r9d, r9d
mov edx, ebp
mov rcx, rsi
mov r8, qword [rdi + 8]
call fcn.140053bf0
mov rcx, rdi
mov ebx, eax
call fcn.140043af0
inc dword [rsi + 0x18]
inc r14d
jmp 0x140053f90
test ebx, ebx
jne 0x14005404b
mov eax, r15d
mov dword [rsi + 0x38], r15d
sub eax, dword [rsi + 0x18]
inc eax
mov dword [rsi + 0x34], eax
cmp dword [rsi + 0x18], r15d
ja 0x140054054
cmp dword [rsi + 0x3c], ebx
jne 0x14005437e
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + 8]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x70]
mov qword [rsi + 0x40], rax
mov qword [rdx + 0x70], rsi
mov dword [rsi + 0x3c], 1
jmp 0x14005437e
cmp ebx, 0x65
jne 0x14005437e
test r15d, r15d
jne 0x1400540ad
mov rdi, qword [rsi + 8]
cmp byte [rdi + 0x11], r15b
je 0x140054074
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], r15b
jne 0x140054074
mov rcx, rdi
call fcn.140047bc0
mov rax, qword [rdi + 8]
mov dword [rax + 0x3c], 0
mov rcx, qword [rdi + 8]
call fcn.14004a800
cmp byte [rdi + 0x11], 0
mov ebx, eax
je 0x14005409e
sub dword [rdi + 0x14], 1
jne 0x14005409e
mov rcx, rdi
call fcn.140047b90
mov r15d, 1
test ebx, ebx
je 0x1400540ad
cmp ebx, 0x65
jne 0x1400540c4
mov r8d, dword [rsi + 0x10]
mov edx, 1
mov rcx, qword [rsi + 8]
inc r8d
call fcn.140052140
mov ebx, eax
test ebx, ebx
jne 0x14005437e
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400540d9
call fcn.1400786e0
cmp r12b, 5
jne 0x1400540f7
mov rcx, qword [rsi + 8]
mov edx, 2
call fcn.1400537c0
mov ebx, eax
test eax, eax
jne 0x14005437e
movsxd rdi, dword [rsp + 0x80]
mov r10d, dword [rsp + 0x90]
cmp edi, r10d
jge 0x140054141
mov eax, r10d
cdq
idiv edi
mov ecx, eax
dec eax
add eax, r15d
cdq
idiv ecx
xor edx, edx
mov r8d, eax
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 8]
lea ebp, [r8 - 1]
mov eax, dword [0x1401770c8]
div dword [rcx + 0x30]
inc eax
cmp r8d, eax
cmovne ebp, r8d
jmp 0x14005414d
mov eax, edi
cdq
idiv r10d
mov ebp, eax
imul ebp, r15d
cmp edi, r10d
jge 0x14005434c
mov r10, qword [rsp + 0x20]
mov r12, rdi
movsxd r13, r15d
imul r13, rdi
mov r15, qword [r10 + 0x48]
mov r14d, dword [r10 + 0x20]
nop dword [rax]
cmp ebp, r14d
ja 0x140054216
mov rax, qword [rsi + 8]
xor edx, edx
mov rcx, qword [rax + 8]
mov eax, dword [0x1401770c8]
div dword [rcx + 0x30]
inc eax
cmp ebp, eax
je 0x14005420a
xor r9d, r9d
lea r8, [rsp + 0x30]
mov edx, ebp
mov rcx, r10
call fcn.140043590
mov ebx, eax
test eax, eax
jne 0x140054205
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rdi + 0x20]
mov ebx, dword [rcx + 0x30]
test ebx, ebx
jne 0x1400541fd
test byte [rdi + 0x2c], 4
je 0x1400541de
mov eax, dword [rdi + 0x28]
cmp dword [rcx + 0x20], eax
jb 0x1400541de
cmp dword [rcx + 0x80], ebx
je 0x1400541da
mov rcx, rdi
call fcn.140042600
jmp 0x1400541fb
xor ebx, ebx
jmp 0x1400541fd
mov eax, dword [rcx + 0xbc]
cmp dword [rcx + 0xb8], eax
mov rcx, rdi
jbe 0x1400541f6
call fcn.140044090
jmp 0x1400541fb
call fcn.140043e50
mov ebx, eax
mov rcx, rdi
call fcn.140043af0
mov r10, qword [rsp + 0x20]
inc ebp
test ebx, ebx
je 0x140054170
jmp 0x14005422a
test ebx, ebx
jne 0x14005422a
xor edx, edx
lea r8d, [rbx + 1]
mov rcx, r10
call fcn.1400443d0
mov ebx, eax
mov eax, dword [rsp + 0x90]
add eax, dword [0x1401770c8]
movsxd r14, eax
mov eax, dword [rsp + 0x80]
cmp r14, r13
cmovge r14, r13
add eax, dword [0x1401770c8]
movsxd rdi, eax
test ebx, ebx
jne 0x14005437e
nop dword [rax]
cmp rdi, r14
jge 0x1400542d2
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x90]
mov rax, rdi
mov qword [rsp + 0x90], 0
cqo
xor r9d, r9d
idiv r12
lea edx, [rax + 1]
call fcn.140043590
mov rbp, qword [rsp + 0x90]
mov ebx, eax
test eax, eax
jne 0x1400542b9
mov rax, qword [r15]
mov r9, rdi
mov r8d, dword [rsp + 0x80]
mov rcx, r15
mov rdx, qword [rbp + 8]
call qword [rax + 0x18]
mov ebx, eax
test rbp, rbp
je 0x1400542c6
mov rcx, rbp
call fcn.140043af0
add rdi, r12
test ebx, ebx
je 0x140054260
jmp 0x14005437e
test ebx, ebx
jne 0x14005437e
mov rax, qword [r15]
lea rdx, [rsp + 0x80]
mov rcx, r15
call qword [rax + 0x30]
mov ebx, eax
test eax, eax
jne 0x140054309
cmp qword [rsp + 0x80], r13
jle 0x140054309
mov rax, qword [r15]
mov rdx, r13
mov rcx, r15
call qword [rax + 0x20]
mov ebx, eax
test ebx, ebx
jne 0x14005437e
mov rdi, qword [rsp + 0x20]
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x140054336
xor r8d, r8d
lea edx, [rbx + 0x15]
call qword [rax + 0x50]
mov ebx, eax
cmp eax, 0xc
jne 0x140054332
xor ebx, ebx
jmp 0x140054336
test eax, eax
jne 0x140054363
cmp byte [rdi + 0xb], 0
jne 0x140054363
mov rcx, qword [rdi + 0x48]
movzx edx, byte [rdi + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x140054361
mov rax, qword [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rax + 0x20], ebp
call fcn.1400443d0
mov ebx, eax
test ebx, ebx
jne 0x14005437e
mov rcx, qword [rsi + 8]
xor edx, edx
call fcn.14004ba40
mov ebx, eax
mov eax, 0x65
test ebx, ebx
cmove ebx, eax
cmp dword [rsp + 0x98], 0
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x88]
je 0x1400543ba
mov rcx, qword [rsi + 0x28]
xor edx, edx
call fcn.14004b800
mov rcx, qword [rsi + 0x28]
xor edx, edx
call fcn.14004ba40
mov rdx, qword [rsi]
cmp ebx, 0xc0a
mov eax, 7
cmove ebx, eax
mov dword [rsi + 0x30], ebx
mov r13, qword [rsp + 0x50]
test rdx, rdx
je 0x1400543e7
mov rcx, qword [rdx + 0x18]
test rcx, rcx
je 0x1400543e7
call qword [0x140176e28]
mov rcx, qword [rsi + 0x28]
cmp byte [rcx + 0x11], 0
je 0x1400543fc
sub dword [rcx + 0x14], 1
jne 0x1400543fc
call fcn.140047b90
mov rcx, qword [rsi + 0x20]
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x140054414
call qword [0x140176e28]
mov eax, ebx
add rsp, 0x70
pop rbx
ret