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

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rbx, qword [rcx + 0x10]
xor esi, esi
mov dword [rsp + 0x70], esi
mov r10d, r8d
mov dword [rsp + 0x40], esi
mov rbp, rdx
mov rdi, rcx
test rbx, rbx
je 0x1400539db
test rdx, rdx
je 0x1400539db
movzx eax, byte [rdx]
mov ecx, eax
add eax, 0xffffffed
xor ecx, 1
mov dword [rsp + 0x44], ecx
cmp eax, 0x81
ja case.0x1400536b4.20
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x53a0c]
mov ecx, dword [rdx + rax*4 + 0x539e8]
add rcx, rdx
jmp rcx
mov rdx, qword [rbp + 0x10]
mov rcx, rdi
call fcn.140053640
inc dword [rdi + 0x70]
mov rcx, rdi
mov r9d, dword [rsp + 0x88]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rbp + 0x18]
call fcn.140053640
mov rcx, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.140051550
mov rcx, rbx
call fcn.140038130
mov r9d, dword [rsp + 0x88]
mov r8d, eax
mov rdx, qword [rbp + 0x10]
xor r9d, 0x10
mov rcx, rdi
mov dword [rsp + 0x70], eax
call fcn.1400531e0
inc dword [rdi + 0x70]
mov rcx, rdi
mov r9d, dword [rsp + 0x88]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rbp + 0x18]
call fcn.140053640
mov rdx, qword [rbx + 0x30]
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x14005375c
or eax, 0xffffffff
sub eax, dword [rsp + 0x70]
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [r8 + rcx*4], eax
mov eax, dword [rbx + 0x3c]
mov rcx, rdi
dec eax
mov dword [rdx + 0x64], eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.140051550
mov rdx, qword [rbp + 0x10]
mov rcx, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.1400531e0
mov rdx, qword [rbp + 0x10]
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.140052b30
mov rdx, qword [rbp + 0x18]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.140052b30
mov edx, dword [rsp + 0x88]
mov r9d, dword [rsp + 0x44]
mov dword [rsp + 0x38], edx
mov ecx, dword [rsp + 0x80]
mov r8, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov dword [rsp + 0x30], ecx
mov rcx, rdi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
call fcn.14004dc40
jmp 0x140053953
mov rdx, qword [rbp + 0x10]
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.140052b30
mov rdx, qword [rbp + 0x18]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.140052b30
cmp byte [rbp], 0x49
mov r9d, esi
mov dword [rsp + 0x38], 0x80
setne r9b
add r9d, 0x4e
jmp 0x1400537c4
mov rdx, qword [rbp + 0x10]
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.140052b30
mov edx, dword [rsp + 0x44]
mov dword [rsp + 0x20], esi
jmp 0x140053940
mov dword [rsp + 0x20], r9d
mov rdx, rbp
xor r9d, r9d
mov rcx, rdi
call fcn.140053090
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
test r9d, r9d
je 0x140053886
mov r9d, r10d
mov rdx, rbp
mov rcx, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.140050b20
mov rcx, rbx
call fcn.140038130
mov r8d, dword [rsp + 0x80]
mov r9d, eax
mov rdx, rbp
mov rcx, rdi
mov esi, eax
call fcn.140050b20
mov rdx, qword [rbx + 0x30]
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x1400538c5
or eax, 0xffffffff
sub eax, esi
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [r8 + rcx*4], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [rdx + 0x64], eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbp
call fcn.14004e380
test eax, eax
je 0x140053909
xor r8d, r8d
mov dword [rsp + 0x20], esi
mov r9d, r10d
mov rcx, rbx
lea edx, [r8 + 0xe]
call fcn.140037d60
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbp
call fcn.14004e2f0
test eax, eax
jne 0x1400539db
lea r8, [rsp + 0x70]
mov rdx, rbp
mov rcx, rdi
call fcn.140052b30
mov edx, dword [rsp + 0x88]
mov ecx, esi
test edx, edx
mov edx, 0x2e
setne cl
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x80]
mov r8d, eax
mov rcx, rbx
call fcn.140037d60
mov edx, dword [rsp + 0x70]
test edx, edx
je 0x140053991
movzx r8d, byte [rdi + 0x1f]
cmp r8b, 8
jae 0x140053991
mov ecx, esi
lea rax, [rdi + 0x88]
nop
cmp dword [rax + 0xc], edx
je 0x14005398d
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140053970
movzx eax, r8b
mov dword [rdi + rax*4 + 0x24], edx
inc byte [rdi + 0x1f]
jmp 0x140053991
mov byte [rax + 6], 1
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x1400539db
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x1400539db
lea rax, [rdi + 0x88]
nop dword [rax]
cmp dword [rax + 0xc], ecx
je 0x1400539d7
inc esi
add rax, 0x14
cmp esi, 0xa
jl 0x1400539b0
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], ecx
inc byte [rdi + 0x1f]
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov byte [rax + 6], 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret