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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
push rbx
push rdi
sub rsp, 0x98
mov qword [rax + 8], rbp
mov qword [rax - 0x20], r12
mov qword [rax - 0x30], r14
mov qword [rax - 0x38], r15
mov ecx, r8d
xor r11d, r11d
mov eax, 1
mov rdi, rdx
mov rdx, qword [rsp + 0xe0]
shl eax, cl
mov rcx, qword [rsp + 0xe8]
mov r10d, r9d
mov r14d, dword [rcx + 0x18]
mov ebp, dword [rcx + 0x14]
mov r12d, eax
sar r12d, 1
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x38], r14d
or r12d, eax
cmp dword [rdx + 0x14], 1
mov dword [rsp + 0x3c], ebp
jle 0x140248478
mov rax, qword [rdx + 0x20]
mov rbx, qword [rax + 8]
sub rbx, qword [rax]
sar rbx, 2
jmp 0x14024847b
mov ebx, r11d
mov qword [rsp + 0x50], rbx
cmp ebp, 1
jle 0x140248496
mov rax, qword [rcx + 0x20]
mov r15, qword [rax + 8]
sub r15, qword [rax]
sar r15, 2
jmp 0x140248499
mov r15d, r11d
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0xe0], r15
lea r8d, [rbx*4]
mov rdx, qword [rax + 8]
mov rax, qword [rcx + 0x20]
lea r9d, [r15*4]
mov rax, qword [rax]
add rdx, 4
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdx
test ebp, ebp
jle 0x140248df6
movsxd rcx, r8d
mov qword [rsp + 0x90], rsi
movsxd rsi, ebx
shl rcx, 2
mov qword [rsp + 0x80], r13
lea r8, [0x140000000]
mov qword [rsp + 0x58], rcx
movsxd rcx, r9d
mov qword [rsp + 0x20], rsi
shl rcx, 2
mov r9d, 4
mov qword [rsp + 0x60], rcx
sub ebp, r11d
mov r13, rdx
mov rcx, rax
cmp ebp, 4
mov qword [rsp + 0x30], rax
mov dword [rsp + 0xe8], r14d
cmovg ebp, r9d
mov dword [rsp + 0xc0], ebp
test r14d, r14d
jle 0x140248dbc
cmp ebp, 4
jl 0x1402486e6
test dword [r13], 0x50ff
jne 0x1402486e6
lea r14, [rsi*4]
test dword [r14 + r13], 0x50ff
lea rax, [r14 + r13]
jne 0x1402486e6
add rax, r14
test dword [rax], 0x50ff
jne 0x1402486e6
test dword [r14 + rax], 0x50ff
jne 0x1402486e6
mov r8, qword [rdi + 0x18]
mov edx, dword [rdi]
mov qword [rdi + 0x10], r8
mov rax, qword [r8]
movzx ecx, word [rax]
sub dword [rdi + 4], ecx
mov rax, qword [r8]
movzx ecx, word [rax]
mov eax, edx
shr eax, 0x10
cmp eax, ecx
jb 0x1402485d2
shl ecx, 0x10
sub edx, ecx
test dword [rdi + 4], 0x8000
mov dword [rdi], edx
je 0x1402485c8
mov rax, qword [r8]
mov eax, dword [rax + 4]
jmp 0x1402485da
mov rcx, rdi
call fcn.1402459e0
jmp 0x1402485da
mov rcx, rdi
call fcn.1402458d0
test eax, eax
je 0x140248d62
mov r8, qword [rdi + 0x18]
mov edx, dword [rdi]
add r8, 0x90
mov qword [rdi + 0x10], r8
mov rax, qword [r8]
movzx ecx, word [rax]
sub dword [rdi + 4], ecx
mov rax, qword [r8]
movzx ecx, word [rax]
mov eax, edx
shr eax, 0x10
cmp eax, ecx
jb 0x14024862d
shl ecx, 0x10
sub edx, ecx
test dword [rdi + 4], 0x8000
mov dword [rdi], edx
je 0x140248623
mov rax, qword [r8]
mov ebx, dword [rax + 4]
jmp 0x140248637
mov rcx, rdi
call fcn.1402459e0
jmp 0x140248635
mov rcx, rdi
call fcn.1402458d0
mov ebx, eax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
movzx eax, word [rcx]
sub dword [rdi + 4], eax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
movzx edx, word [rcx]
mov ecx, dword [rdi]
mov eax, ecx
shr eax, 0x10
cmp eax, edx
jb 0x14024867f
shl edx, 0x10
sub ecx, edx
test dword [rdi + 4], 0x8000
mov dword [rdi], ecx
je 0x140248675
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
mov eax, dword [rcx + 4]
jmp 0x140248687
mov rcx, rdi
call fcn.1402459e0
jmp 0x140248687
mov rcx, rdi
call fcn.1402458d0
mov rdx, qword [rsp + 0x30]
lea ecx, [rbx + rbx]
or ecx, eax
mov eax, ecx
sub ebp, ecx
imul eax, dword [rsp + 0x50]
cdqe
lea rbx, [rax*4]
mov eax, ecx
add rbx, r13
imul eax, r15d
cdqe
mov esi, dword [rbx]
lea r15, [rdx + rax*4]
test ecx, ecx
je 0x14024876b
dec ecx
je 0x14024892d
dec ecx
je 0x140248ace
dec ecx
je 0x140248c70
mov r10d, dword [rsp + 0xc8]
lea r8, [0x140000000]
jmp 0x1402486f0
mov esi, dword [r13]
mov rbx, r13
mov r15, rcx
test esi, 0x5000
jne 0x140248876
mov edx, dword [rdi]
mov eax, r10d
movzx ecx, sil
shl eax, 8
cdqe
or rcx, rax
mov rax, qword [rdi + 0x18]
movsxd rcx, dword [r8 + rcx*4 + 0x4728c0]
lea r8, [rax + rcx*8]
mov qword [rdi + 0x10], r8
mov rax, qword [r8]
movzx ecx, word [rax]
sub dword [rdi + 4], ecx
mov rax, qword [r8]
movzx ecx, word [rax]
mov eax, edx
shr eax, 0x10
cmp eax, ecx
jb 0x14024875b
shl ecx, 0x10
sub edx, ecx
test dword [rdi + 4], 0x8000
mov dword [rdi], edx
je 0x140248751
mov rax, qword [r8]
mov eax, dword [rax + 4]
jmp 0x140248763
mov rcx, rdi
call fcn.1402459e0
jmp 0x140248763
mov rcx, rdi
call fcn.1402458d0
test eax, eax
je 0x140248876
mov edx, dword [rdi]
mov eax, esi
sar rax, 4
movzx eax, al
lea rsi, [rax*4]
lea rax, [0x140000000]
movsxd rcx, dword [rsi + rax + 0x4720c0]
mov rax, qword [rdi + 0x18]
lea r8, [rax + rcx*8]
mov qword [rdi + 0x10], r8
mov rax, qword [r8]
movzx ecx, word [rax]
sub dword [rdi + 4], ecx
mov rax, qword [r8]
movzx ecx, word [rax]
mov eax, edx
shr eax, 0x10
cmp eax, ecx
jb 0x1402487d3
shl ecx, 0x10
sub edx, ecx
test dword [rdi + 4], 0x8000
mov dword [rdi], edx
je 0x1402487c9
mov rax, qword [r8]
mov edx, dword [rax + 4]
jmp 0x1402487dd
mov rcx, rdi
call fcn.1402459e0
jmp 0x1402487db
mov rcx, rdi
call fcn.1402458d0
mov edx, eax
lea r8, [0x140000000]
mov eax, r12d
xor edx, dword [rsi + r8 + 0x4724c0]
je 0x1402487f3
neg eax
mov rsi, qword [rsp + 0x20]
mov dword [r15], eax
mov rcx, rbx
lea rax, [rsi*4]
sub rcx, rax
cmp dword [rsp + 0xd0], 0
je 0x140248823
or dword [rax + rbx - 4], 1
or dword [rax + rbx + 4], 8
test edx, edx
je 0x14024885f
jmp 0x14024883f
or dword [rcx - 4], 2
or dword [rcx + 4], 4
or dword [rax + rbx - 4], 1
or dword [rax + rbx + 4], 8
test edx, edx
je 0x14024885c
or dword [rcx], 0x440
or dword [rax + rbx], 0x110
or dword [rbx - 4], 0x220
or dword [rbx + 4], 0x880
or dword [rbx], 0x1000
jmp 0x140248882
or dword [rcx], 0x40
or dword [rax + rbx], 0x10
or dword [rbx - 4], 0x20
or dword [rbx + 4], 0x80
or dword [rbx], 0x1000
jmp 0x140248882
mov rsi, qword [rsp + 0x20]
lea r8, [0x140000000]
and dword [rbx], 0xffffbfff
dec ebp
test ebp, ebp
jle 0x140248d53
mov rcx, qword [rsp + 0xe0]
lea r14, [rsi*4]
add rbx, r14
movsxd rax, ecx
mov esi, dword [rbx]
lea r15, [r15 + rax*4]
test esi, 0x5000
jne 0x140248a2c
mov eax, dword [rsp + 0xc8]
mov edx, dword [rdi]
movzx ecx, sil
shl eax, 8
cdqe
or rcx, rax
mov rax, qword [rdi + 0x18]
movsxd rcx, dword [r8 + rcx*4 + 0x4728c0]
lea r8, [rax + rcx*8]
mov qword [rdi + 0x10], r8
mov rax, qword [r8]
movzx ecx, word [rax]
sub dword [rdi + 4], ecx
mov rax, qword [r8]
movzx ecx, word [rax]
mov eax, edx
shr eax, 0x10
cmp eax, ecx
jb 0x14024891d
shl ecx, 0x10
sub edx, ecx
test dword [rdi + 4], 0x8000
mov dword [rdi], edx
je 0x140248913
mov rax, qword [r8]
mov eax, dword [rax + 4]
jmp 0x140248925
mov rcx, rdi
call fcn.1402459e0
jmp 0x140248925
mov rcx, rdi
call fcn.1402458d0
test eax, eax
je 0x140248a24
mov edx, dword [rdi]
mov eax, esi
sar rax, 4
movzx eax, al
lea rsi, [rax*4]
lea rax, [0x140000000]
movsxd rcx, dword [rsi + rax + 0x4720c0]
mov rax, qword [rdi + 0x18]
lea r8, [rax + rcx*8]
mov qword [rdi + 0x10], r8
mov rax, qword [r8]
movzx ecx, word [rax]
sub dword [rdi + 4], ecx
mov rax, qword [r8]
movzx ecx, word [rax]
mov eax, edx
shr eax, 0x10
cmp eax, ecx
jb 0x140248995
shl ecx, 0x10
sub edx, ecx
test dword [rdi + 4], 0x8000
mov dword [rdi], edx
je 0x14024898b
mov rax, qword [r8]
mov ecx, dword [rax + 4]
jmp 0x14024899f
mov rcx, rdi
call fcn.1402459e0
jmp 0x14024899d
mov rcx, rdi
call fcn.1402458d0
mov ecx, eax
lea rdx, [0x140000000]
mov eax, r12d
xor ecx, dword [rsi + rdx + 0x4724c0]
je 0x1402489b4
neg eax
mov dword [r15], eax
mov rax, rbx
sub rax, r14
or dword [rax - 4], 2
or dword [rax + 4], 4
or dword [r14 + rbx - 4], 1
or dword [r14 + rbx + 4], 8
test ecx, ecx
je 0x140248a01
or dword [rax], 0x440
or dword [r14 + rbx], 0x110
or dword [rbx - 4], 0x220
or dword [rbx + 4], 0x880
mov rcx, qword [rsp + 0xe0]
or dword [rbx], 0x1000
jmp 0x140248a33
or dword [rax], 0x40
or dword [r14 + rbx], 0x10
or dword [rbx - 4], 0x20
or dword [rbx + 4], 0x80
mov rcx, qword [rsp + 0xe0]
or dword [rbx], 0x1000
jmp 0x140248a33
mov rcx, qword [rsp + 0xe0]
lea rdx, [0x140000000]
and dword [rbx], 0xffffbfff
dec ebp
test ebp, ebp
jle 0x140248d4e
add rbx, r14
movsxd rax, ecx
mov esi, dword [rbx]
lea r15, [r15 + rax*4]
test esi, 0x5000
jne 0x140248bcd
mov eax, dword [rsp + 0xc8]
movzx ecx, sil
shl eax, 8
cdqe
or rcx, rax
mov rax, qword [rdi + 0x18]
movsxd rcx, dword [rdx + rcx*4 + 0x4728c0]
mov edx, dword [rdi]
lea r8, [rax + rcx*8]
mov qword [rdi + 0x10], r8
mov rax, qword [r8]
movzx ecx, word [rax]
sub dword [rdi + 4], ecx
mov rax, qword [r8]
movzx ecx, word [rax]
mov eax, edx
shr eax, 0x10
cmp eax, ecx
jb 0x140248abe
shl ecx, 0x10
sub edx, ecx
test dword [rdi + 4], 0x8000
mov dword [rdi], edx
je 0x140248ab4
mov rax, qword [r8]
mov eax, dword [rax + 4]
jmp 0x140248ac6
mov rcx, rdi
call fcn.1402459e0
jmp 0x140248ac6
mov rcx, rdi
call fcn.1402458d0
test eax, eax
je 0x140248bc5
mov edx, dword [rdi]
mov eax, esi
sar rax, 4
movzx eax, al
lea rsi, [rax*4]
lea rax, [0x140000000]
movsxd rcx, dword [rsi + rax + 0x4720c0]
mov rax, qword [rdi + 0x18]
lea r8, [rax + rcx*8]
mov qword [rdi + 0x10], r8
mov rax, qword [r8]
movzx ecx, word [rax]
sub dword [rdi + 4], ecx
mov rax, qword [r8]
movzx ecx, word [rax]
mov eax, edx
shr eax, 0x10
cmp eax, ecx
jb 0x140248b36
shl ecx, 0x10
sub edx, ecx
test dword [rdi + 4], 0x8000
mov dword [rdi], edx
je 0x140248b2c
mov rax, qword [r8]
mov ecx, dword [rax + 4]
jmp 0x140248b40
mov rcx, rdi
call fcn.1402459e0
jmp 0x140248b3e
mov rcx, rdi
call fcn.1402458d0
mov ecx, eax
lea rdx, [0x140000000]
mov eax, r12d
xor ecx, dword [rsi + rdx + 0x4724c0]
je 0x140248b55
neg eax
mov dword [r15], eax
mov rax, rbx
sub rax, r14
or dword [rax - 4], 2
or dword [rax + 4], 4
or dword [r14 + rbx - 4], 1
or dword [r14 + rbx + 4], 8
test ecx, ecx
je 0x140248ba2
or dword [rax], 0x440
or dword [r14 + rbx], 0x110
or dword [rbx - 4], 0x220
or dword [rbx + 4], 0x880
mov rcx, qword [rsp + 0xe0]
or dword [rbx], 0x1000
jmp 0x140248bd4
or dword [rax], 0x40
or dword [r14 + rbx], 0x10
or dword [rbx - 4], 0x20
or dword [rbx + 4], 0x80
mov rcx, qword [rsp + 0xe0]
or dword [rbx], 0x1000
jmp 0x140248bd4
mov rcx, qword [rsp + 0xe0]
lea rdx, [0x140000000]
and dword [rbx], 0xffffbfff
lea eax, [rbp - 1]
test eax, eax
jle 0x140248d4e
add rbx, r14
movsxd rax, ecx
mov esi, dword [rbx]
lea r15, [r15 + rax*4]
test esi, 0x5000
jne 0x140248d48
mov eax, dword [rsp + 0xc8]
movzx ecx, sil
shl eax, 8
cdqe
or rcx, rax
mov rax, qword [rdi + 0x18]
movsxd rcx, dword [rdx + rcx*4 + 0x4728c0]
mov edx, dword [rdi]
lea r8, [rax + rcx*8]
mov qword [rdi + 0x10], r8
mov rax, qword [r8]
movzx ecx, word [rax]
sub dword [rdi + 4], ecx
mov rax, qword [r8]
movzx ecx, word [rax]
mov eax, edx
shr eax, 0x10
cmp eax, ecx
jb 0x140248c60
shl ecx, 0x10
sub edx, ecx
test dword [rdi + 4], 0x8000
mov dword [rdi], edx
je 0x140248c56
mov rax, qword [r8]
mov eax, dword [rax + 4]
jmp 0x140248c68
mov rcx, rdi
call fcn.1402459e0
jmp 0x140248c68
mov rcx, rdi
call fcn.1402458d0
test eax, eax
je 0x140248d48
mov edx, dword [rdi]
mov eax, esi
lea rbp, [0x140000000]
sar rax, 4
movzx eax, al
lea rsi, [rax*4]
mov rax, qword [rdi + 0x18]
movsxd rcx, dword [rsi + rbp + 0x4720c0]
lea r8, [rax + rcx*8]
mov qword [rdi + 0x10], r8
mov rax, qword [r8]
movzx ecx, word [rax]
sub dword [rdi + 4], ecx
mov rax, qword [r8]
movzx ecx, word [rax]
mov eax, edx
shr eax, 0x10
cmp eax, ecx
jb 0x140248cd8
shl ecx, 0x10
sub edx, ecx
test dword [rdi + 4], 0x8000
mov dword [rdi], edx
je 0x140248cce
mov rax, qword [r8]
mov ecx, dword [rax + 4]
jmp 0x140248ce2
mov rcx, rdi
call fcn.1402459e0
jmp 0x140248ce0
mov rcx, rdi
call fcn.1402458d0
mov ecx, eax
xor ecx, dword [rsi + rbp + 0x4724c0]
mov eax, r12d
je 0x140248cf0
neg eax
mov dword [r15], eax
mov rax, rbx
sub rax, r14
or dword [rax - 4], 2
or dword [rax + 4], 4
or dword [r14 + rbx - 4], 1
or dword [r14 + rbx + 4], 8
test ecx, ecx
je 0x140248d2f
or dword [rax], 0x440
or dword [r14 + rbx], 0x110
or dword [rbx - 4], 0x220
or dword [rbx + 4], 0x880
jmp 0x140248d42
or dword [rax], 0x40
or dword [r14 + rbx], 0x10
or dword [rbx - 4], 0x20
or dword [rbx + 4], 0x80
or dword [rbx], 0x1000
and dword [rbx], 0xffffbfff
mov rsi, qword [rsp + 0x20]
mov r15, qword [rsp + 0xe0]
mov ebp, dword [rsp + 0xc0]
mov eax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0x30]
mov r10d, dword [rsp + 0xc8]
dec eax
add rcx, 4
add r13, 4
mov dword [rsp + 0xe8], eax
mov qword [rsp + 0x30], rcx
lea r8, [0x140000000]
test eax, eax
jg 0x140248540
mov r11d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov r14d, dword [rsp + 0x38]
lea r8, [0x140000000]
mov r9d, 4
add rdx, qword [rsp + 0x58]
add rax, qword [rsp + 0x60]
mov ebp, dword [rsp + 0x3c]
add r11d, 4
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x28], r11d
cmp r11d, ebp
jl 0x140248513
mov r13, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x90]
cmp dword [rsp + 0xd8], 0
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xb0]
je 0x140248f8f
mov r8, qword [rdi + 0x18]
mov edx, dword [rdi]
add r8, 0x90
mov qword [rdi + 0x10], r8
mov rax, qword [r8]
movzx ecx, word [rax]
sub dword [rdi + 4], ecx
mov rax, qword [r8]
movzx ecx, word [rax]
mov eax, edx
shr eax, 0x10
cmp eax, ecx
jb 0x140248e69
shl ecx, 0x10
sub edx, ecx
test dword [rdi + 4], 0x8000
mov dword [rdi], edx
je 0x140248e5f
mov rax, qword [r8]
mov ebx, dword [rax + 4]
jmp 0x140248e73
mov rcx, rdi
call fcn.1402459e0
jmp 0x140248e71
mov rcx, rdi
call fcn.1402458d0
mov ebx, eax
mov rax, qword [rdi + 0x10]
and ebx, 1
mov rcx, qword [rax]
movzx eax, word [rcx]
sub dword [rdi + 4], eax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
movzx edx, word [rcx]
mov ecx, dword [rdi]
mov eax, ecx
shr eax, 0x10
cmp eax, edx
jb 0x140248ebe
shl edx, 0x10
sub ecx, edx
test dword [rdi + 4], 0x8000
mov dword [rdi], ecx
je 0x140248eb4
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
mov eax, dword [rcx + 4]
jmp 0x140248ec6
mov rcx, rdi
call fcn.1402459e0
jmp 0x140248ec6
mov rcx, rdi
call fcn.1402458d0
and eax, 1
add ebx, ebx
or ebx, eax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
movzx eax, word [rcx]
sub dword [rdi + 4], eax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
movzx edx, word [rcx]
mov ecx, dword [rdi]
mov eax, ecx
shr eax, 0x10
cmp eax, edx
jb 0x140248f15
shl edx, 0x10
sub ecx, edx
test dword [rdi + 4], 0x8000
mov dword [rdi], ecx
je 0x140248f0b
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
mov eax, dword [rcx + 4]
jmp 0x140248f1d
mov rcx, rdi
call fcn.1402459e0
jmp 0x140248f1d
mov rcx, rdi
call fcn.1402458d0
and eax, 1
add ebx, ebx
or ebx, eax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
movzx eax, word [rcx]
sub dword [rdi + 4], eax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
movzx edx, word [rcx]
mov ecx, dword [rdi]
mov eax, ecx
shr eax, 0x10
cmp eax, edx
jb 0x140248f6c
shl edx, 0x10
sub ecx, edx
test dword [rdi + 4], 0x8000
mov dword [rdi], ecx
je 0x140248f62
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
mov edx, dword [rcx + 4]
jmp 0x140248f76
mov rcx, rdi
call fcn.1402459e0
jmp 0x140248f74
mov rcx, rdi
call fcn.1402458d0
mov edx, eax
and edx, 1
lea eax, [rbx + rbx]
or eax, edx
cmp eax, 0xa
je 0x140248f8f
lea rcx, str.warning:_bad_segmentation_symbol_n
call fcn.140242910
xor eax, eax
add rsp, 0x98
pop rdi
pop rbx
ret