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

Disassembly:
mov rax, rsp
push rbx
push rsi
push r12
push r14
sub rsp, 0xd8
mov r14d, dword [rcx + 0x4c]
mov r12, qword [rcx + 0xe0]
xor edx, edx
mov rbx, rcx
mov dword [rsp + 0x20], edx
mov dword [rsp + 0x24], edx
mov dword [rsp + 0x30], r14d
mov rsi, r12
cmp dword [rcx + 0x70], edx
je 0x140003135
mov r9d, dword [rcx]
mov r11d, dword [rcx + 0x3c]
mov qword [rax - 0x28], rbp
mov qword [rax - 0x30], rdi
mov qword [rax - 0x38], r13
mov eax, dword [rcx + 0x64]
mov dword [rsp + 0x110], r9d
mov dword [rsp + 0x70], r9d
cmp eax, r11d
jae 0x1400028ee
sub r11d, eax
mov dword [rsp + 0x108], r11d
jmp 0x1400028f8
mov r11d, edx
mov dword [rsp + 0x108], edx
mov r10d, dword [rcx + 0x18]
movsxd rax, dword [rbx + 0xd0]
mov qword [rsp + 0xb8], r15
mov dword [rsp + 0x118], r10d
mov dword [rsp + 0x88], r10d
mov edi, edx
mov ebp, edx
mov qword [rsp + 0x80], rdx
mov rcx, rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x58], rax
test rax, rax
jle 0x140002af5
mov r14, qword [rsp + 0x58]
mov eax, r9d
mov r13d, r9d
shr eax, 0x18
shr r13d, 8
mov r15d, r9d
mov dword [rsp + 0x34], eax
movzx eax, r11w
shr r15d, 0x10
shr ax, 8
mov edx, 4
mov dword [rsp + 0x3c], r13d
mov word [rsp + 0x100], ax
mov eax, r10d
mov dword [rsp + 0x38], r15d
shr eax, 8
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x40], eax
mov eax, r10d
shr eax, 0x10
mov dword [rsp + 0x28], eax
mov eax, r10d
shr eax, 0x18
mov dword [rsp + 0x2c], eax
jmp 0x1400029aa
mov r13d, dword [rsp + 0x3c]
mov r15d, dword [rsp + 0x38]
mov edi, esi
sub edi, r12d
lea eax, [rdi + 0x18]
cmp eax, dword [rbx + 4]
jle 0x140002a0f
test byte [rbx + 0xf8], 1
je 0x1400029e1
cmp qword [rbx + 0x108], 0
je 0x1400029e1
lea r8, str._RO___ld_bytes
mov r9d, edi
mov edx, 1
mov rcx, rbx
call fcn.1400016a0
test edi, edi
je 0x1400029fa
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, edi
mov rcx, r12
call qword [rbx + 0x100]
mov rcx, qword [rsp + 0x48]
mov r11d, dword [rsp + 0x108]
mov rdx, qword [rsp + 0x50]
mov rsi, r12
mov rax, qword [rbx + 0xc8]
inc rcx
add rdx, 8
mov edi, dword [rax + rcx*8 - 8]
mov ebp, dword [rdx + rax - 8]
movzx eax, byte [rsp + 0x70]
mov byte [rsi], al
mov eax, dword [rsp + 0x34]
mov byte [rsi + 1], r13b
mov byte [rsi + 3], al
movzx eax, word [rsp + 0x100]
mov byte [rsi + 2], r15b
mov word [rsi + 4], 0x52
mov byte [rsi + 7], al
mov byte [rsi + 6], r11b
mov byte [rsi + 8], bpl
mov eax, ebp
add rsi, 0x18
shr eax, 8
mov dword [rsp + 0x84], edi
mov dword [rsp + 0x80], ebp
mov byte [rsi - 0xf], al
mov eax, ebp
movzx r13d, bpl
shr eax, 0x10
movzx r15d, dil
mov qword [rsp + 0x48], rcx
mov byte [rsi - 0xe], al
mov eax, ebp
mov qword [rsp + 0x50], rdx
shr eax, 0x18
mov byte [rsi - 0xd], al
mov byte [rsi - 0xc], dil
mov eax, edi
shr eax, 8
mov byte [rsi - 0xb], al
mov eax, edi
shr eax, 0x10
mov byte [rsi - 0xa], al
mov eax, edi
shr eax, 0x18
mov byte [rsi - 9], al
movzx eax, byte [rsp + 0x88]
mov byte [rsi - 8], al
mov eax, dword [rsp + 0x40]
mov byte [rsi - 7], al
mov eax, dword [rsp + 0x28]
mov byte [rsi - 6], al
mov eax, dword [rsp + 0x2c]
mov byte [rsi - 5], al
mov dword [rsi - 4], 0
cmp rcx, r14
jl 0x1400029a0
mov r14d, dword [rsp + 0x30]
mov r9d, dword [rsp + 0x110]
mov r10d, dword [rsp + 0x118]
xor edx, edx
jmp 0x140002b07
movzx r15d, byte [rsp + 0x84]
movzx r13d, byte [rsp + 0x80]
cmp dword [rbx + 0x40], 0
mov dword [rbx + 0xd0], edx
jne 0x140002b63
mov edx, dword [rbx + 0x78]
test edx, edx
jne 0x140002b2c
mov eax, dword [rbx + 0x4c]
mov ecx, 0x1b58
add eax, ecx
mov dword [rbx + 0x78], ecx
mov dword [rbx + 0x74], eax
jmp 0x140002b6b
mov r8d, dword [rbx + 0x4c]
cmp r8d, dword [rbx + 0x74]
js 0x140002b6b
mov eax, dword [rbx + 0x78]
mov ecx, 0x1b58
cmp edx, ecx
cmovb eax, ecx
mov edx, eax
shr edx, 1
add edx, eax
mov eax, 0x1d4c0
cmp edx, eax
cmova edx, eax
or dword [rbx + 0x48], 1
lea ecx, [r8 + rdx]
mov dword [rbx + 0x78], edx
mov dword [rbx + 0x74], ecx
jmp 0x140002b6b
mov qword [rbx + 0x74], 0
test byte [rbx + 0x48], 1
je 0x140002c4a
mov r8d, esi
sub r8d, r12d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x140002baa
mov rdx, r12
mov rcx, rbx
call fcn.140001740
mov r9d, dword [rsp + 0x110]
mov r10d, dword [rsp + 0x118]
mov r11d, dword [rsp + 0x108]
mov rsi, r12
movzx eax, byte [rsp + 0x70]
mov byte [rsi], al
mov eax, r9d
shr eax, 8
mov byte [rsi + 1], al
mov eax, r9d
shr eax, 0x10
mov byte [rsi + 2], al
mov eax, r9d
shr eax, 0x18
mov byte [rsi + 3], al
mov word [rsi + 4], 0x53
mov byte [rsi + 6], r11b
movzx eax, r11w
shr ax, 8
mov byte [rsi + 7], al
mov byte [rsi + 8], r13b
mov eax, ebp
shr eax, 8
mov byte [rsi + 9], al
mov eax, ebp
shr eax, 0x10
mov byte [rsi + 0xa], al
mov eax, ebp
shr eax, 0x18
mov byte [rsi + 0xb], al
mov byte [rsi + 0xc], r15b
mov eax, edi
shr eax, 8
mov byte [rsi + 0xd], al
mov eax, edi
shr eax, 0x10
mov byte [rsi + 0xe], al
mov eax, edi
shr eax, 0x18
mov byte [rsi + 0xf], al
movzx eax, byte [rsp + 0x88]
mov byte [rsi + 0x10], al
mov eax, r10d
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, r10d
shr eax, 0x10
mov byte [rsi + 0x12], al
mov eax, r10d
shr eax, 0x18
add rsi, 0x18
mov byte [rsi - 5], al
mov dword [rsi - 4], 0
test byte [rbx + 0x48], 2
je 0x140002d25
mov r8d, esi
sub r8d, r12d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x140002c89
mov rdx, r12
mov rcx, rbx
call fcn.140001740
mov r9d, dword [rsp + 0x110]
mov r10d, dword [rsp + 0x118]
mov r11d, dword [rsp + 0x108]
mov rsi, r12
movzx eax, byte [rsp + 0x70]
mov byte [rsi], al
mov eax, r9d
shr eax, 8
mov byte [rsi + 1], al
mov eax, r9d
shr r9d, 0x18
shr eax, 0x10
mov byte [rsi + 3], r9b
mov byte [rsi + 2], al
mov word [rsi + 4], 0x54
mov byte [rsi + 6], r11b
movzx eax, r11w
shr ax, 8
mov byte [rsi + 7], al
mov byte [rsi + 8], r13b
mov eax, ebp
shr eax, 8
mov byte [rsi + 9], al
mov eax, ebp
shr ebp, 0x18
shr eax, 0x10
mov byte [rsi + 0xb], bpl
mov byte [rsi + 0xa], al
mov byte [rsi + 0xc], r15b
mov eax, edi
shr eax, 8
mov byte [rsi + 0xd], al
mov eax, edi
shr edi, 0x18
shr eax, 0x10
mov byte [rsi + 0xf], dil
mov byte [rsi + 0xe], al
movzx eax, byte [rsp + 0x88]
mov byte [rsi + 0x10], al
mov eax, r10d
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, r10d
shr r10d, 0x18
shr eax, 0x10
mov byte [rsi + 0x13], r10b
add rsi, 0x18
mov byte [rsi - 6], al
mov dword [rsi - 4], 0
mov r13d, dword [rbx + 0x40]
mov eax, dword [rbx + 0x38]
xor r9d, r9d
cmp eax, r13d
mov dword [rbx + 0x48], r9d
cmovbe r13d, eax
mov dword [rsp + 0x110], r13d
cmp dword [rbx + 0xf0], r9d
jne 0x140002d5d
mov eax, dword [rbx + 0x44]
cmp eax, r13d
cmovbe r13d, eax
mov dword [rsp + 0x110], r13d
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
cmp eax, r13d
jns 0x140002e07
lea r8, [rbx + 0x88]
mov rdx, qword [r8]
cmp r8, rdx
je 0x140002e07
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx]
mov rcx, qword [rdx + 8]
mov qword [rcx], rax
mov qword [rdx], r9
mov qword [rdx + 8], r9
mov rax, qword [rbx + 0xb0]
mov qword [rdx + 8], rax
lea rax, [rbx + 0xa8]
mov qword [rdx], rax
mov rax, qword [rbx + 0xb0]
mov qword [rax], rdx
dec dword [rbx + 0x68]
inc dword [rbx + 0x60]
mov eax, dword [rbx]
mov qword [rbx + 0xb0], rdx
mov dword [rdx + 0x14], 0x51
mov dword [rdx + 0x1c], r11d
mov dword [rdx + 0x20], r14d
mov dword [rdx + 0x10], eax
mov eax, dword [rbx + 0x14]
mov dword [rdx + 0x24], eax
inc dword [rbx + 0x14]
mov eax, dword [rbx + 0x18]
mov dword [rdx + 0x28], eax
mov dword [rdx + 0x30], r14d
mov eax, dword [rbx + 0x30]
mov dword [rdx + 0x34], eax
mov qword [rdx + 0x38], r9
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
cmp eax, r13d
js 0x140002d73
mov eax, dword [rbx + 0xe8]
or ebp, 0xffffffff
test eax, eax
cmovg ebp, eax
mov dword [rsp + 0x100], ebp
cmp dword [rbx + 0x6c], r9d
jne 0x140002e2c
mov r15d, dword [rbx + 0x30]
sar r15d, 3
jmp 0x140002e2f
mov r15d, r9d
lea rax, [rbx + 0xa8]
mov rdi, qword [rax]
cmp rdi, rax
je 0x140003065
mov r13d, r9d
mov ecx, dword [rdi + 0x3c]
test ecx, ecx
jne 0x140002e65
mov dword [rdi + 0x3c], 1
mov eax, dword [rbx + 0x30]
lea ecx, [rax + r15]
mov dword [rdi + 0x34], eax
add ecx, r14d
jmp 0x140002ef3
cmp r14d, dword [rdi + 0x30]
js 0x140002ec4
lea eax, [rcx + 1]
mov dword [rdi + 0x3c], eax
mov eax, dword [rbx + 0x6c]
inc dword [rbx + 0x58]
test eax, eax
jne 0x140002e95
mov eax, dword [rdi + 0x34]
mov ecx, dword [rbx + 0x30]
mov dword [rsp + 0x24], 1
cmp eax, ecx
cmovae ecx, eax
add ecx, eax
mov dword [rdi + 0x34], ecx
jmp 0x140002eec
cmp eax, 2
jae 0x140002eaf
mov eax, dword [rdi + 0x34]
mov dword [rsp + 0x24], 1
cdq
sub eax, edx
sar eax, 1
add dword [rdi + 0x34], eax
jmp 0x140002eec
mov eax, dword [rbx + 0x30]
mov dword [rsp + 0x24], 1
cdq
sub eax, edx
sar eax, 1
add dword [rdi + 0x34], eax
jmp 0x140002eec
cmp dword [rdi + 0x38], ebp
jb 0x140003045
mov eax, dword [rbx + 0xec]
cmp ecx, eax
jle 0x140002edf
test eax, eax
jg 0x140003045
lea eax, [rcx + 1]
mov dword [rdi + 0x38], r9d
inc r13d
mov dword [rdi + 0x3c], eax
mov eax, dword [rdi + 0x34]
lea ecx, [r14 + rax]
mov dword [rdi + 0x30], ecx
mov dword [rdi + 0x20], r14d
mov dword [rdi + 0x1c], r11d
mov eax, dword [rbx + 0x18]
mov ebp, esi
mov dword [rdi + 0x28], eax
mov eax, dword [rdi + 0x2c]
sub ebp, r12d
lea ecx, [rax + rbp + 0x18]
cmp ecx, dword [rbx + 4]
jle 0x140002f5b
test byte [rbx + 0xf8], 1
je 0x140002f3f
cmp qword [rbx + 0x108], 0
je 0x140002f3f
lea r8, str._RO___ld_bytes
mov r9d, ebp
mov edx, 1
mov rcx, rbx
call fcn.1400016a0
test ebp, ebp
je 0x140002f58
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, ebp
mov rcx, r12
call qword [rbx + 0x100]
mov rsi, r12
mov ecx, dword [rdi + 0x10]
add rsi, 0x18
mov byte [rsi - 0x18], cl
mov eax, ecx
shr eax, 8
mov byte [rsi - 0x17], al
mov eax, ecx
shr ecx, 0x18
mov byte [rsi - 0x15], cl
shr eax, 0x10
mov byte [rsi - 0x16], al
movzx eax, byte [rdi + 0x14]
mov byte [rsi - 0x14], al
movzx eax, byte [rdi + 0x18]
mov byte [rsi - 0x13], al
movzx eax, word [rdi + 0x1c]
mov byte [rsi - 0x12], al
shr ax, 8
mov byte [rsi - 0x11], al
mov ecx, dword [rdi + 0x20]
mov byte [rsi - 0x10], cl
mov eax, ecx
shr eax, 8
mov byte [rsi - 0xf], al
mov eax, ecx
shr ecx, 0x18
mov byte [rsi - 0xd], cl
shr eax, 0x10
mov byte [rsi - 0xe], al
mov ecx, dword [rdi + 0x24]
mov byte [rsi - 0xc], cl
mov eax, ecx
shr eax, 8
mov byte [rsi - 0xb], al
mov eax, ecx
shr ecx, 0x18
mov byte [rsi - 9], cl
shr eax, 0x10
mov byte [rsi - 0xa], al
mov ecx, dword [rdi + 0x28]
mov byte [rsi - 8], cl
mov eax, ecx
shr eax, 8
mov byte [rsi - 7], al
mov eax, ecx
shr ecx, 0x18
mov byte [rsi - 5], cl
shr eax, 0x10
mov byte [rsi - 6], al
mov ecx, dword [rdi + 0x2c]
mov eax, ecx
mov byte [rsi - 4], cl
shr eax, 8
mov byte [rsi - 3], al
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [rsi - 1], cl
mov byte [rsi - 2], al
mov eax, dword [rdi + 0x2c]
test eax, eax
je 0x140003024
lea rdx, [rdi + 0x40]
mov r8d, eax
mov rcx, rsi
call fcn.140008b00
mov r11d, dword [rdi + 0x2c]
add rsi, r11
mov eax, dword [rbx + 0x7c]
mov r11d, dword [rsp + 0x108]
mov ebp, dword [rsp + 0x100]
xor r9d, r9d
cmp dword [rdi + 0x3c], eax
jb 0x140003045
mov dword [rbx + 0xc], 0xffffffff
mov rdi, qword [rdi]
lea rax, [rbx + 0xa8]
cmp rdi, rax
jne 0x140002e45
mov dword [rsp + 0x20], r13d
mov r13d, dword [rsp + 0x110]
mov r15, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc8]
sub esi, r12d
test esi, esi
jle 0x1400030bb
test byte [rbx + 0xf8], 1
je 0x1400030a6
cmp qword [rbx + 0x108], 0
je 0x1400030a6
lea r8, str._RO___ld_bytes
mov r9d, esi
mov edx, 1
mov rcx, rbx
call fcn.1400016a0
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, esi
mov rcx, r12
call qword [rbx + 0x100]
cmp dword [rsp + 0x20], 0
mov edx, 2
je 0x1400030ea
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
shr eax, 1
cmp eax, edx
cmovb eax, edx
mov dword [rbx + 0x24], eax
lea ecx, [rbp + rax]
mov eax, dword [rbx + 8]
mov dword [rbx + 0x44], ecx
imul eax, ecx
mov dword [rbx + 0x80], eax
cmp dword [rsp + 0x24], 0
mov rbp, qword [rsp + 0xd0]
je 0x140003117
mov eax, dword [rbx + 8]
shr r13d, 1
mov dword [rbx + 0x44], 1
cmp r13d, edx
mov dword [rbx + 0x80], eax
cmovb r13d, edx
mov dword [rbx + 0x24], r13d
cmp dword [rbx + 0x44], 1
mov r13, qword [rsp + 0xc0]
jae 0x140003135
mov eax, dword [rbx + 8]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0x80], eax
add rsp, 0xd8
pop r14
pop r12
pop rsi
pop rbx
ret